mirror of
https://github.com/bettercap/bettercap
synced 2025-07-05 20:42:09 -07:00
new: added known services descriptions from IANA
This commit is contained in:
parent
30c4c320a6
commit
e190737c91
2 changed files with 7299 additions and 1 deletions
7291
modules/zerogod/zerogod_known_services.go
Normal file
7291
modules/zerogod/zerogod_known_services.go
Normal file
File diff suppressed because it is too large
Load diff
|
@ -39,8 +39,15 @@ func (mod *ZeroGod) show(filter string, withData bool) error {
|
||||||
ip = svc.HostName
|
ip = svc.HostName
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Fprintf(mod.Session.Events.Stdout, " %s %s:%s\n",
|
svcDesc := ""
|
||||||
|
svcName := strings.SplitN(svc.Service, ".", 2)[0]
|
||||||
|
if desc, found := KNOWN_SERVICES[svcName]; found {
|
||||||
|
svcDesc = tui.Dim(fmt.Sprintf(" %s", desc))
|
||||||
|
}
|
||||||
|
|
||||||
|
fmt.Fprintf(mod.Session.Events.Stdout, " %s%s %s:%s\n",
|
||||||
tui.Green(svc.ServiceInstanceName()),
|
tui.Green(svc.ServiceInstanceName()),
|
||||||
|
svcDesc,
|
||||||
ip,
|
ip,
|
||||||
tui.Red(fmt.Sprintf("%d", svc.Port)),
|
tui.Red(fmt.Sprintf("%d", svc.Port)),
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue