Skip to content

Commit

Permalink
pcap2john.py: cleanup, removed sleep, added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
exploide authored and solardiz committed Jul 7, 2024
1 parent b2635ab commit cd646a0
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions run/pcap2john.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import socket
import struct
import sys
import time

import logging
l = logging.getLogger("scapy.runtime")
Expand Down Expand Up @@ -180,6 +179,9 @@ def pcap_parser_vtp(fname):


def pcap_parser_vrrp(fname):
"""
Parse packets of the Virtual Router Redundancy Protocol (VRRP).
"""

pcap = rdpcap(fname)

Expand Down Expand Up @@ -585,7 +587,10 @@ def pcap_parser_isis(fname):


def pcap_parser_hsrp(fname):
# HSRP message format: https://www.ietf.org/rfc/rfc2281.txt
"""
Parse packets of the Hot Standby Router Protocol (HSRP).
https://www.rfc-editor.org/rfc/rfc2281
"""

pcap = rdpcap(fname)

Expand Down Expand Up @@ -1308,7 +1313,6 @@ def pcap_parser_http_authorization(fname):

# advertise what is not handled
sys.stderr.write("Note: This program does not have the functionality of wpapcap2john, SIPdump, eapmd5tojohn, and vncpcap2john programs which are included with JtR Jumbo.\n\n")
time.sleep(1)

for i in range(1, len(sys.argv)):
try:
Expand Down

0 comments on commit cd646a0

Please sign in to comment.