fixed privesc no arguments print message, added library name in loop

This commit is contained in:
2026-08-23 23:47:14 +02:00
parent be18422a17
commit 0485298af7

View File

@@ -1,4 +1,4 @@
if params.len < 1 or params[0] == "-h" or params[0] == "--help" then
if params.len > 0 and (params[0] == "-h" or params[0] == "--help") then
current_program = get_shell.host_computer.File(program_path)
print "Usage: " + current_program.name + " [-h|<library path> [extra]]"
print " -h show this help message"
@@ -168,6 +168,11 @@ end function
user_shell = null
for item in libs
if not target_lib then
print "---"
print item.name
print "---"
end if
adds = mx.scan(item.lib)
if not adds then continue
for add in adds