Last year, the chat room "card name" python script

xiaoxiao2021-03-06  105

A very boring program, now it is not necessarily used:

# Create by Netsafe 2003/01/12 Snow Dance Special Version, you can freely copy and modify, #, please do not use illegal use. Don't tell me, you don't know how to run this program. Import ThreadingIncoreimport SocketImport TimeHost = "202.96.140.78" Port = 36951

Def Task3 (Host, Port, Username): ??? Try: ??????? conn = Socket.socket (socket.af_inet, socket.sock_stream) ??????? conn.connect ((Host, INT (port)) ??????? url = "get http://% s:% s / body & user =% s http / 1.0 / r / nproxy-connection: Keep-alive / R / N / R / N "% (Host, Port, Username) ??????? conn.send (URL) ??????? conn.recv (1024) ???????print" landing users: [ % s] success !!!, (% s:% s) "% (username, host, port) ??????? While 1: ??????????? conn.recv (1024 ) ??????????? Time.sleep (5) ??? eXcept: # ???? print "% s: An error, please check Name.txt"% username ????print "." ???? Task3 (Host, Port, Username) Def Task2 (Host, Port, UserName): ??? Try: ??????? conn = socket.socket (socket.af_inet, socket.sock_stream) ?? ????? conn.connect (host, port)) ??????? url = "/ body & user =" username ??? ??????? conn.send ("Get / Body & User = % S /R/nhttp/1.0/r/n/r/n "% username) ??????? conn.recv (1024) ??????? print" login users: [% s] success !!! "% Username ??????? While 1: ??????????? conn.recv (1024) ??????????? Time.sleep (5) ??? EXCEPT: # ????print "% s: error, please check Name.txt"% UserName ???? Task2 (Host, Port, Username) DEF DO_MAIN (): ???? f = Open ( "Name.txt") ??? userlist = f.readlines () ??? print "is the popular name Meteor Garden card version of Xue Wu, Author: netsafe (E-mail: netsafe@sina.com).

"???print" is starting ........... Please don't close this window! "???print" ??? proxy = userlist [0] [: - 1] .split ( ":") ???? ??? for i in userlist: ??????? if i [0] == "[" and? i [-2] == "]": ????? ?????? proxy = i [1: -2] .split (":") # ???? print proxy ??????? ife ???????i proxy [0] == "0 ": ??????????? t = threading.thread (target = task2, args = (proxy [0], proxy [1], i [: - 1],)) ????? ?? Else: ???? T = threading.thread (target = task3, args = (Proxy [0], proxy [1], i [: - 1],) ??????? t.start () if __name __ == "__ main __": The purpose of this script is to attract real people with virtual people in the chat room (Biki). It is used to improve the popularity of the chat room. Oh.

Next is the name.txt example

format:

[Proxy server IP: port] (because the number of login people of single IP is limited, the use of proxy servers)

Virtual person 1

Virtual person 2

?

. . .

[0: 0] Found that I am Bill. The live people's teacher people's police big brother, the old big big brother, Moen Santana Polo originally it bleed ^ @ _ @ ^ 疯疯 世界 世界 [61.151.253.179:80] Don't kick me, Careening inexperienced people, look down on me, IPSPY small Japan A basket of sweet potatoes Linuxwindows big backs have no forest virus ice poisonous women [202.105.138.19:8080] Chinese cabbage small radish peanut meter-knit rice flower Saddam teasing pills Box ^ _ ^ Rubbit helmet fireworks rocket iron 恶 恶 碧 蓝Today's moonlight is beautiful, card dead neck magic devil fume

转载请注明原文地址:https://www.9cbs.com/read-125180.html

New Post(0)