Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- import telnetlib
- import time
- HOST = "200.51.203.232"
- PORT = 6112
- user = "..."
- upass = "..."
- tn = telnetlib.Telnet(HOST, PORT)
- tn.write("\r\n")
- tn.expect(["Username:"], 1);
- print tn.read_eager()
- tn.write(user + "\r\n")
- tn.expect(["Password:"], 1);
- print tn.read_lazy()
- tn.write(upass + "\r\n")
- a = "";
- while 1:
- a = a + tn.read_eager()
- if ("\r\n" in a):
- v = a[1:a.find("\r")]
- if ("Your unique name:" in v):
- tn.write("/join Diablo II\r\n")
- tn.write("/lusers\r\n")
- if ("Banned users:" in v):
- list = v[v.find(":")+2:].split(" ")
- for name in list:
- print "hi:"+name
- a = a[a.find("\r")+1:]
- print v
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement