mirror of
https://github.com/yunginnanet/HellPot
synced 2024-06-28 08:40:48 +00:00
update README and fix typo
This commit is contained in:
parent
54c93a178a
commit
369150d443
17
README.md
17
README.md
@ -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)
|
[![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).
|
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).
|
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`.
|
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]
|
[http]
|
||||||
|
# TCP Listener (default)
|
||||||
bind_addr = "127.0.0.1"
|
bind_addr = "127.0.0.1"
|
||||||
bind_port = "8080"
|
bind_port = "8080"
|
||||||
paths = ["wp-login.php","wp-login"]
|
paths = ["wp-login.php","wp-login"]
|
||||||
unix_socket = "/var/run/hellpot"
|
|
||||||
|
# Unix Socket Listener (will override default)
|
||||||
use_unix_socket = false
|
use_unix_socket = false
|
||||||
|
unix_socket = "/var/run/hellpot"
|
||||||
|
|
||||||
[logger]
|
[logger]
|
||||||
debug = true
|
debug = true
|
||||||
@ -54,6 +57,10 @@ location '/wp-login.php' {
|
|||||||
# max_workers is only valid if restrict_concurrency is true
|
# max_workers is only valid if restrict_concurrency is true
|
||||||
restrict_concurrency = false
|
restrict_concurrency = false
|
||||||
max_workers = 256
|
max_workers = 256
|
||||||
|
|
||||||
|
[deception]
|
||||||
|
# Used as "Server: " header (if not proxied)
|
||||||
|
server_name = "nginx"
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ var (
|
|||||||
MaxWorkers int
|
MaxWorkers int
|
||||||
)
|
)
|
||||||
|
|
||||||
// "diception"
|
// "deception"
|
||||||
var (
|
var (
|
||||||
// FakeServerName is our configured value for the "Server: " response header when serving HTTP clients
|
// FakeServerName is our configured value for the "Server: " response header when serving HTTP clients
|
||||||
FakeServerName string
|
FakeServerName string
|
||||||
@ -143,7 +143,7 @@ func Init() {
|
|||||||
|
|
||||||
func setDefaults() {
|
func setDefaults() {
|
||||||
var (
|
var (
|
||||||
configSections = []string{"logger", "http", "performance", "diception"}
|
configSections = []string{"logger", "http", "performance", "deception"}
|
||||||
deflogdir = home + "/.config/" + Title + "/logs/"
|
deflogdir = home + "/.config/" + Title + "/logs/"
|
||||||
defNoColor = false
|
defNoColor = false
|
||||||
)
|
)
|
||||||
@ -173,7 +173,7 @@ func setDefaults() {
|
|||||||
"restrict_concurrency": false,
|
"restrict_concurrency": false,
|
||||||
"max_workers": 256,
|
"max_workers": 256,
|
||||||
}
|
}
|
||||||
Opt["diception"] = map[string]interface{}{
|
Opt["deception"] = map[string]interface{}{
|
||||||
"server_name": "nginx",
|
"server_name": "nginx",
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -256,7 +256,7 @@ func associate() {
|
|||||||
BindPort = snek.GetString("http.bind_port")
|
BindPort = snek.GetString("http.bind_port")
|
||||||
Paths = snek.GetStringSlice("http.paths")
|
Paths = snek.GetStringSlice("http.paths")
|
||||||
UseUnixSocket = snek.GetBool("http.use_unix_socket")
|
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")
|
RestrictConcurrency = snek.GetBool("performance.restrict_concurrency")
|
||||||
MaxWorkers = snek.GetInt("performance.max_workers")
|
MaxWorkers = snek.GetInt("performance.max_workers")
|
||||||
NoColor = snek.GetBool("logger.nocolor")
|
NoColor = snek.GetBool("logger.nocolor")
|
||||||
|
Loading…
Reference in New Issue
Block a user