From 14676144b6173cf3096b1862933167f1e8d47648 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 3 Oct 2007 20:48:05 +0000 Subject: [PATCH] Change \n\r to \r\n in two scripts that needed it: anonFTP and finger. --- scripts/anonFTP.nse | 4 ++-- scripts/finger.nse | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/anonFTP.nse b/scripts/anonFTP.nse index 316a5eb28..2855f95de 100644 --- a/scripts/anonFTP.nse +++ b/scripts/anonFTP.nse @@ -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); diff --git a/scripts/finger.nse b/scripts/finger.nse index 7838b2f10..6358cb7f0 100644 --- a/scripts/finger.nse +++ b/scripts/finger.nse @@ -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()