
Crawler (Bot) searching for credential leaks on paste sites.

Just the code of my OSINT bot searching for sensitive data leaks on paste sites. email:password combinations are always collected.
It detects sensitive information based on the file searchterms.txt and some regexes in classes/utility.py.
Search terms:
mysqli_connect(
BEGIN RSA PRIVATE KEY
-----BEGIN
The name of the database for WordPress
Return-Path:
insert into
INSERT INTO
.onion
github_pat_
AIza
sk_live_
rk_live_
client_secret
jdbc:
mongodb://
mongodb+srv://
mysql://
postgresql://
redis://
authorization: basic
Search terms can be customized. You can learn more about it in the configuration section.
For pastebin.com the bot has two modes:
For pastes.io:
configs/pastesio.json and set if you have a free or pro tierFor GitHub Gist:
For dpaste.com:
Additional features:
setup.sh to install are needed non standard python librariesIf you want to add other search terms just add them to file line by line. You know a useful search terms which is missing here? Tell me! :-) 3. For the user tracking module of pastebin.com you need to add the target users line by line to the configs/users.txt file.
Program help:
$ python3 scavenger.py -h
โญโโ Scavenger 3.0 โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ multi-source credential-leak crawler โ
โ โ
โ -0 pastebin archive scrape module โ
โ -1 pastebin user track module โ
โ -2 pastes.io random-ID scraper โ
โ -3 GitHub gist scraper โ
โ -4 dpaste.com scraper โ
โ -5 edit search terms โ
โ -6 edit tracked users โ
โ -7 dashboard โ
โ โ
โ python3 scavenger.py -0 -1 (combine flags) โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
usage: scavenger.py [-h] [-0] [-1] [-2] [-3] [-4] [-5] [-6] [-7]
control script
options:
-h, --help show this help message and exit
-0, --pbincom Activate pastebin.com archive scraping module
-1, --pbincomTrack Activate pastebin.com user track module
-2, --pastesio Activate pastes.io random-ID scraper
-3, --githubgist Activate GitHub gist scraper
-4, --dpaste Activate dpaste.com public archive scraper
-5, --editsearch Edit search terms file for additional search terms (email:password combinations will always be searched)
-6, --editusers Edit user file of the pastebin.com user track module
-7, --dashboard Start the web dashboard
example usage: python3 scavenger.py -0 -1
Crawled pastes are stored at different locations depending on their status.
Pastes get stored in data/raw_pastes until they reach a limit of 48000 files. Once there are more then 48000 pastes they get ziped and moved to the archive folder.
Start the pastebin.com archive scraping module
$ python3 scavenger.py -0
Start pastebin.com user tracking module
$ python3 scavenger.py -1
When starting one of these modules, a tmux session with the running module is created in the background.
List tmux sessions
$ 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]
Interact with a tmux session example
$ tmux a -t pastebincomArchive
$ tmux a -t pastebincomTrack
To detach from a session hit STRG+b d.
If you want to start a module without using the control software you can do this by calling them directly.
Pastebin.com archive scraper
$ python3 pbincomArchiveScrape.py
Pastebin.com user tracker
$ python3 pbincomTrackUser.py
Start integrated (dashboard) showing statistics for the bot (you may want to customize IP and port)
$ python3 scavenger.py -6
If you miss anything and want me to add features or make changes, just let me know via Twitter or GitHub issue :-)