1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 20:51:30 +00:00

nse_check_globals cleanup

This commit is contained in:
patrik
2012-12-18 02:46:01 +00:00
parent b3b3fa70e8
commit 0587b3e0c4
3 changed files with 8 additions and 1 deletions

View File

@@ -7,6 +7,7 @@ local ipOps = require "ipOps"
local target = require "target" local target = require "target"
local coroutine = require "coroutine" local coroutine = require "coroutine"
local string = require "string" local string = require "string"
local io = require "io"
description = [[ description = [[
Discovers targets that have IGMP Multicast memberships and grabs interesting information. Discovers targets that have IGMP Multicast memberships and grabs interesting information.

View File

@@ -1,6 +1,8 @@
local bin = require "bin" local bin = require "bin"
local comm = require "comm" local comm = require "comm"
local nmap = require "nmap"
local shortport = require "shortport" local shortport = require "shortport"
local string = require "string"
description = [[ description = [[
Detects the Murmur service (server for the Mumble voice communication Detects the Murmur service (server for the Mumble voice communication
@@ -34,7 +36,7 @@ See http://mumble.sourceforge.net/Protocol.
-- 64740/tcp open murmur Murmur 1.2.4 (control port; users: 35; max. users: 100; bandwidth: 72000 b/s) -- 64740/tcp open murmur Murmur 1.2.4 (control port; users: 35; max. users: 100; bandwidth: 72000 b/s)
-- 64740/udp open murmur Murmur 1.2.4 (voice port; users: 35; max. users: 100; bandwidth: 72000 b/s) -- 64740/udp open murmur Murmur 1.2.4 (voice port; users: 35; max. users: 100; bandwidth: 72000 b/s)
author = "Marin Maržić" author = "Marin Marzic"
license = "Same as Nmap--See http://nmap.org/book/man-legal.html" license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
categories = { "version" } categories = { "version" }
@@ -64,6 +66,7 @@ action = function(host, port)
port.version.product = "Murmur" port.version.product = "Murmur"
port.version.version = v_a .. "." .. v_b .. "." .. v_c port.version.version = v_a .. "." .. v_b .. "." .. v_c
-- Set extra info depending on protocol and set port state to "open" if UDP -- Set extra info depending on protocol and set port state to "open" if UDP
local portinfo
if port.protocol == "tcp" then if port.protocol == "tcp" then
portinfo = "control port" portinfo = "control port"
else else

View File

@@ -1,9 +1,11 @@
local bin = require "bin"
local brute = require "brute" local brute = require "brute"
local creds = require "creds" local creds = require "creds"
local mysql = require "mysql" local mysql = require "mysql"
local nmap = require "nmap" local nmap = require "nmap"
local shortport = require "shortport" local shortport = require "shortport"
local stdnse = require "stdnse" local stdnse = require "stdnse"
local string = require "string"
local openssl = stdnse.silent_require "openssl" local openssl = stdnse.silent_require "openssl"
@@ -75,6 +77,7 @@ Driver = {
end end
stdnse.print_debug( "Trying %s ...", pass) stdnse.print_debug( "Trying %s ...", pass)
local auth_string = bin.pack("H","0000018d00000000") .. pass .. bin.pack("H","00504e5f5155454d4500"); -- old authentication method local auth_string = bin.pack("H","0000018d00000000") .. pass .. bin.pack("H","00504e5f5155454d4500"); -- old authentication method
local err
status, err = self.socket:send(bin.pack("c",string.len(auth_string)-3) .. auth_string) --send initial auth status, err = self.socket:send(bin.pack("c",string.len(auth_string)-3) .. auth_string) --send initial auth
status, response = self.socket:receive_bytes(0) status, response = self.socket:receive_bytes(0)
if not status then if not status then