2021-09-15 19:55:48 +00:00
# HellPot
2021-08-28 06:18:59 +00:00
[![GoDoc ](https://godoc.org/github.com/yunginnanet/HellPot?status.svg )](https://godoc.org/github.com/yunginnanet/HellPot) [![Go Report Card ](https://goreportcard.com/badge/github.com/yunginnanet/HellPot )](https://goreportcard.com/report/github.com/yunginnanet/HellPot)
2021-06-11 23:25:45 +00:00
2021-09-15 19:55:48 +00:00
### New (v0.3) fasthttp version roughly [~75%](https://github.com/yunginnanet/HellPot/issues/2) faster!
2021-06-12 01:17:03 +00:00
HellPot is an endless honeypot that sends bots to hell. Based on [Heffalump ](https://github.com/carlmjohnson/heffalump ).
2021-06-11 23:25:45 +00:00
It finishes the work of Heffalump with a few improvements and the addition of a [toml configuration file ](https://github.com/spf13/viper ) and [JSON logging ](https://github.com/rs/zerolog ). It is built off of [CokePlate ](https://git.tcp.direct/kayos/CokePlate ).
The source of the honeypot data is [The Birth of Tragedy (Hellenism and Pessimism) ](https://www.gutenberg.org/files/51356/51356-h/51356-h.htm ) by Friedrich Nietzsche
![Exploding Heffalump ](hellgif.gif )
Live example: < a href = "https://vx-underground.org/wp-login.php" rel = "nofollow" > Do not follow this link.< / a > It will flood your browser's memory and likely cause a crash.
## Example Web Server Config (nginx)
```
2021-06-12 00:48:01 +00:00
location '/robots.txt' {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://127.0.0.1:8080$request_uri;
}
location '/wp-login.php' {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_pass http://127.0.0.1:8080$request_uri;
}
2016-12-11 23:45:05 +00:00
```
2016-12-11 01:38:18 +00:00
2021-06-11 23:25:45 +00:00
## Example Program Config (toml)
If the configuration file is missing, the default settings will automatically drop itself in the current working directory as `config.toml` .
2021-06-12 00:15:02 +00:00
```
2021-09-15 19:33:42 +00:00
[http]
2021-09-15 19:55:48 +00:00
# TCP Listener (default)
2021-09-15 19:33:42 +00:00
bind_addr = "127.0.0.1"
bind_port = "8080"
paths = ["wp-login.php","wp-login"]
2021-09-15 19:55:48 +00:00
# Unix Socket Listener (will override default)
2021-09-15 19:33:42 +00:00
use_unix_socket = false
2021-09-15 19:55:48 +00:00
unix_socket = "/var/run/hellpot"
2021-06-12 00:15:02 +00:00
[logger]
2021-09-15 19:33:42 +00:00
debug = true
directory = "/home/kayos/.config/HellPot/logs/"
nocolor = false
use_date_filename = true
[performance]
# max_workers is only valid if restrict_concurrency is true
restrict_concurrency = false
max_workers = 256
2021-09-15 19:55:48 +00:00
[deception]
# Used as "Server: " header (if not proxied)
server_name = "nginx"
2021-06-12 00:15:02 +00:00
```