Bl4ckC4t1337

LibVersions (GreyHack)

Jan 25th, 2020 (edited)
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. met = include_lib("/lib/metaxploit.so")
  2. if not met then
  3. met = include_lib(current_path + "/metaxploit.so")
  4. end if
  5.  
  6. fl = get_shell.host_computer.File("/lib")
  7. all_files = []
  8. if not fl.has_permission("r") then
  9. print("Doesn't have read permissions for '/lib'")
  10. 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"]
  11. file = get_shell.host_computer.File("/lib/" + fname)
  12. if file != null then
  13. all_files.push(file)
  14. end if
  15. end for
  16. else
  17. all_files = fl.get_files
  18. end if
  19.  
  20. for file in all_files
  21. lib = met.load(file.path)
  22. if lib != null then
  23.  
  24. print(lib.lib_name + " " + lib.version)
  25. end if
  26.  
  27. end for
  28.  
Add Comment
Please, Sign In to add comment