Skip to content
This repository was archived by the owner on Apr 1, 2025. It is now read-only.

Commit adea6bf

Browse files
committed
pasv manual debugging
1 parent a8a27ff commit adea6bf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

client/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,9 +453,12 @@ def cmd_PORT(socket, *args):
453453
def cmd_PASV(socket, *args):
454454
"""Envía el comando PASV al servidor FTP para establecer el modo pasivo (el servidor escucha conexiones y el cliente la inicia)."""
455455
try:
456+
print("1- Intentando obtener response de enviar el comando PASV\n")
456457
response = send(socket, 'PASV')
458+
print("2- Response obtenida de enviar el comando PASV, proximo paso imprimir response\n")
457459
# Extraer la dirección IP y el puerto del servidor
458460
print(response)
461+
print("3- Response impresa, proximo paso buscar match\n")
459462
match = re.search(r'(\d+),(\d+),(\d+),(\d+),(\d+),(\d+)', response)
460463
if match:
461464
ip_parts = [int(x) for x in match.groups()[:4]]

0 commit comments

Comments
 (0)