这是我的 OSINT 机器人的代码,用于在粘贴站点上搜索敏感数据泄露。
搜索项:
搜索项可以自定义。您可以在配置部分了解更多信息。
对于 pastebin.com,机器人有两种模式:
附加功能:
mysqli_connect(
BEGIN RSA PRIVATE KEY
The name of the database for WordPress
apiKey:
Return-Path:
insert into
INSERT INTO
.onion
如果你想添加其他搜索词,只需将它们逐行添加到文件中。 你知道这里缺少的有用搜索词吗?告诉我!:-) 3. 对于 pastebin.com 的用户追踪模块,你需要将目标用户逐行添加到 configs/users.txt 文件中。
程序帮助:
$ python3 scavenger.py -h
_________
/ _____/ ____ _____ ___ __ ____ ____ ____ ___________
\_____ \_/ ___\\__ \\ \/ // __ \ / \ / ___\_/ __ \_ __ \
/ \ \___ / __ \\ /\ ___/| | \/ /_/ > ___/| | \/
/_______ /\___ >____ /\_/ \___ >___| /\___ / \___ >__|
\/ \/ \/ \/ \//_____/ \/ Reworked
usage: scavenger.py [-h] [-0] [-1] [-2] [-3] [-4]
control script
optional arguments:
-h, --help show this help message and exit
-0, --pbincom Activate pastebin.com archive scraping module
-1, --pbincomTrack Activate pastebin.com user tracking module
-2, --sensitivedata Search a specific folder for sensitive data. This might
be useful if you want to analyze some pastes which
were not collected by the bot.
-3, --editsearch Edit search terms file for additional search terms
(email:password combinations will always be searched)
-4, --editusers Edit user file of the pastebin.com user track module
example usage: python3 scavenger.py -0 -1
抓取的粘贴内容根据其状态存储在不同的位置。
粘贴内容存储在 data/raw_pastes 中,直到文件数达到 48000 的限制。 一旦超过 48000 个粘贴,它们会被压缩并移动到归档文件夹中。
启动 pastebin.com 存档抓取模块
$ python3 scavenger.py -0
启动 pastebin.com 用户追踪模块
$ python3 scavenger.py -1
当启动这些模块之一时,会在后台创建一个包含运行模块的 tmux 会话。
列出 tmux 会话
$ tmux ls
pastebincomArchive: 1 windows (created Sun Apr 14 06:33:32 2021) [204x58]
pastebincomTrack: 1 windows (created Sun Apr 14 06:33:32 2021) [204x58]
与 tmux 会话交互的示例
$ tmux a -t pastebincomArchive
$ tmux a -t pastebincomTrack
要分离会话,请按 Ctrl+b d。
如果您想在不使用控制软件的情况下启动模块,可以直接调用它们。
pastebin.com 存档抓取器
$ python3 pbincomArchiveScrape.py
pastebin.com 用户追踪器
$ python3 pbincomTrackUser.py
搜索特定文件夹中的敏感数据:
$ python3 findSensitiveData.py TARGET_FOLDER
如果您有任何遗漏,希望我添加功能或进行更改,请通过 Twitter 或 GitHub issue 告诉我 :-)