mIRC Home    About    Download    Register    News    Help

Print Thread
#197698 12/04/08 05:17 PM
Joined: Sep 2007
Posts: 6
N
Noot Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: Sep 2007
Posts: 6
hi all
i maked an ftp sockets but don't work exactly.

The ftp request PORT or PASV method don't work. i have read the rfc 959 but i don't understand the PASV method.

here there is the mirc code:
Code:
alias ftp { sockopen ftp ftp.name.com 21 }
on 1:sockopen:ftp:{ 
  if ($sockerr > 0) return
  echo -a Connection on ftp
  sockwrite -n $sockname USER user 
  sockwrite -n $sockname PASS password
  sockwrite -n $sockname PASV
  sockwrite -n $sockname RETR addon.mrc
  sockwrite -n $sockname QUIT
}
on *:sockread:ftp:{
  if ($sockerr > 0) return
  :prox
  sockread %variable
  if ($sockbr == 0) { return }
  echo -a %variable
  goto prox
}
on *:sockclose:ftp:{ echo -a Socket $sockname closed }

Last edited by Noot; 12/04/08 05:34 PM.
Noot #197735 13/04/08 05:27 AM
Joined: Oct 2005
Posts: 1,741
G
Hoopy frood
Offline
Hoopy frood
G
Joined: Oct 2005
Posts: 1,741
Let me be the first to introduce you to Google.

http://slacksite.com/other/ftp.html

-genius_at_work



Link Copied to Clipboard