Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from socket import *
- import time
- from decimal import *
- s = socket(AF_INET, SOCK_STREAM)
- s.connect(("37.15.122.113", 9999))
- recvd = "nvalid key"
- def send(c):
- global recvd
- s.sendall(c)
- start = time.time()
- s.recv(1)
- recvd = s.recv(200)
- s.recv(1)
- return time.time() - start
- send("pene\n")
- print send("e\n")
- print recvd
- print send("t\n")
- print recvd
- print send("tI\n")
- print recvd
- print send("e\n")
- print recvd
- print send("e\n")
- print recvd
- print send("e\n")
- print recvd
- print send("e\n")
- print recvd
- print send("e\n")
- print recvd
- print send("e\n")
- print recvd
- print send("e\n")
- print recvd
- lolz = ""
- tb = Decimal(send(lolz + "\n"))
- c = 0x30
- print tb
- i = 0
- while ":(" in recvd:
- t = Decimal(send(lolz + chr(c) + "\n"))
- print lolz + chr(c), "\t", t
- if t > tb + Decimal(0.2):
- if i == 5:
- lolz += chr(c)
- tb = Decimal(send(lolz + "\n"))
- c = 0x30
- i = 0
- print lolz
- else: i += 1
- print
- else:
- c += 1
- if c > 0x7f: c = 0x30
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement