Advertisement
Guest User

Untitled

a guest
Jun 24th, 2016
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PyCon 0.32 KB | None | 0 0
  1.  
  2. def authe(sock, au):
  3.     com(sock, "auth login")
  4.     read_all(sock, True)
  5.     llogin = base64.b64encode(au[0].encode())
  6.     sock.send(llogin + b'\r\n')
  7.     read_all(sock, True)
  8.     passward = base64.b64encode(au[1].encode())
  9.     sock.send(passward + b'\r\n')
  10.     read_all(sock, True)
  11.     sys.stdout.write("OK")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement