diff --git a/masscan.go b/masscan.go index e930aa6..37bf3a3 100644 --- a/masscan.go +++ b/masscan.go @@ -19,6 +19,10 @@ func MasscanIdentifier(p gopacket.Packet) []string { return nil } + if tcp.SYN == false { + return nil + } + ipUint := binary.BigEndian.Uint32(ip4.DstIP) want := ipUint ^ uint32(tcp.DstPort) ^ tcp.Seq diff --git a/mirai.go b/mirai.go index bf4c19e..7f8ed1c 100644 --- a/mirai.go +++ b/mirai.go @@ -20,6 +20,10 @@ func MiraiIdentifier(p gopacket.Packet) []string { return nil } + if tcp.SYN == false { + return nil + } + if binary.BigEndian.Uint32(ip4.DstIP) != tcp.Seq { return nil }