Large architecture refactor of the scripting system. Previous implementation required Lua scripts to return "action tables" which were interpreted by a large and not very flexible at all if-else ladder in C++. While fine for the initial implementation, it's not scalable, and it makes it impossible for players to write their own meaningful tools.
10 lines
273 B
Lua
10 lines
273 B
Lua
-- /bin/nmap - Network exploration tool and security/port scanner.
|
|
local target_ip = arg[1]
|
|
|
|
if not target_ip then
|
|
return "nmap: requires a target host to be specified"
|
|
end
|
|
|
|
-- TODO: Add args such as -sV for version detection etc.
|
|
return bettola.nmap(context, target_ip)
|