1
4
mirror of https://github.com/yunginnanet/HellPot synced 2024-06-24 06:48:02 +00:00

update README and fix typo

This commit is contained in:
kayos@tcp.direct 2021-09-15 12:55:48 -07:00
parent 54c93a178a
commit 369150d443
2 changed files with 16 additions and 9 deletions

@ -1,6 +1,9 @@
# HellPot
# HellPot
[![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)
### New (v0.3) fasthttp version roughly [~75%](https://github.com/yunginnanet/HellPot/issues/2) faster!
HellPot is an endless honeypot that sends bots to hell. Based on [Heffalump](https://github.com/carlmjohnson/heffalump).
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).
@ -34,15 +37,15 @@ location '/wp-login.php' {
If the configuration file is missing, the default settings will automatically drop itself in the current working directory as `config.toml`.
```
[diception]
server_name = "nginx"
[http]
# TCP Listener (default)
bind_addr = "127.0.0.1"
bind_port = "8080"
paths = ["wp-login.php","wp-login"]
unix_socket = "/var/run/hellpot"
# Unix Socket Listener (will override default)
use_unix_socket = false
unix_socket = "/var/run/hellpot"
[logger]
debug = true
@ -54,6 +57,10 @@ location '/wp-login.php' {
# max_workers is only valid if restrict_concurrency is true
restrict_concurrency = false
max_workers = 256
[deception]
# Used as "Server: " header (if not proxied)
server_name = "nginx"
```

@ -38,7 +38,7 @@ var (
MaxWorkers int
)
// "diception"
// "deception"
var (
// FakeServerName is our configured value for the "Server: " response header when serving HTTP clients
FakeServerName string
@ -143,7 +143,7 @@ func Init() {
func setDefaults() {
var (
configSections = []string{"logger", "http", "performance", "diception"}
configSections = []string{"logger", "http", "performance", "deception"}
deflogdir = home + "/.config/" + Title + "/logs/"
defNoColor = false
)
@ -173,7 +173,7 @@ func setDefaults() {
"restrict_concurrency": false,
"max_workers": 256,
}
Opt["diception"] = map[string]interface{}{
Opt["deception"] = map[string]interface{}{
"server_name": "nginx",
}
@ -256,7 +256,7 @@ func associate() {
BindPort = snek.GetString("http.bind_port")
Paths = snek.GetStringSlice("http.paths")
UseUnixSocket = snek.GetBool("http.use_unix_socket")
FakeServerName = snek.GetString("diception.server_name")
FakeServerName = snek.GetString("deception.server_name")
RestrictConcurrency = snek.GetBool("performance.restrict_concurrency")
MaxWorkers = snek.GetInt("performance.max_workers")
NoColor = snek.GetBool("logger.nocolor")