r2 - 30 Sep 2005 - 14:34:29 - IuriDinizYou are here: TWiki >  Personal Web  > ProtocoloFTP

o mais rápido possivel

   telnet offline.digi.com.br 21

 < Trying 200.241.100.36...
 < Connected to cafe.digi.com.br.
 < Escape character is '^]'.
 < 220 FTP server ready.
   > USER anonymous
 < 331 Anonymous login ok, send your complete email address as your password.
   > PASS iuri@NOSPAMdigizap.com.br
 < 230 Anonymous access granted, restrictions apply.
   > PASV
 < 227 Entering Passive Mode (200,241,100,36,174,16).
  - ABRIR OUTRA CONEXAO EM 200.241.100.36:44560 -
   > LIST
 < 150 Opening ASCII mode data connection for file list
 < 226 Transfer complete.

Antes de dar o comando LIST acima, abrir a conexao especificada em 227 Entering Passive Mode (200,241,100,36,174,16). para receber os dados (no caso o LIST de arquivos)

Onde os 4 primeiros numeros são o IP: 200,241,100,36 -> 200.241.100.36

E os 2 últimos numeros especificam a porta: 174,16 -> (174 << 8) +16 ou (174 * 256 + 16) -> 44560

telnet offline.digi.com.br $(( (174 << 8)+16 ))
# telnet offline.digi.com.br 44560

-- IuriDiniz - 11 Aug 2005

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback