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:
@@ -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)))
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user