1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-08 23:49:03 +00:00

nse_check_globals cleanup

This commit is contained in:
patrik
2012-10-07 12:54:31 +00:00
parent 40b1c4705b
commit 121cc35de6
6 changed files with 9 additions and 4 deletions

View File

@@ -1,8 +1,10 @@
local bin = require "bin"
local brute = require "brute"
local creds = require "creds"
local nmap = require "nmap"
local shortport = require "shortport"
local stdnse = require "stdnse"
local string = require "string"
local cassandra = require "cassandra"
description = [[
@@ -47,7 +49,7 @@ Driver = {
-- bit faster login function than in cassandra library (no protocol error checks)
login = function(self, username, password)
local response, magic, size
local response, magic, size, _
local loginstr = cassandra.loginstr (username, password)
local status, err = self.socket:send(bin.pack(">I",string.len(loginstr)))

View File

@@ -4,6 +4,7 @@ local shortport = require "shortport"
local stdnse = require "stdnse"
local bin = require "bin"
local string = require "string"
local table = require "table"
local cassandra = stdnse.silent_require "cassandra"

View File

@@ -64,6 +64,7 @@ local table = require "table"
local httpspider = require "httpspider"
local vulns = require "vulns"
local url = require "url"
local string = require "string"
portrule = shortport.http

View File

@@ -185,7 +185,7 @@ local function broadcast_on_interface(iface)
end
function action()
interface = get_interface()
local interface = get_interface()
broadcast_on_interface(interface)
end

View File

@@ -5,6 +5,7 @@ local io = require "io"
local nmap = require "nmap"
local shortport = require "shortport"
local stdnse = require "stdnse"
local string = require "string"
local tns = require "tns"
local unpwdb = require "unpwdb"
@@ -118,7 +119,7 @@ Driver =
local status, data = self.helper:StealthLogin( username, password )
if ( data["AUTH_VFR_DATA"] ) then
hash = string.format("$o5logon$%s*%s", data["AUTH_SESSKEY"], data["AUTH_VFR_DATA"])
local hash = string.format("$o5logon$%s*%s", data["AUTH_SESSKEY"], data["AUTH_VFR_DATA"])
if ( johnfile ) then
johnfile:write(("%s:%s\n"):format(username,hash))
end