This commit is contained in:
2026-08-23 21:17:51 +02:00
parent 7807cf430c
commit 1a422196eb
8 changed files with 104 additions and 94 deletions

View File

@@ -1,8 +1,8 @@
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>")
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 = ""
@@ -27,9 +27,9 @@ else
sess = mx.net_use(ip, port)
end if
if not sess then
exit("Unable to establish session")
exit "Unable to establish session"
end if
lib = sess.dump_lib()
lib = sess.dump_lib
if params.len == 5 then
extra_data == params[4]
end if
@@ -45,14 +45,14 @@ to = typeof(of)
if to == "shell" then
of.start_terminal
else if to == "file" then
print(of.path(true))
print of.path(true)
if of.is_folder then
for f in of.get_files
print(f.owner+" "+f.group+" "+f.permissions+" "+f.name)
print f.owner + " " + f.group + " " + f.permissions + " " + f.name
end for
else
print(of.get_content)
print of.get_content
end if
else
print(typeof(of))
print typeof(of)
end if