Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan McInerney committed Oct 18, 2015
2 parents bdaca1c + ed43723 commit 2e23c2d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions net-creds.py
Original file line number Diff line number Diff line change
Expand Up @@ -968,11 +968,11 @@ def main(args):
# Read packets from either pcap or interface
if args.pcap:
try:
pcap = rdpcap(args.pcap)
except Exception:
for pkt in PcapReader(args.pcap):
pkt_parser(pkt)
except IOError:
exit('[-] Could not open %s' % args.pcap)
for pkt in pcap:
pkt_parser(pkt)

else:
# Check for root
if geteuid():
Expand Down

0 comments on commit 2e23c2d

Please sign in to comment.