mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 12:19:02 +00:00
o [NSE] Clean indentation and make some variables local.
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
-- -*- mode: lua -*-
|
||||
-- vim: set filetype=lua :
|
||||
|
||||
description = [[
|
||||
Tests for the presence of the vsFTPd 2.3.4 backdoor reported on 2011-07-04. This
|
||||
script attempts to exploit the backdoor using the innocuous <code>id</code>
|
||||
@@ -134,7 +131,7 @@ action = function(host, port)
|
||||
end
|
||||
|
||||
-- Read banner.
|
||||
buffer = stdnse.make_buffer(sock, "\r?\n")
|
||||
local buffer = stdnse.make_buffer(sock, "\r?\n")
|
||||
local code, message = ftp.read_reply(buffer)
|
||||
if not code then
|
||||
stdnse.print_debug(1, "%s: can't read banner: %s",
|
||||
@@ -152,7 +149,7 @@ action = function(host, port)
|
||||
|
||||
stdnse.sleep(1)
|
||||
-- check if vsFTPd was backdoored
|
||||
local status, ret = check_backdoor(host, cmd)
|
||||
status, ret = check_backdoor(host, cmd)
|
||||
if not status then
|
||||
stdnse.print_debug(1, "%s: %s", SCRIPT_NAME, ret)
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user