mirror of
https://github.com/zr-hebo/sniffer-agent.git
synced 2025-09-20 10:39:19 +08:00
deal all auth packet
This commit is contained in:
@@ -134,10 +134,9 @@ func (nc *networkCard) listenNormal() {
|
||||
|
||||
// send FIN tcp packet to avoid not complete session cannot be released
|
||||
tcpPkt := packet.TransportLayer().(*layers.TCP)
|
||||
payLoad := tcpPkt.Payload
|
||||
// deal FIN packet
|
||||
// deal auth packet
|
||||
if tcpPkt.FIN || (len(payLoad) >= 5 && sd.IsAuthPacket(payLoad[4])) {
|
||||
if tcpPkt.FIN || sd.IsAuthPacket(tcpPkt.Payload) {
|
||||
nc.parseTCPPackage(packet)
|
||||
continue
|
||||
}
|
||||
|
Reference in New Issue
Block a user