Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/n0kovo/random-agent
Simply output a random user-agent. Use it with tools that don't have a --random-agent flag. Like `random-agent` or $(random-agent)
https://github.com/n0kovo/random-agent
appsec bug-bounty bug-bounty-tools bugbounty bugbounty-tool bugbountytools fuzzer fuzzing infosec infosectools pentesting pentesting-tools redteam-tools web-app-security webfuzzer
Last synced: 27 days ago
JSON representation
Simply output a random user-agent. Use it with tools that don't have a --random-agent flag. Like `random-agent` or $(random-agent)
- Host: GitHub
- URL: https://github.com/n0kovo/random-agent
- Owner: n0kovo
- License: gpl-3.0
- Created: 2023-08-15T17:02:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-16T00:57:27.000Z (over 1 year ago)
- Last Synced: 2024-11-08T03:43:49.593Z (3 months ago)
- Topics: appsec, bug-bounty, bug-bounty-tools, bugbounty, bugbounty-tool, bugbountytools, fuzzer, fuzzing, infosec, infosectools, pentesting, pentesting-tools, redteam-tools, web-app-security, webfuzzer
- Language: Go
- Homepage:
- Size: 1.37 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# random-agent
### What?
This simply outputs a random user-agent (with match and filter arguments).### Why?
Many web security tools have a `--random-agent` feature.
However, some don't, and I find that annoying.
This solves that problem ✨### How?
- ```shell
curl -A "`random-agent`" https://example.com
```- ```shell
ffuf -w wordlist.txt https://example.com/FUZZ -H "User-Agent: $(random-agent -m chrome)"
```- ```shell
wfuzz -w common.txt --hc 404 -H "$(random-agent -m chrome -f android)" http://testphp.vulnweb.com/FUZZ
```
and so on :)- `-m string` / `--match string` only returns user agents matching `string`
- `-f string` / `--filter string` excludes user agents matching `string`
Both arguments can be passed several times.### Cool!
Right?? Run this and you're good to Go:
```shell
go install github.com/n0kovo/random-agent@latest
```> [!NOTE]
> - The user-agent.txt file is embedded in the binary on build, so it's fully portable. If you want to edit or provide your own user-agent file, just clone the repo, edit `user-agents.txt` and run `go build .`.
> - Hack the planet