mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Lua 5.2 upgrade [1] for NSE.
[1] http://seclists.org/nmap-dev/2012/q2/34
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
local mysql = require "mysql"
|
||||
local nmap = require "nmap"
|
||||
local shortport = require "shortport"
|
||||
local stdnse = require "stdnse"
|
||||
|
||||
description = [[
|
||||
Dumps the password hashes from an MySQL server in a format suitable for
|
||||
cracking by tools such as John-the-ripper. In order to do so the user
|
||||
@@ -28,8 +33,6 @@ author = "Patrik Karlsson"
|
||||
license = "Same as Nmap--See http://nmap.org/book/man-legal.html"
|
||||
categories = {"auth", "discovery", "safe"}
|
||||
|
||||
local shortport = require('shortport')
|
||||
local mysql = require('mysql')
|
||||
|
||||
dependencies = {"mysql-empty-password", "mysql-brute"}
|
||||
|
||||
@@ -97,4 +100,4 @@ action = function(host, port)
|
||||
if ( result ) then
|
||||
return stdnse.format_output(true, result)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user