Remove unused FTP command logging from packet callback function

This commit is contained in:
whaffman 2025-07-11 13:29:34 +02:00
parent f3bc0c1ad0
commit dd37f802d8
2 changed files with 0 additions and 7 deletions

View File

@ -51,9 +51,6 @@ Environment Variables:
Quick Commands:
inquisitor - Start interactive ARP spoofing
sniff-ftp - Start FTP packet sniffing
restore-arp - Restore ARP tables
help - Show all available commands
EOF

View File

@ -40,10 +40,6 @@ def ftp_packet_callback(packet):
"""
if packet.haslayer('IP') and packet.haslayer('TCP'):
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):
# Extract filename from FTP RETR command
payload = bytes(packet['TCP'].payload).decode(errors='ignore')