Thanks to visit codestin.com
Credit goes to github.com

Skip to content

undust is a URL pattern generator that helps uncover archived, backup, and temporary files left behind on web servers. Given a URL, it generates the most common archive, temp and backup file name variants.

License

Notifications You must be signed in to change notification settings

t3l3machus/undust.py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

undust.py

Python License

undust is a URL pattern generator that helps uncover archived, backup, and temporary files left behind on web servers. Given a URL, it generates the most common archive, temp and backup file name variants:

Untitled

With the -a option, it recursively generates these patterns across all parent directories in the path to maximize coverage.

Installation

No special requirements:

git clone https://github.com/t3l3machus/undust.py

Usage examples

undust requires URLs as input to generate archive, temp and backup filename variations. It works great in combination with tools like katana and httpx by ProjectDiscovery.

Crawl a target app for urls with katana, pipe them to undust for archive and backup patterns generation and then to httpx for probing:

katana -u https://example.com -jc -d 3 -silent -ef js,css,png,jpg | python3 undust.py -s -q -a | httpx -sc -cl -title -timeout 2 -mc 200 -silent

❗This command only matches responses with a 200 OK status. If no archived file is found, there will be no output. Modern applications may return 200 for non-existent resources (soft 404s), which can lead to false positives.

You can also provide input URLs from a file:

python3 undust.py -f urls.txt -q -a | httpx -sc -cl -title -timeout 2 -mc 200 -silent

The extentions and patterns can be customized by edditing the script.

Options

usage: undust.py [-h] [-f FILE] [-s] [-sq] [-eo] [-l LENGTH] [-a] [-q]

options:
  -h, --help            show this help message and exit

BASIC OPTIONS:
  -f FILE, --file FILE  File containing urls to process.
  -s, --stream          Read input from stdin as a stream.
  -sq, --strip-query    Strip URL query strings from the input.
  -eo, --extension-only
                        Ignore endpoints that have no file extension.
  -l LENGTH, --length LENGTH
                        Limit the maximum acceptable url length, usefull for skipping very long urls (default: None, recommended: between 400 - 600).
  -a, --all-dirs        When enabled, this option walks back through each parent directory of the given URL and generates archive and backup filename patterns at each level.
  -q, --quiet           Do not print the banner on startup.

About

undust is a URL pattern generator that helps uncover archived, backup, and temporary files left behind on web servers. Given a URL, it generates the most common archive, temp and backup file name variants.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages