mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Change \n\r to \r\n in two scripts that needed it: anonFTP and finger.
This commit is contained in:
parent
99627d0642
commit
14676144b6
2 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue