Advertisement
Guest User

Картавый пидорас

a guest
Feb 11th, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.94 KB | None | 0 0
  1. import urllib, urllib2
  2.  
  3. def send_message(ip_port):
  4.         print(ip_port)
  5.         try:
  6.                 urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler({"http" : ip_port})))
  7.  
  8.                 page = urllib2.urlopen(urllib2.Request('http://anon.fm/feedback/'), timeout=5).read()
  9.                 cid = page.split("name=\"cid\" value=\"", 1)[1].split("\"", 1)[0]
  10.                 urllib.urlretrieve("http://anon.fm" + page.split("<img src=\"", 1)[1].split("\"", 1)[0], "captcha.gif")
  11.  
  12.                 print(cid)
  13.  
  14.                 captcha = raw_input("Captcha: ")
  15.                 message = raw_input("Message: ")
  16.  
  17.                 urllib2.urlopen(urllib2.Request("http://anon.fm/feedback", urllib.urlencode({"cid" : cid, "left" : 500-len(message), "msg" : message, "check" : captcha})))
  18.         except:
  19.                 print("Pass\n")
  20.  
  21. with open("proxies", "r") as f_in:
  22.         for line in f_in:
  23.                 send_message(line[:-1])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement