This is a simple Python script for checking directory traversal vulnerabilities in URLs. The script attempts to access the "/etc/passwd" file by using a specified number of "../" iterations.
git clone https://github.com/shopsaver/etc-passwd-finder/
cd etc-passwd-finder
pip install -r requirements.txt
python3 etc-passwd-finder.py -help
python3 etc-passwd-finder.py --single http://example.com --iterations 20
python3 etc-passwd-finder.py --file urls.txt --iterations 20
waybackurls Downloads
- Python 3.x
- Requests library (
pip install requests
) - argparse library (
pip install argparse
)
--file
: Specifies a file containing multiple URLs to check.--single
: Specifies a single URL to check.--iterations
: Number of "../" iterations for the directory traversal payload (default is 5).--hide
: If provided, it hides non-200 responses.--help
: If provided, it prints all available options.