Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def authe(sock, au):
- com(sock, "auth login")
- read_all(sock, True)
- llogin = base64.b64encode(au[0].encode())
- sock.send(llogin + b'\r\n')
- read_all(sock, True)
- passward = base64.b64encode(au[1].encode())
- sock.send(passward + b'\r\n')
- read_all(sock, True)
- sys.stdout.write("OK")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement