https://github.com/aviksaikat/httprex
'httpRex' is a command-line tool for checking the status code of one or multiple URLs. It can also save the output to a file.
https://github.com/aviksaikat/httprex
bugbounty go golang httpx
Last synced: 4 months ago
JSON representation
'httpRex' is a command-line tool for checking the status code of one or multiple URLs. It can also save the output to a file.
- Host: GitHub
- URL: https://github.com/aviksaikat/httprex
- Owner: Aviksaikat
- Created: 2023-03-07T22:00:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-31T18:23:45.000Z (about 2 years ago)
- Last Synced: 2025-12-01T17:28:06.382Z (7 months ago)
- Topics: bugbounty, go, golang, httpx
- Language: Go
- Homepage: https://aviksaikat.github.io/httpRex/
- Size: 1.27 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/funding.yml
Awesome Lists containing this project
README
# HTTPπΈοΈRexπ¦
`httpRex` is a command-line tool for checking the status code of one or multiple URLs. It can also save the output to a file.
> Saikat Karmakar | 7 Mar : 2023

# π Features
- Check the status code of one or multiple URLs
- Print the status code of each URL with coloured output
- Save the output to a file in either text or JSON format
- It's freaking fast
# πΎ Requirements
```bash
- Go 1.19.5 or higher
```
# π οΈ Installation
- Using `go install`
```bash
go install github.com/aviksaikat/httpRex@latest
```
- Build from source
```bash
go build httpRex.go
./httpRex
```
# π€ Usage
```bash
httpRex -h
```
This will display help for the tool. Here are all the switches it supports.

```bash
bin/httpRex -h
βββ ββββββββββββββββββββββββββββ βββββββ βββββββββββ βββ
βββ βββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββ βββ βββ ββββββββββββββββββββββ ββββββ
ββββββββ βββ βββ βββββββ ββββββββββββββ ββββββ
βββ βββ βββ βββ βββ βββ βββββββββββββββ βββ
Author: avik_saikat
Github: https://github.com/aviksaikat
Gitlab: https://gitlab.com/aviksaikat
Usage of bin/httpRex:
--banner Print banner
--f string File containing URLs to check
--file-type string Output file type (text or json) (default "text")
--l strings URLs comma, space separated
--o string Save output to file
--status-code Print status code of each URL
--u string Single URL to check
```
# Update 1.1
- **Now you can pass data from `stdin`**
- `cat urls.txt | httpRex`

## Passing an url from the command line
- `httpRex --u https://google.com`
```bash
httpRex --u https://google.com
βββ ββββββββββββββββββββββββββββ βββββββ βββββββββββ βββ
βββ βββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββ βββ βββ ββββββββββββββββββββββ ββββββ
ββββββββ βββ βββ βββββββ ββββββββββββββ ββββββ
βββ βββ βββ βββ βββ βββ βββββββββββββββ βββ
Author: avik_saikat
Github: https://github.com/aviksaikat
Gitlab: https://gitlab.com/aviksaikat
----------------------------------------------------------------
https://google.com
```
## With `--status-code` option
```bash
httpRex --u https://google.com --status-code
βββ ββββββββββββββββββββββββββββ βββββββ βββββββββββ βββ
βββ βββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββ βββ βββ ββββββββββββββββββββββ ββββββ
ββββββββ βββ βββ βββββββ ββββββββββββββ ββββββ
βββ βββ βββ βββ βββ βββ βββββββββββββββ βββ
Author: avik_saikat
Github: https://github.com/aviksaikat
Gitlab: https://gitlab.com/aviksaikat
----------------------------------------------------------------
https://google.com [200]
```
## Passing a file containing list of URLs(one per line) with status code
- `httpRex --f test --status-code`

```bash
βββ ββββββββββββββββββββββββββββ βββββββ βββββββββββ βββ
βββ βββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββ βββ βββ ββββββββββββββββββββββ ββββββ
ββββββββ βββ βββ βββββββ ββββββββββββββ ββββββ
βββ βββ βββ βββ βββ βββ βββββββββββββββ βββ
Author: avik_saikat
Github: https://github.com/aviksaikat
Gitlab: https://gitlab.com/aviksaikat
----------------------------------------------------------------
http://ryot.org/as-summer-seafood-season-approaches-four-letters-for-consumers-to-remember/211641 [404]
http://ryot.org/amazon-deforestation-nasa-images-show-the-great-rain-forest-disappearing/ [404]
http://ryot.org/ask [404]
http://ryot.org/bodyteam12/css/font/BEBAS___-webfont.eot [404]
http://ryot.org/ads.txt [404]
http://ryot.org/bodyteam12/css/font/BEBAS___-webfont.svg [404]
http://ryot.org/bacha-bazi-afg [404]
http://ryot.org/argentinas-coast-guard-catches-chinese-trawlers-poaching-squid/108797 [404]
http://ryot.org/body-matching-phoenix-shooting-suspect-arthur-douglas-harmon-found-in-bushes/65554%E2%80%99 [404]
http://ryot.org/afghanistan-bomber-kills-14-including-3-americans/ [404]
http://ryot.org/admin-ajax.php [404]
http://ryot.org/bodyteam12/css/fancybox.css [404]
http://ryot.org/bodyteam12 [404]
http://ryot.org/big-easy-express-nominated-for-grammy/29882 [404]
http://ryot.org/about [404]
http://ryot.org/aleppo-clashes-spark-rise-in-refugees/ [404]
http://ryot.org/5-things-millennials-know-sen-rand-paul/936478%E2%80%99 [404]
http://ryot.org/bacha-bazi-afghanistan-pashtun-child-abuse-christian-stephen/912777%E2%80%99 [404]
http://email.ryot.org/robots.txt [200]
http://email.ryot.org/ [200]
```
## Passing a file containing list of URLs(one per line)
- `httpRex --f test`

```bash
httpRex --f test
βββ ββββββββββββββββββββββββββββ βββββββ βββββββββββ βββ
βββ βββββββββββββββββββββββββββββββββββββββββββββββββββββ
ββββββββ βββ βββ ββββββββββββββββββββββ ββββββ
ββββββββ βββ βββ βββββββ ββββββββββββββ ββββββ
βββ βββ βββ βββ βββ βββ βββββββββββββββ βββ
Author: avik_saikat
Github: https://github.com/aviksaikat
Gitlab: https://gitlab.com/aviksaikat
----------------------------------------------------------------
http://email.ryot.org/
http://email.ryot.org/robots.txt
```
# βοΈ Python vs Go
## Go

## Python

# π€ Contributing
Contributions, issues and feature requests are welcome. Feel free to check the [issues page](https://github.com/Aviksaikat/httpRex/issues) if you want to contribute.
# π Show your support
Give a βοΈ if this project helped you!