mirror of
https://github.com/telekom-security/tpotce.git
synced 2025-07-02 01:27:27 -04:00
bump glutton to latest master
This commit is contained in:
3
docker/glutton/dist/config.yaml
vendored
3
docker/glutton/dist/config.yaml
vendored
@ -1,6 +1,7 @@
|
||||
ports:
|
||||
tcp: 5000
|
||||
# udp: 5001
|
||||
udp: 5001
|
||||
ssh: 2222
|
||||
|
||||
rules_path: config/rules.yaml
|
||||
|
||||
|
36
docker/glutton/dist/rules.yaml
vendored
Normal file
36
docker/glutton/dist/rules.yaml
vendored
Normal file
@ -0,0 +1,36 @@
|
||||
rules:
|
||||
- match: tcp dst port 23 or port 2323 or port 23231
|
||||
type: conn_handler
|
||||
target: telnet
|
||||
- match: tcp dst port 1883
|
||||
type: conn_handler
|
||||
target: mqtt
|
||||
- match: tcp dst port 6969
|
||||
type: conn_handler
|
||||
target: bittorrent
|
||||
- match: tcp dst port 25
|
||||
type: conn_handler
|
||||
target: smtp
|
||||
- match: tcp dst port 3389
|
||||
type: conn_handler
|
||||
target: rdp
|
||||
- match: tcp dst port 445
|
||||
type: conn_handler
|
||||
target: smb
|
||||
- match: tcp dst port 21
|
||||
type: conn_handler
|
||||
target: ftp
|
||||
- match: tcp dst port 5060
|
||||
type: conn_handler
|
||||
target: sip
|
||||
- match: tcp dst port 5222 or port 5223
|
||||
type: conn_handler
|
||||
target: jabber
|
||||
- match: tcp dst port 11211
|
||||
type: conn_handler
|
||||
target: memcache
|
||||
- match: tcp
|
||||
type: conn_handler
|
||||
target: tcp
|
||||
- match: udp
|
||||
type: drop
|
12
docker/glutton/dist/system.go
vendored
12
docker/glutton/dist/system.go
vendored
@ -27,12 +27,12 @@ func (g *Glutton) startMonitor(quit chan struct{}) {
|
||||
for {
|
||||
select {
|
||||
// case <-ticker.C:
|
||||
// openFiles, err := countOpenFiles()
|
||||
// if err != nil {
|
||||
// fmt.Printf("Failed :%s", err)
|
||||
// }
|
||||
// runningRoutines := runtime.NumGoroutine()
|
||||
// g.Logger.Info(fmt.Sprintf("running Go routines: %d, open files: %d", openFiles, runningRoutines))
|
||||
// openFiles, err := countOpenFiles()
|
||||
// if err != nil {
|
||||
// fmt.Printf("Failed :%s", err)
|
||||
// }
|
||||
// runningRoutines := runtime.NumGoroutine()
|
||||
// g.Logger.Info(fmt.Sprintf("running Go routines: %d, open files: %d", openFiles, runningRoutines))
|
||||
case <-quit:
|
||||
g.Logger.Info("monitoring stopped...")
|
||||
ticker.Stop()
|
||||
|
Reference in New Issue
Block a user