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