Mergded database function. Scanner now function. nmap added to util. Commands.src created.

This commit is contained in:
2025-02-21 19:02:58 +01:00
parent 5147628ecd
commit 13299b04bb
9 changed files with 146 additions and 17 deletions

View File

@@ -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