telnet i ftp (telnet into ftp server)

prisijunkime prie ftp serverio:
telnet IP 21
Gauname atsakyma:
220 ProFTPD 1.3.1 Server (ProFTPD) [xx.xx.xx.xx]
Irasome:
USER anonymous
Atsakymas:
331 Anonymous login ok, send complete email address as your password
Pateikiame pass:
PASS blogger@webdigi.co.uk
Atsakymas:
230 Anonymous access granted, restrictions apply
Pakeiciam darbini kataloga servery:
CWD ietf/ftpext/
Atsakymas:
250 CWD command successful
Nusistatome pasyva:
PASV
Atsakymas:
227 Entering Passive Mode (xx,xx,xx,xx,151,31).
Parsisiuskime failiuka:
RETR ftpext-charter.txt
Atsiuntimas:
150 Opening ASCII mode data connection for ftpext-charter.txt (6060 bytes)
226 Transfer complete

Iseiname:
QUIT
Goodbye:
221 Goodbye.

Tuomet noredami parsisiusti failiuka turime prisijungti kita telneta prie passive port’o. Kaip jau spejote pastebeti kai ivedeme passive gavome eilute:227 Entering Passive Mode (xx,xx,xx,xx,151,31). kaip matome, pirmi keturi yra IP adresas o like portui generuoti skirti skaiciai: 151 * 256 + 31 = 38687. Taigi prisijunkime:
telnet xx.xx.xx.xx 38687
Kiekviena komanda yra vykdoma i atskira porta 😉 kiekviena karta reik skaiciuotis portus ir nusistatyti pasv 😉

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.