Skip to content

Commit

Permalink
mirai: check if TTL is 64
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyaglow committed Jul 28, 2019
1 parent 58bdf48 commit d4f653a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mirai.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ func MiraiIdentifier(p gopacket.Packet) []string {
return nil
}

if ip4.TTL != 64 {
return nil
}

tcp := unpackTCP(p)
if tcp == nil {
return nil
Expand Down

0 comments on commit d4f653a

Please sign in to comment.