Skip to content

Commit

Permalink
update for snmp
Browse files Browse the repository at this point in the history
SNMP always have a RAW layer.
  • Loading branch information
newpIDC authored Jun 26, 2018
1 parent eefe20d commit e1c6f4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net-creds.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def pkt_parser(pkt):
return

# UDP
if pkt.haslayer(UDP) and pkt.haslayer(IP) and pkt.haslayer(Raw):
if pkt.haslayer(UDP) and pkt.haslayer(IP):

src_ip_port = str(pkt[IP].src) + ':' + str(pkt[UDP].sport)
dst_ip_port = str(pkt[IP].dst) + ':' + str(pkt[UDP].dport)
Expand Down

0 comments on commit e1c6f4d

Please sign in to comment.