GitHub - needmorecowbell/Hamburglar: Hamburglar -- collect useful information fr...
source link: https://github.com/needmorecowbell/Hamburglar
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
README.md
The Hamburglar
Multithreaded and recursive directory scraping script. Stores useful information with the filepath and finding. All in one file, no external packages required!
Operation
python3 hamburglar.py /path/directory/
or python3 hamburglar.py /path/file.txt
This will recursively scan for files, then analyzes each file for a variety of findings using regex filters
Tips
- You can use this script as a webpage scraper with something like this:
wget https://www.google.com/ -O page ; python3 hamburglar.py page; rm page;
Settings
whitelistOn
: turns on or off whitelist checkingmaxWorkers
: number of worker threads to run concurrently when reading file stackwhitelist
: list of files or directories to exclusively scan for (if whitelistOn=True)blacklist
: list of files, extensions, or directories to block in scanregexList
: dictionary of regex filters with filter type as the key
The Hamburglar can find
- ipv4 addresses (public and local)
- emails
- private keys
- urls
- cryptocurrency addresses
- Now with single file parameter support!
Example output:
{ "/home/adam/Dev/test/email.txt": { "emails": "{'[email protected]'}" }, "/home/adam/Dev/test/email2.txt": { "emails": "{'[email protected]'}" }, "/home/adam/Dev/test/ips.txt": { "ipv4": "{'10.0.11.2', '192.168.1.1'}" }, "/home/adam/Dev/test/test2/email.txt": { "emails": "{'[email protected]', '[email protected]'}" }, "/home/adam/Dev/test/test2/ips.txt": { "ipv4": "{'10.0.11.2', '192.168.1.1'}" }, "/home/adam/Dev/test/test2/links.txt": { "site": "{'http://login.web.com'}" } }
Notes
-
Inspiration came from needmorecowbell/sniff-paste, I wanted the same regex scraping but for every file in a given directory.
-
Please contribute! If there's an error let me know -- even better if you can fix it :)
- Regex Contributions would be very helpful, and should be pretty easy to add!
-
Please don't use this project maliciously, it is meant to be an analysis tool
Recommend
-
54
-
34
README.md Sniff-Paste: OSINT Pastebin Harvester
-
33
README.md Giggity - grab hierarchical data about a github organization, user, or repo
-
9
NAKIVO Blog > Office 365 Administration and Deployment > Everything You Wanted to Know about SharePo...
-
9
Copy link Contributor mgacek8 commented...
-
13
Awesome AI & Bot use in Social Media The main goal is collect those AI Strategies & bot used in social media. Papers Early Rumour Detection:...
-
249
Awesome Visual-Transformer Collect some Transformer with Computer-Vision (CV) papers. If you find some overlooked papers, please open issues or pull requests. Papers Transformer original paper
-
10
Copy link Contributor mgacek8 commented
-
3
DFIRT (DFIR Tool) Collect information of Windows PC when doing incident response.
-
7
Pixel update squeezes more useful information into the lock screen The At a Glance widget now shows video feeds from Nest Doorbells By...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK