added xploit payloads, move things to util folder, tool needs alot of work, scanner cleaned up, bunch of database features
This commit is contained in:
30
scanner/util_import.src
Normal file
30
scanner/util_import.src
Normal file
@@ -0,0 +1,30 @@
|
||||
//loads metaxploit
|
||||
mxploit = function()
|
||||
metaxploit = include_lib("/lib/metaxploit.so")
|
||||
if not metaxploit then
|
||||
metaxploit = include_lib(current_path + "/metaxploit.so")
|
||||
end if
|
||||
if not metaxploit then exit("Error: Can't find metaxploit library in the /lib path or the current folder")
|
||||
return metaxploit
|
||||
end function
|
||||
|
||||
//returns random external IP
|
||||
randomIp = function()
|
||||
while true
|
||||
ip = floor((rnd * 255) + 1) + "." + floor((rnd * 255) + 1) + "." + floor((rnd * 255) + 1) + "." + floor((rnd * 255) + 1)
|
||||
if not is_valid_ip(ip) then continue
|
||||
if is_lan_ip(ip) then continue
|
||||
return ip
|
||||
end while
|
||||
end function
|
||||
|
||||
//convert webadress to IP
|
||||
webToIp = function(target)
|
||||
if not is_valid_ip(target) then
|
||||
target = nslookup(target)
|
||||
if not is_valid_ip(target) then return 1
|
||||
return target
|
||||
end if
|
||||
return target
|
||||
end function
|
||||
|
||||
Reference in New Issue
Block a user