mirror of
https://github.com/nmap/nmap.git
synced 2026-01-06 06:29:03 +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 creds = require "creds"
|
||||
local nmap = require "nmap"
|
||||
local shortport = require "shortport"
|
||||
local stdnse = require "stdnse"
|
||||
|
||||
description = [[
|
||||
Connects to the mobile mouse server, starts an application and sends a sequence
|
||||
of keys to it. Any application that the user has access to can be started and
|
||||
@@ -35,8 +40,6 @@ author = "Patrik Karlsson"
|
||||
categories = {"intrusive"}
|
||||
dependencies = {"mmouse-brute"}
|
||||
|
||||
local shortport = require('shortport')
|
||||
local creds = require('creds')
|
||||
|
||||
local arg_password = stdnse.get_script_args(SCRIPT_NAME .. '.password')
|
||||
local arg_app = stdnse.get_script_args(SCRIPT_NAME .. '.application')
|
||||
@@ -172,4 +175,4 @@ action = function(host, port)
|
||||
end
|
||||
|
||||
return ("\n Attempted to start application \"%s\" and sent \"%s\""):format(arg_app, arg_keys)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user