mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 13:11:28 +00:00
Back-merge r22229:22234 from /nmap-releases/5.51.
------------------------------------------------------------------------ r22234 | david | 2011-02-11 14:33:33 -0800 (Fri, 11 Feb 2011) | 4 lines Add an openssl guard around the require of tns in oracle-brute and oracle-enum-users. The tns library makes a call to openssl.rand_pseudo_bytes at its top level. ------------------------------------------------------------------------ r22232 | david | 2011-02-11 14:28:18 -0800 (Fri, 11 Feb 2011) | 4 lines Put an openssl guard around the importing of ssh2 in ssh2-enum-algos.nse. Otherwise it fail in --script-updatedb when configured --without-openssl. ------------------------------------------------------------------------ r22230 | david | 2011-02-11 13:38:49 -0800 (Fri, 11 Feb 2011) | 3 lines Allow whitespace at the end of the go_to_host pattern. On Windows, there's a '\r' at the end of the string, so the pattern didn't match.
This commit is contained in:
@@ -33,8 +33,16 @@ license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
|
||||
categories = {"intrusive", "auth"}
|
||||
|
||||
require 'shortport'
|
||||
require 'tns'
|
||||
require 'unpwdb'
|
||||
if pcall(require,"openssl") then
|
||||
require("tns")
|
||||
else
|
||||
portrule = function() return false end
|
||||
action = function() end
|
||||
stdnse.print_debug( 3, "Skipping %s script because OpenSSL is missing.",
|
||||
SCRIPT_NAME)
|
||||
return;
|
||||
end
|
||||
|
||||
portrule = shortport.port_or_service(1521, 'oracle-tns' )
|
||||
|
||||
@@ -156,4 +164,4 @@ action = function( host, port )
|
||||
end
|
||||
|
||||
return stdnse.format_output(true, result)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user