URLShort is a powerful and intelligent tool written in Go to split, shorten, and fuzz URLs for automation, testing, and security purposes.
Built with β€οΈ by Neeraj Sah (Team HyperGod-X) to help you automate recon, parameter manipulation, and payload injection β quickly and effectively.
- π§βπ» Web Developers β Analyze and test URL behavior.
- π Bug Bounty Hunters β Generate fuzzable URL vectors fast.
- π‘ Security Professionals β Inject payloads into endpoints for XSS/IDOR testing.
- π§ͺ QA Engineers β Automate URL manipulation for test coverage.
- π§° Red Teamers & π· Blue Teamers / Recon Experts β Enhance endpoint discovery and testing.
- β Generate recursive URL variations
- β Append payloads from CLI or file
- β Target both query strings and path segments
- β Deduplicate, output to file, and integrate in scripts
- β Ideal for recon, fuzzing, XSS testing, path traversal, etc.
πΉ Feature | β Status |
---|---|
Split URLs by = , & , / , etc. |
βοΈ |
Recursive URL prefix generation | βοΈ |
Append payloads (-a or -F ) |
βοΈ |
Remove duplicates with -D |
βοΈ |
Input/output file support | βοΈ |
Quiet mode for automation | βοΈ |
Cross-platform support | βοΈ |
Beautiful banner & color output | βοΈ |
go install github.com/Hx-Corp/urlshort@latest
β οΈ Ensure your$GOPATH/bin
is in your systemPATH
:
export PATH="$PATH:$(go env GOPATH)/bin"
Then use it globally:
urlshort -f urls.txt [options]
go build -o urlshort
go run setup.go
OS | Installs To |
---|---|
Linux | /usr/local/bin/hxscanner |
macOS | /usr/local/bin/hxscanner |
Termux | $HOME/.termux/bin/hxscanner |
Windows | Start Menu as hxscanner.exe |
π‘οΈ Requires root/sudo privileges on Unix/macOS.
urlshort -f <input-file> [options]
Flag | Description |
---|---|
-f |
Input file with URLs (required) |
-o |
Output file to save results |
-x |
Delimiters for splitting (e.g., "=&" ) (default: = ) |
-p |
Enable splitting on path segments (/ ) |
-a |
Append a string to each URL variation |
-F |
File of strings to append (overrides -a ) |
-D |
Remove duplicate URLs |
-Q |
Quiet mode (suppress output, show only final messages) |
-h |
Display help message |
urlshort -f urls.txt -o out.txt -x "=&" -p -F payloads.txt -D
- Splits URLs by
=
,&
,/
- Appends payloads from
payloads.txt
- Deduplicates results
- Writes final output to
out.txt
https://example.com/page?user=admin&pass=1234
https://site.com/login.php?auth=token
<script>alert(1)</script>
%27-- OR 1=1
../
https://example.com/
https://example.com/page?
https://example.com/page?user=
https://example.com/page?user=admin&
https://example.com/page?user=admin&pass=
https://example.com/page?user=admin&pass=1234<script>alert(1)</script>
https://site.com/
https://site.com/login.php?
https://site.com/login.php?auth=
https://site.com/login.php?auth=token%27-- OR 1=1
...
-
Input Reading
- Loads all non-empty lines from the file specified by
-f
.
- Loads all non-empty lines from the file specified by
-
Splitting Logic
- Uses delimiters from
-x
to split URL query strings. - Adds
/
splitting if-p
is enabled.
- Uses delimiters from
-
Variation Generation
- Recursively builds prefix variations of URLs ending at each delimiter.
-
Appending
- Combines each variation with payloads using
-a
or-F
.
- Combines each variation with payloads using
-
Deduplication
- Optional:
-D
removes repeated entries using a map.
- Optional:
-
Output
- Writes to file with
-o
or prints to console (unless-Q
is used).
- Writes to file with
git clone https://github.com/nxneeraj/urlshort
cd urlshort
go build -o urlshort
./urlshort -h
urlshort/
βββ main.go # Main logic & CLI interface
βββ setup.go # Optional global installer script
βββ README.md # Full documentation
MIT License
Copyright (c) 2025 HyperGod-X
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Contributions are warmly welcome! Hereβs how you can help:
- Report bugs or edge cases via GitHub Issues
- Suggest new features or CLI improvements
- Submit PRs to enhance logic, UX, or compatibility
- Share use cases, templates, and examples
- π€ Author: Neeraj Sah
- π§ Email: [email protected]
- π΄ββ οΈ Org: Team HyperGod-X
If this tool helped you:
- β Star this repo
- π Share it with fellow hackers
- π§ Mention it in your toolkit, blog, or course
- π Fork and make it even better!
Build faster. Test smarter. Hack ethically.
With π₯ from Team HyperGod-X πΎ
Keep Moving Forward