mirror of
https://github.com/nmap/nmap.git
synced 2025-12-08 05:31:31 +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:
@@ -1,5 +1,9 @@
|
|||||||
# Nmap Changelog ($Id$); -*-text-*-
|
# Nmap Changelog ($Id$); -*-text-*-
|
||||||
|
|
||||||
|
o [Zenmap] Selecting one of the scan targets in the left pane is
|
||||||
|
supposed to jump to that host in the Nmap Output in the right pane
|
||||||
|
(but it wasn't). Brian Krebs reported this bug. [David]
|
||||||
|
|
||||||
o The -V and --version options now show the platform Nmap was compiled
|
o The -V and --version options now show the platform Nmap was compiled
|
||||||
on, which features are compiled in, and the version numbers of
|
on, which features are compiled in, and the version numbers of
|
||||||
libraries it is linked against. [Ambarisha B., David]
|
libraries it is linked against. [Ambarisha B., David]
|
||||||
|
|||||||
@@ -37,7 +37,15 @@ categories = {"intrusive", "auth"}
|
|||||||
|
|
||||||
require 'shortport'
|
require 'shortport'
|
||||||
require 'brute'
|
require 'brute'
|
||||||
require 'tns'
|
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", "tcp", "open")
|
portrule = shortport.port_or_service(1521, "oracle-tns", "tcp", "open")
|
||||||
|
|
||||||
@@ -134,4 +142,4 @@ action = function(host, port)
|
|||||||
status, result = engine:start()
|
status, result = engine:start()
|
||||||
|
|
||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -33,8 +33,16 @@ license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
|
|||||||
categories = {"intrusive", "auth"}
|
categories = {"intrusive", "auth"}
|
||||||
|
|
||||||
require 'shortport'
|
require 'shortport'
|
||||||
require 'tns'
|
|
||||||
require 'unpwdb'
|
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' )
|
portrule = shortport.port_or_service(1521, 'oracle-tns' )
|
||||||
|
|
||||||
@@ -156,4 +164,4 @@ action = function( host, port )
|
|||||||
end
|
end
|
||||||
|
|
||||||
return stdnse.format_output(true, result)
|
return stdnse.format_output(true, result)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -57,7 +57,15 @@ categories = {"safe", "discovery"}
|
|||||||
|
|
||||||
require "shortport"
|
require "shortport"
|
||||||
require "stdnse"
|
require "stdnse"
|
||||||
require "ssh2"
|
if pcall(require,"openssl") then
|
||||||
|
require("ssh2")
|
||||||
|
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(22, "ssh")
|
portrule = shortport.port_or_service(22, "ssh")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user