fixed missing files/content
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
//comment out if using a stand alone tool
|
||||
nmap = function(target_ip)
|
||||
|
||||
//uncomment is not using as import.
|
||||
//uncomment if not using as import.
|
||||
//if params.len != 1 or params[0] == "-h" or params[0] == "--help" then exit("<b>Usage: "+program_path.split("/")[-1]+" [ip_address]</b>")
|
||||
|
||||
target_ip = params[0]
|
||||
if not is_valid_ip(target_ip) then exit(target_ip + " is not a valid ip")
|
||||
|
||||
if nslookup(target_ip) == "Not found" then
|
||||
if not (is_valid_ip(target_ip)) then target_ip = nslookup(target_ip)
|
||||
|
||||
if not (is_valid_ip(target_ip)) then
|
||||
exit("<color=red><b>That domain is not valid.</b></color>")
|
||||
end if
|
||||
|
||||
|
||||
Reference in New Issue
Block a user