Feat: add MCP honeypot support (#199)

* Add MCP honeypot

* Add http headers in plain text

* Improve code coverage

* Refactor README.md
This commit is contained in:
Mario Candela
2025-07-01 23:07:49 +02:00
committed by GitHub
parent e1e80120df
commit c032489522
12 changed files with 326 additions and 50 deletions

View File

@ -106,6 +106,7 @@ func TestUpdatePrometheusCounters(t *testing.T) {
eventsSSHTotal: mockCounter{},
eventsTCPTotal: mockCounter{},
eventsHTTPTotal: mockCounter{},
eventsMCPTotal: mockCounter{},
}
tracer.updatePrometheusCounters(SSH.String())
@ -116,4 +117,7 @@ func TestUpdatePrometheusCounters(t *testing.T) {
tracer.updatePrometheusCounters(TCP.String())
assert.Equal(t, 6, counter)
tracer.updatePrometheusCounters(MCP.String())
assert.Equal(t, 8, counter)
}