Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- met = include_lib("/lib/metaxploit.so")
- if not met then
- met = include_lib(current_path + "/metaxploit.so")
- end if
- fl = get_shell.host_computer.File("/lib")
- all_files = []
- if not fl.has_permission("r") then
- print("Doesn't have read permissions for '/lib'")
- for fname in ["net.so", "init.so", "kernel_module.so", "kernel_router.so", "crypto.so", "libhttp.so", "libsql.so", "libssh.so", "librshell.so", "libsmtp.so", "librepository.so", "libcam.so", "libchat.so", "libftp.so", "aptclient.so", "libmail.so"]
- file = get_shell.host_computer.File("/lib/" + fname)
- if file != null then
- all_files.push(file)
- end if
- end for
- else
- all_files = fl.get_files
- end if
- for file in all_files
- lib = met.load(file.path)
- if lib != null then
- print(lib.lib_name + " " + lib.version)
- end if
- end for
Add Comment
Please, Sign In to add comment