first commit

This commit is contained in:
2026-05-19 20:10:37 +02:00
commit 4813376d59
10 changed files with 354 additions and 0 deletions

35
source/bbuild.src Normal file
View File

@@ -0,0 +1,35 @@
if params.len < 1 or params[0] == "-h" or params[0] == "--help" then
current_program = get_shell.host_computer.File(program_path)
exit("Usage: "+current_program.name+" <source code path>")
end if
source_file = get_shell.host_computer.File(params[0])
if not source_file then
source_file = get_shell.host_computer.File(current_path + params[0])
if not source_file then exit("Unable to locate source file")
end if
cp = get_shell.host_computer
get_shell.build(source_file.path, current_path)
bin_name = source_file.name.split("\.")[0]
bin_file = cp.File(current_path + "/" + bin_name)
if not bin_file then exit("Compiler error")
bin_file.move("/bin", bin_name)
bin_file.set_group("root")
bin_file.set_owner("root")
source_content = source_file.get_content
if source_content.indexOf("""/lib/metaxploit.so""") and bin_name != "bbuild" then
source_content = source_content.replace("""/lib/metaxploit.so""", "current_path + ""/metaxploit.so""")
cp.touch(current_path, bin_name + "_guest.src")
guest_source = cp.File(current_path + "/" + bin_name + "_guest.src")
guest_source.set_content(source_content)
get_shell.build(guest_source.path, current_path)
guest_source.delete
guest_file = cp.File(current_path + "/" + bin_name + "_guest")
else
get_shell.build(source_file.path, current_path)
guest_file = cp.File(current_path + "/" + bin_name)
end if
guest_file.move("/home/" + active_user + "/guest/", bin_name)
guest_file.set_group("guest")
guest_file.set_owner("guest")

42
source/bnmap.src Normal file
View File

@@ -0,0 +1,42 @@
if params.len < 1 or params[0] == "-h" or params[0] == "--help" then
current_program = get_shell.host_computer.File(program_path)
exit("Usage: "+current_program.name+" <remote ip>")
end if
mx = include_lib("/lib/metaxploit.so")
ip = params[0]
// ROUTER
router_sess = mx.net_use(ip)
if not router_sess then
exit("Unable to connect to router")
end if
router_lib = router_sess.dump_lib
data_out = "PORT STATE LIBRARY VERSION LAN"
data_out = data_out + "\n" +
" " + // port
"open" + " " + // state
router_lib.lib_name + " " + // library
router_lib.version + " " + // version
"" // lan ip
// PORTS
router = get_router(ip)
for port in router.used_ports
if port.is_closed == 0 then state = "open" else state = "closed"
sess = mx.net_use(ip, port.port_number)
if not sess then
data_out = data_out + "\n" +
port.port_number + " " + // port
state + " " + // state
"N/A" + " " + // library
"N/A" + " " + // version
"" // lan ip
continue
end if
lib = sess.dump_lib
data_out = data_out + "\n" +
port.port_number + " " + // port
state + " " + // state
lib.lib_name + " " + // library
lib.version + " " + // version
port.get_lan_ip
end for
print(format_columns(data_out))

12
source/libversion.src Normal file
View File

@@ -0,0 +1,12 @@
if params.len < 1 or params[0] == "-h" or params[0] == "--help" then
current_program = get_shell.host_computer.File(program_path)
exit("Usage: "+current_program.name+" <library path> [library path...]")
end if
mx = include_lib("/lib/metaxploit.so")
for lib_path in params
lib = mx.load(lib_path)
if not lib then
print("Unable to load library "+lib_path)
end if
print("Library "+lib.lib_name+" - "+lib.version)
end for

View File

@@ -0,0 +1,5 @@
if params[0] == "-h" or params[0] == "--help" then
current_program = get_shell.host_computer.File(program_path)
exit("Usage: "+current_program.name+" <remote ip> <remote port> <address> <data>")
end if
mx = include_lib("metaxploit.so")

22
source/lscan.src Normal file
View File

@@ -0,0 +1,22 @@
if params.len < 1 or params[0] == "-h" or params[0] == "--help" then
current_program = get_shell.host_computer.File(program_path)
exit("Usage: "+current_program.name+" <library path>")
end if
mx = include_lib("/lib/metaxploit.so")
lib_path = params[0]
lib_file = get_shell.host_computer.File(lib_path)
if not lib_file then
lib_file = get_shell.host_computer.File(current_path + lib_path)
if not lib_file then
exit("Unable to find library")
end if
end if
lib = mx.load(lib_file.path)
if not lib then
exit("Unable to load library")
end if
adds = mx.scan(lib)
for add in adds
print("Address: " + add)
print(mx.scan_address(lib, add))
end for

58
source/overflow.src Normal file
View File

@@ -0,0 +1,58 @@
if params.len < 1 or params[0] == "-h" or params[0] == "--help" then
current_program = get_shell.host_computer.File(program_path)
print("Usage: " + current_program.name + " <library path>")
print("--- OR ---")
exit("Usage: " + current_program.name + " <remote ip> <remote port> <address> <data>")
end if
mx = include_lib("/lib/metaxploit.so")
extra_data = ""
if params.len == 1 or params.len == 2 then
lib_file = get_shell.host_computer.File(params[0])
if not lib_file then
lib_file = get_shell.host_computer.File(current_path + params[0])
if not lib_file then exit("Unable to load library from local path")
end if
lib = mx.load(lib_file.path)
if params.len == 2 then
extra_data = params[1]
end if
else
ip = params[0]
port = params[1].to_int
address = params[2]
data = params[3]
if port == 0 then
sess = mx.net_use(ip)
else
sess = mx.net_use(ip, port)
end if
if not sess then
exit("Unable to establish session")
end if
lib = sess.dump_lib()
if params.len == 5 then
extra_data == params[4]
end if
end if
if extra_data != "" then
extra_data = params[4]
of = lib.overflow(address, data, extra_data)
else
of = lib.overflow(address, data)
end if
to = typeof(of)
if to == "shell" then
of.start_terminal
else if to == "file" then
print(of.path(true))
if of.is_folder then
for f in of.get_files
print(f.owner+" "+f.group+" "+f.permissions+" "+f.name)
end for
else
print(of.get_content)
end if
else
print(typeof(of))
end if

21
source/rscan.src Normal file
View File

@@ -0,0 +1,21 @@
if params.len < 2 or params[0] == "-h" or params[0] == "--help" then
current_program = get_shell.host_computer.File(program_path)
exit("Usage: "+current_program.name+" <remote ip> [remote port]")
end if
mx = include_lib("/lib/metaxploit.so")
ip = params[0]
port = params[1].to_int
if port == 0 then
sess = mx.net_use(ip)
else
sess = mx.net_use(ip, port)
end if
if not sess then
exit("Unable to establish session")
end if
lib = sess.dump_lib
adds = mx.scan(lib)
for add in adds
print("Address: " + add)
print(mx.scan_address(lib, add))
end for

38
source/wifi.src Normal file
View File

@@ -0,0 +1,38 @@
crypto = include_lib("/lib/crypto.so")
computer = get_shell.host_computer
cappath = current_path + "/file.cap"
info = "BSSID STRENGTH ESSID"
netname = ""
command = ""
if params.len > 0 then command = params[0] end if
for letter in computer.network_devices
if letter == " " then
break
end if
netname = netname + letter
end for
nets = computer.wifi_networks(netname)
for net in nets
bssid = net.split(" ")[0]
strength = net.split(" ")[1][0:2].to_int
essid = net.split(" ")[2]
if command == "-l" then
info = info + "\n" + net
continue
else if command == essid or command == bssid or command == "" then
crypto.airmon("start", netname)
crypto.aireplay(bssid, essid, floor(300000 / strength))
pwd = crypto.aircrack(cappath)
print(pwd)
capfile = computer.File(cappath)
capfile.delete
crypto.airmon("stop", netname)
connected = computer.connect_wifi(netname, bssid, essid, pwd)
if connected then
print("Connected to " + essid)
end if
end if
end for
if command == "-l" then
print(format_columns(info))
end if