myinfo.src
//my info
computer = host_computer(get_shell)
gatewayIp = network_gateway(computer)
localIp = get_shell.host_computer.local_ip
publicIp = get_shell.host_computer.public_ip
hostComputer = get_shell.host_computer
netCard = hostComputer.active_net_card
devices = hostComputer.network_devices
deviceList = devices.split(char(10))
router = get_router
bssid = bssid_name(router)
essid = essid_name(router)
metax = include_lib("/lib/metaxploit.so")
ports = used_ports(get_router("1.1.1.1"))
crypto = include_lib("/lib/crypto.so")
smtp= 25
print("<color=#80C7E7>========My=INFO========</color>")
print("<color=#80C7E7>======My=INTERNET======</color>")
print("<color=yellow>Connected by: </color>" + "<color=red>[" + "</color>" + "<color=blue>" + netCard + "</color>"+ "<color=red>]</color>")
print("<color=yellow>Local ip: </color>" + "<color=red>[" + "</color>" + "<color=blue>" + localIp + "</color>"+ "<color=red>]</color>")
print("<color=yellow>Public ip: </color>" + "<color=red>[" + "</color>" + "<color=blue>" + publicIp + "</color>"+ "<color=red>]</color>")
print("<color=yellow>Gateway IP: </color>" + "<color=red>[" + "</color>" + "<color=blue>" + gatewayIp + "</color>"+ "<color=red>]</color>")
print("<color=#80C7E7>========GateWay========</color>")
print("<color=yellow>Bssid: </color>" + "<color=red>[" + "</color>" + "<color=blue>" + bssid + "</color>"+ "<color=red>]</color>")
print("<color=yellow>Essid: </color>" + "<color=red>[" + "</color>" + "<color=blue>" + essid + "</color>"+ "<color=red>]</color>")
print("<color=#80C7E7>========Device's=======</color>")
for item in deviceList
print(item)
// print("<color=yellow>Device\n</color>"+"<color=pink>[" + item + "</color>"+"<color=pink>]</color>")
end for
print("<color=#80C7E7>========Librarys=======</color>")
indexs = 1
for port in ports
netSession = net_use(metax, "1.1.1.1", port_number(port))
metaLib = dump_lib(netSession)
print((indexs + ": " +"<color=red>[" + "</color><color=blue>"+lib_name(metaLib)+"</color><color=red>]</color>" + " - " + "<color=red>[</color>" + "<color=yellow>"+version(metaLib)+"</color><color=red>]</color>" + " on port " + "<color=red>[</color><color=blue>" +port_number(port)+"</color><color=red>]</color>"))
indexs = indexs + 1
end for
hostComputer = get_shell.host_computer
binFolder = hostComputer.File("/lib")
files = binFolder.get_files
metax = include_lib("/lib/metaxploit.so")
indexs = 1
for files in files
// file.remove("crypto")
filesName = files.name
filesPath = files.path
if filesName.indexOf(".so") == filesName.len - 3 then // Check for .so files
result = print((indexs + ": " +"<color=red>[</color><color=blue>" + files.name + "</color><color=red>]</color>"+" - "+"<color=blue>[</color><color=yellow>"+version(metaLib)+ "</color><color=blue>]</color>"))
indexs = indexs + 1
else if typeof(result) == "string" then
print("<color=red>Error checking " + filesPath + ":</color> " + result)
metaLib = load(metax, filesa)
end if
end for
//metaLib2 = load(metax, "/lib/crypto.so")
// print("<color=#EC0BC6FF>Library: </color>"+ "<color=red>[</color><color=blue>" +"init.so" + "</color><color=red>]</color>"+" - "+"<color=red>[</color> <color=blue>"+version(metaLib2)+ "</color><color=red>]</color>"+ " on port " + "<color=red>[</color><color=blue>" +port_number(port)+"</color><color=red>]</color>")
print("<color=#80C7E7>========EMAIL==========</color>")
print(crypto.smtp_user_list(publicIp, smtp))
print("<color=yellow>My Email: </color><color=red>[</color>"+"<color=blue>"+ user_mail_address +"</color>"+ "<color=red>]</color>")
print("<color=#80C7E7>========Ports==========</color>")
if not get_shell.host_computer.is_network_active then exit("No internet access.")
ipAddress = publicIp
isLanIp = is_lan_ip(ipAddress)
if isLanIp then
router = get_router;
else
router = get_router(ipAddress)
end if
if router == null then exit("<color=red>[" + "</color>" + "<color=blue>" + "\nxmap: ip address not found </color>"+ "<color=red>]</color>")
print_ports = function(ports)
info = "PORT STATE SERVICE VERSION LAN"
if typeof(ports) == "string" then return print(ports)
if ports.len == 0 then return print("<color=red>[</color>" + "<color=blue>" + "\nScan finished. No open ports. </color>"+ "<color=red>]</color>")
for port in ports
service_info = router.port_info(port)
lan_ips = port.get_lan_ip
port_status = "Activated"
if(port.is_closed and not isLanIp) then
port_status = "Deactivated"
end if
info = info + "\n" + port.port_number + " " + port_status + " " + service_info + " " + lan_ips
end for
print(format_columns(info) + "\n")
end function
print_ports(router.used_ports)
ports = []
for lan in router.devices_lan_ip
ports = ports + router.device_ports(lan)
end for
print_ports(ports)