https://github.com/codesoap/hp2url
Convert httpipe to URLs
https://github.com/codesoap/hp2url
httpipe
Last synced: about 1 year ago
JSON representation
Convert httpipe to URLs
- Host: GitHub
- URL: https://github.com/codesoap/hp2url
- Owner: codesoap
- License: mit
- Created: 2024-01-26T18:23:18.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-28T09:36:53.000Z (over 2 years ago)
- Last Synced: 2025-05-17T09:11:32.205Z (about 1 year ago)
- Topics: httpipe
- Language: Go
- Homepage:
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
hp2url is a small helper for the
[httpipe format](https://github.com/codesoap/httpipe). It takes httpipe
via standard input and prints the correlating URL for each line to
standard output.
This is useful if you want to want to investigate httpipe output
further, using your browser, curl, or other tools that don't work with
httpipe. Keep in mind that the HTTP method, headers and payload will be
absent in a URL.
# Examples
```console
$ echo '{"host":"test.com","req":"GET /foo HTTP/1.1\\r\\nHost: test.com\\r\\n\\r\\n"}' | hp2url
https://test.com/foo
$ echo "foo\nbar\nbaz" | pfuzz -w - -u "http://test.com:1234/FUZZ" | hp2url
http://test.com:1234/foo
http://test.com:1234/bar
http://test.com:1234/baz
$ # Open extracted URLs in your browser:
$ pfuzz -u "http://test.com" | hp2url | xargs firefox
````