Guest User

esdersankitoestoeh,nomeripeeeeh

a guest
May 20th, 2014
493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.17 KB | None | 0 0
  1. import pycurl, urllib, cStringIO, pool
  2. from base64 import b64decode
  3.  
  4. class FuckingScan:
  5.    
  6.     def adfly(self, ysmm):
  7.         self.ysmm = ysmm
  8.         x = ''
  9.         y = ''
  10.         for c in [ysmm[i:i+2] for i in range(0, len(ysmm), 2)]:
  11.             x += c[0]
  12.             y = c[1] + y
  13.  
  14.         return b64decode(x+y)[2:].decode()
  15.    
  16.     def _upload(self, sFilename):
  17.         self.sFilename = sFilename
  18.          
  19.         storage = cStringIO.StringIO()
  20.         PostFileStorage = cStringIO.StringIO()
  21.  
  22.         curl = pycurl.Curl()
  23.         postData=[('file', (pycurl.FORM_FILE, sFilename))]
  24.          
  25.         try:
  26.             curl.setopt(curl.WRITEFUNCTION, storage.write)
  27.             curl.setopt(curl.COOKIEFILE, '')
  28.             curl.setopt(curl.URL, 'fuckingscan.me/upload.php')
  29.             curl.setopt(curl.HTTPPOST, postData)
  30.             curl.setopt(curl.WRITEFUNCTION, PostFileStorage.write)
  31.             curl.perform()
  32.              
  33.         except:
  34.             self.upload_data = "An error has ocurred uploading the file"
  35.              
  36.         self.upload_data = PostFileStorage.getvalue()
  37.         f = urllib.urlopen(self.upload_data)
  38.         html = f.read()
  39.         ysmm = html[(html.find("var ysmm = '")):(html.find("var ysmm = '"))+73].split("'")[1]
  40.         print self.adfly(ysmm)
  41.        
  42.  
  43.        
  44.        
  45. FuckingScan()._upload('test.exe')
Add Comment
Please, Sign In to add comment