Skip to content

Script to collect and report compromised URL to urlhaus.abuse.ch

License

Notifications You must be signed in to change notification settings

Pyvonix/URLHunt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


 URL Hunt
URL Hunt

Introduction

The main goal is to make it easier for analysts to search for URLs where are the downloaded payloads.

For that, the script help to find available URLs on a domain, where files can be accessible. Furthermore, he contains a feature to report found URLs to URLHaus.

NB: A part of this script is based on the URLHaus API script.

Features

List of features already implemented (checked) and conceived (empty):

  • URLHaus submission
  • URLHaus search
  • Define tag(s) for submission
  • Submit URL from local file
  • Submit URL from Pastebin
  • Light Bruteforce
  • Browse directory
  • Download files

Usage

usage: urlhunt.py [-h] [-u URL | -f FILE | -p PASTEBIN] [-b | -i] [-s]
                  [-t TAG] [-v] [--version]

optional arguments:
  -h, --help            show this help message and exit
  -u URL, --url URL     process with url in input
  -f FILE, --file FILE  process with local file
  -p PASTEBIN, --pastebin PASTEBIN
                        process with raw page on pastebin
  -b, --bruteforce      basic iterator to find extra files
  -i, --index           list all files in index
  -s, --submit          submit result on URLHaus
  -t TAG, --tag TAG     add tag(s) for sumbission process (seprator: +)
  -v, --verbose         increase output verbosity
  --version             show program's version number and exit

Examples

  1. Submit all file in a web repertory
python3 urlhunt.py -u http://example.org/repertory/1.exe -i -s -v

[Directory] Parent Directory
[File] 1.doc
[File] 1.exe
[File] 10.exe
[File] 2.exe
[File] 20.exe
[File] 3.exe
[File] 4.exe
[File] 5.exe
[File] 6.exe
[File] 7.exe
[File] 8.exe
[File] 9.exe
[Directory] doc/
[Directory] exe/
[Directory] inew/
[Directory] new/
[Directory] newdoc/

[*] Submit...
http://example.org/repertory/1.doc
http://example.org/repertory/1.exe
http://example.org/repertory/10.exe
http://example.org/repertory/2.exe
http://example.org/repertory/20.exe
http://example.org/repertory/3.exe
http://example.org/repertory/4.exe
http://example.org/repertory/5.exe
http://example.org/repertory/6.exe
http://example.org/repertory/7.exe
http://example.org/repertory/8.exe
http://example.org/repertory/9.exe
[!] Done.
  1. Submit all URL in pastebin page
python3 urlhunt.py -p http://pastebin.com/PAGE -s -v

[*] Submit...
http://example.org/1
http://example.org/2
http://example.org/3
http://example.org/4
http://example.org/5
[!] Done.

About

Script to collect and report compromised URL to urlhaus.abuse.ch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages