mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
This commit is contained in:
@@ -2,6 +2,7 @@ local bin = require "bin"
|
||||
local rmi = require "rmi"
|
||||
local shortport = require "shortport"
|
||||
local string = require "string"
|
||||
local stdnse = require "stdnse"
|
||||
local vulns = require "vulns"
|
||||
|
||||
description = [[
|
||||
@@ -90,7 +91,7 @@ Default configuration of RMI registry allows loading classes from remote URLs wh
|
||||
local report = vulns.Report:new(SCRIPT_NAME, host, port);
|
||||
rmi_vuln.state = vulns.STATE.NOT_VULN;
|
||||
|
||||
rmiArgs:addRaw(bin.pack("H", argsRaw));
|
||||
rmiArgs:addRaw(stdnse.fromhex( argsRaw));
|
||||
|
||||
-- reference: java/rmi/dgc/DGCImpl_Stub.java and java/rmi/dgc/DGCImpl_Skel.java
|
||||
-- we are calling DGC's (its objectId is 2) method with opnum 0
|
||||
|
||||
Reference in New Issue
Block a user