Change \n\r to \r\n in two scripts that needed it: anonFTP and finger.

This commit is contained in:
david 2007-10-03 20:48:05 +00:00
parent 99627d0642
commit 14676144b6
2 changed files with 3 additions and 3 deletions

View file

@ -26,8 +26,8 @@ action = function(host, port)
socket:set_timeout(5000)
try(socket:connect(host.ip, port.number, port.protocol))
try(socket:send("USER anonymous\n\r"))
try(socket:send("PASS IEUser@\n\r"))
try(socket:send("USER anonymous\r\n"))
try(socket:send("PASS IEUser@\r\n"))
while status do
status, result = socket:receive_lines(1);

View file

@ -25,7 +25,7 @@ action = function(host, port)
socket:set_timeout(5000)
try(socket:connect(host.ip, port.number, port.protocol))
try(socket:send("\n\r"))
try(socket:send("\r\n"))
status, results = socket:receive_lines(100)
socket:close()