Strips HTTP/HTTPS protocols from URL lists to prepare clean URLs for bug bounty tools like eyewitness, gowitness, and port scanners.
URLStripper is a Ruby utility that processes lists of URLs by removing HTTP and/or HTTPS protocols. This tool is essential for bug bounty hunters who need clean URLs without protocol prefixes for various security testing tools like eyewitness, gowitness, nmap, and other reconnaissance utilities that expect domain-only input.
I developed this utility to solve a common pain point in bug bounty hunting. Many reconnaissance tools like eyewitness (for screenshots), gowitness, or port scanning tools expect clean domain names without the http://
or https://
protocols. Manually editing large URL lists is tedious and error-prone. This tool automates the process, allowing hunters to quickly prepare their target lists for various security testing tools without the repetitive task of removing protocols from each URL.
- Ruby (version 2.7+ recommended)
- A text file containing URLs (one per line)
- Target domains for your bug bounty scope
- Git clone this repo:
git clone https://github.com/gigachad80/URLStripper cd URLStripper ruby url-stripper.rb-h
- Type
ruby url-stripper.rb -h
to see all available options. - Prepare your URL list file and use the appropriate stripping options.
ruby url-stripper.rb -p urls.txt (Remove only http:// from URLs )
ruby url-stripper.rb -s urls.txt (Remove only https:// from URLs)
ruby url-stripper.rb -b urls.txt (Remove both http:// and https:// from URLs)
ruby url-stripper.rb urls.txt (Print URLs as-is (no stripping) with warning)
Initially, I randomly named it oiiai.rb
based on a spinning cat meme (don't ask why!), but later realized it needed a more descriptive name. URLStripper perfectly describes what it does - it strips URL protocols cleanly and efficiently.
Approx 30 min
This utility works seamlessly with:
- EyeWitness: For taking screenshots of web applications
- GoWitness: For web screenshot automation
- Nmap: For port scanning clean domains
- Sublist3r: For subdomain enumeration
- Aquatone: For domain reconnaissance
- Any tool that expects clean domain input
📧 Email: pookielinuxuser@tutamail.com
Licensed under MIT Licence
🕒 Last Updated: June 17, 2025
🕒 First Published: June 17, 2025