Mergded database function. Scanner now function. nmap added to util. Commands.src created.
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
nmap = function(target_ip)
|
||||
|
||||
target_ip = params[0]
|
||||
nmap = function(target_ip, echo)
|
||||
|
||||
if not (is_valid_ip(target_ip)) then target_ip = nslookup(target_ip)
|
||||
|
||||
@@ -20,9 +18,11 @@ nmap = function(target_ip)
|
||||
router_data.push({"port":port.port_number,"port_info":target_router.port_info(port),"lan_ip":port.get_lan_ip})
|
||||
end for
|
||||
|
||||
print("\nIP Address : " + target_ip)
|
||||
print(format_columns(column))
|
||||
|
||||
if(echo == true) then
|
||||
print("\nIP Address : " + target_ip)
|
||||
print(format_columns(column))
|
||||
end if
|
||||
|
||||
return router_data
|
||||
|
||||
end function
|
||||
Reference in New Issue
Block a user