This Python script is a tool that obfuscates (hides) a user-provided URL in various ways and saves it to a file. It primarily uses open redirect mechanisms to achieve this. It can be particularly useful for phishing tests, cybersecurity awareness training, and ethical hacking.
To run this script, you need Python installed on your computer.
- Python 3.x
If you don't have Python installed, you can download it here.
You can run the script using a terminal or command prompt.
- Open a terminal or command prompt.
- Navigate to the script's directory:
cd /script_directory
- Run the script:
python script.py
- The program will prompt you to enter a URL. Example:
Enter url: https://example.com
- The program will generate obfuscated URLs and save them in
url_obfuscated.txt
.
- The script takes a URL input from the user.
- It obfuscates the URL using open redirect mechanisms.
- It applies HTTP Basic Authentication tricks to further obfuscate the URL.
- All obfuscated URLs are written to
url_obfuscated.txt
.
get_url()
: Gets a URL from the user and ensures it has an HTTP/HTTPS prefix.file_w()
: Combines the URL with open redirect links and writes them to a file.http_basic_auth()
: Obfuscates the URL using HTTP Basic Authentication formatting.
After running the script, the following file will be created:
url_obfuscated.txt
:- Contains various obfuscated versions of the input URL.
- Can be used for phishing and security testing purposes.
- This script is for ethical hacking and security testing only! Unauthorised use is illegal.
- Be cautious, as open redirects can pose security risks.
- Firefox does not support the HTTP Basic Authentication obfuscation technique.
If you would like to contribute to this project, please leave a star in the repo.
This project is intended solely for educational purposes.
This project is licensed under the MIT License. See the LICENSE
file for details.