No description
Find a file
2020-10-08 17:49:36 +02:00
.github Link to discussions via issue templates 2020-10-04 14:08:08 +02:00
admin Selectively query DB based on GraphQL query field collection 2020-10-05 18:40:37 +02:00
cmd/hetty Replace Cayley with SQLite3 2020-10-04 11:50:03 +02:00
pkg pkg/scope: add mutexes around scope (#33) 2020-10-08 17:49:36 +02:00
.dockerignore Embed static admin resources on build, add goreleaser config 2020-09-25 02:53:41 +02:00
.gitignore Add db & pem's to gitignore (#29) 2020-10-04 16:32:33 +02:00
.goreleaser.yml Replace Cayley with SQLite3 2020-10-04 11:50:03 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2020-10-04 12:33:53 +02:00
CONTRIBUTING.md Add contributing guidelines 2020-10-04 13:21:43 +02:00
Dockerfile Replace Cayley with SQLite3 2020-10-04 11:50:03 +02:00
go.mod Selectively query DB based on GraphQL query field collection 2020-10-05 18:40:37 +02:00
go.sum Selectively query DB based on GraphQL query field collection 2020-10-05 18:40:37 +02:00
gqlgen.yml Replace Cayley with SQLite3 2020-10-04 11:50:03 +02:00
LICENSE Add README and LICENSE 2020-09-27 20:38:30 +02:00
Makefile Replace Cayley with SQLite3 2020-10-04 11:50:03 +02:00
modd.conf Change default port to :8080 2020-09-28 20:41:43 +02:00
README.md Add contributing guidelines 2020-10-04 13:21:43 +02:00

Hetty is an HTTP toolkit for security research. It aims to become an open source alternative to commercial software like Burp Suite Pro, with powerful features tailored to the needs of the infosec and bug bounty community.

Features/to do

  • HTTP man-in-the-middle (MITM) proxy and GraphQL server.
  • Web interface (Next.js) with proxy log viewer.
  • Add scope support to the proxy.
  • Full text search (with regex) in proxy log viewer.
  • Project management.
  • Sender module for sending manual HTTP requests, either from scratch or based off requests from the proxy log.
  • Attacker module for automated sending of HTTP requests. Leverage the concurrency features of Go and its net/http package to make it blazingly fast.

Installation

Hetty is packaged on GitHub as a single binary, with the web interface resources embedded.

👉 You can find downloads for Linux, macOS and Windows on the releases page.

Alternatives:

Build from source

$ GO111MODULE=auto go get -u -v github.com/dstotijn/hetty/cmd/hetty

Then export the Next.js frontend app:

$ cd admin
$ yarn install
$ yarn export

This will ensure a folder ./admin/dist exists. Then, you can bundle the frontend app using rice. The easiest way to do this is via a supplied Makefile command in the root of the project:

make build

Docker

Alternatively, you can run Hetty via Docker. See: dstotijn/hetty on Docker Hub.

$ docker run \
-v $HOME/.hetty/hetty_key.pem:/root/.hetty/hetty_key.pem \
-v $HOME/.hetty/hetty_cert.pem:/root/.hetty/hetty_cert.pem \
-v $HOME/.hetty/hetty.db:/root/.hetty/hetty.db \
-p 127.0.0.1:8080:8080 \
dstotijn/hetty

Usage

Hetty is packaged as a single binary, with the web interface resources embedded. When the program is run, it listens by default on :8080 and is accessible via http://localhost:8080. Depending on incoming HTTP requests, it either acts as a MITM proxy, or it serves the GraphQL API and web interface (Next.js).

$ hetty -h
Usage of ./hetty:
  -addr string
        TCP address to listen on, in the form "host:port" (default ":8080")
  -adminPath string
        File path to admin build
  -cert string
        CA certificate filepath. Creates a new CA certificate is file doesn't exist (default "~/.hetty/hetty_cert.pem")
  -db string
        Database file path (default "~/.hetty/hetty.db")
  -key string
        CA private key filepath. Creates a new CA private key if file doesn't exist (default "~/.hetty/hetty_key.pem")

⚠️ Todo: Write instructions for installing CA certificate in local CA store, and configuring Hetty to be used as a proxy server.

Vision and roadmap

The project has just gotten underway, and as such I havent had time yet to do a write-up on its mission and roadmap. A short summary/braindump:

  • Fast core/engine, built with Go, with a minimal memory footprint.
  • GraphQL server to interact with the backend.
  • Easy to use web interface, built with Next.js and Material UI.
  • Extensibility is top of mind. All modules are written as Go packages, to be used by the main hetty program, but also usable as libraries for other software. Aside from the GraphQL server, it should (eventually) be possible to also use it as a CLI tool.
  • Pluggable architecture for the MITM proxy and future modules, making it possible for hook into the core engine.
  • Talk to the community, and focus on the features that the majority. Less features means less code to maintain.

Status

The project is currently under active development. Please star/follow and check back soon. 🤗

Contributing

Please see the Contribution Guidelines for details.

Acknowledgements

Thanks to the Hacker101 community on Discord for all the encouragement to actually start building this thing!

License

MIT


© 2020 David Stotijn — Twitter, Email