| 1 | package net_sniffscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/net_sniff`/ |
| 2 | |
| 3 | import ( |
| 4 | "github.com/bettercap/bettercap/packetsscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/packets`/" |
| 5 | "netscip-go gomod github.com/golang/go/src go1.16 net/" |
| 6 | |
| 7 | "github.com/google/gopacketscip-go gomod github.com/google/gopacket v1.1.19 `github.com/google/gopacket`/" |
| 8 | "github.com/google/gopacket/layersscip-go gomod github.com/google/gopacket v1.1.19 `github.com/google/gopacket/layers`/" |
| 9 | |
| 10 | "github.com/evilsocket/islazy/tuiscip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/tui`/" |
| 11 | ) |
| 12 | |
| 13 | func teamViewerParserscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/net_sniff`/teamViewerParser().(srcIP, dstIP netscip-go gomod github.com/golang/go/src go1.16 net/.IPscip-go gomod github.com/golang/go/src go1.16 net/IP#, payload []byte, pkt gopacketscip-go gomod github.com/google/gopacket v1.1.19 `github.com/google/gopacket`/.Packetscip-go gomod github.com/google/gopacket v1.1.19 `github.com/google/gopacket`/Packet#, tcp *layersscip-go gomod github.com/google/gopacket v1.1.19 `github.com/google/gopacket/layers`/.TCPscip-go gomod github.com/google/gopacket v1.1.19 `github.com/google/gopacket/layers`/TCP#) bool { |
| 14 | if tcp.SrcPortscip-go gomod github.com/google/gopacket v1.1.19 `github.com/google/gopacket/layers`/TCP#SrcPort. == packetsscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/packets`/.TeamViewerPortscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/packets`/TeamViewerPort. || tcp.DstPortscip-go gomod github.com/google/gopacket v1.1.19 `github.com/google/gopacket/layers`/TCP#DstPort. == packetsscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/packets`/.TeamViewerPortscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/packets`/TeamViewerPort. { |
| 15 | if tv := packetsscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/packets`/.ParseTeamViewerscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/packets`/ParseTeamViewer().(tcp.Payloadscip-go gomod github.com/google/gopacket v1.1.19 `github.com/google/gopacket/layers`/BaseLayer#Payload.); tv != nil { |
| 16 | NewSnifferEventscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/net_sniff`/NewSnifferEvent().( |
| 17 | pkt.Metadatascip-go gomod github.com/google/gopacket v1.1.19 `github.com/google/gopacket`/Packet#Metadata().().Timestampscip-go gomod github.com/google/gopacket v1.1.19 `github.com/google/gopacket`/CaptureInfo#Timestamp., |
| 18 | "teamviewer", |
| 19 | srcIP.Stringscip-go gomod github.com/golang/go/src go1.16 net/IP#String().(), |
| 20 | dstIP.Stringscip-go gomod github.com/golang/go/src go1.16 net/IP#String().(), |
| 21 | nil, |
| 22 | "%s %s %s > %s", |
| 23 | tuiscip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/tui`/.Wrapscip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/tui`/Wrap().(tuiscip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/tui`/.BACKYELLOWscip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/tui`/BACKYELLOW.+tuiscip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/tui`/.FOREWHITEscip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/tui`/FOREWHITE., "teamviewer"), |
| 24 | vIPscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/net_sniff`/vIP().(srcIP), |
| 25 | tuiscip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/tui`/.Yellowscip-go gomod github.com/evilsocket/islazy v1.11.0 `github.com/evilsocket/islazy/tui`/Yellow().(tv.Commandscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/packets`/TeamViewerPacket#Command.), |
| 26 | vIPscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/net_sniff`/vIP().(dstIP), |
| 27 | ).Pushscip-go gomod github.com/bettercap/bettercap . `github.com/bettercap/bettercap/modules/net_sniff`/SnifferEvent#Push().() |
| 28 | return true |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | return false |
| 33 | } |