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:
2025-02-16 02:01:53 +01:00
parent f62fd19482
commit 0f35791e01
18 changed files with 599 additions and 59 deletions

30
scanner/util_import.src Normal file
View 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