Remove unused FTP command logging from packet callback function
This commit is contained in:
parent
f3bc0c1ad0
commit
dd37f802d8
@ -51,9 +51,6 @@ Environment Variables:
|
|||||||
|
|
||||||
Quick Commands:
|
Quick Commands:
|
||||||
inquisitor - Start interactive ARP spoofing
|
inquisitor - Start interactive ARP spoofing
|
||||||
sniff-ftp - Start FTP packet sniffing
|
|
||||||
restore-arp - Restore ARP tables
|
|
||||||
help - Show all available commands
|
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|||||||
@ -40,10 +40,6 @@ def ftp_packet_callback(packet):
|
|||||||
"""
|
"""
|
||||||
if packet.haslayer('IP') and packet.haslayer('TCP'):
|
if packet.haslayer('IP') and packet.haslayer('TCP'):
|
||||||
if packet['TCP'].dport == 21 or packet['TCP'].sport == 21:
|
if packet['TCP'].dport == 21 or packet['TCP'].sport == 21:
|
||||||
payload = bytes(packet['TCP'].payload).decode(errors='ignore')
|
|
||||||
if payload != "":
|
|
||||||
print(f"the FTP payload: {payload}")
|
|
||||||
# print(f"FTP Packet: {packet.summary()}")
|
|
||||||
if b"RETR" in bytes(packet['TCP'].payload):
|
if b"RETR" in bytes(packet['TCP'].payload):
|
||||||
# Extract filename from FTP RETR command
|
# Extract filename from FTP RETR command
|
||||||
payload = bytes(packet['TCP'].payload).decode(errors='ignore')
|
payload = bytes(packet['TCP'].payload).decode(errors='ignore')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user