xModders

Dump.src

Jan 21st, 2025 (edited)
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | Gaming | 0 0
  1. import_code("/dev/sources/OsInt.src");
  2. metaxploit = include_lib("/lib/metaxploit.so");
  3.  
  4. if params.len == 1 then
  5.  
  6. target = metaxploit.net_use(params[0]);
  7.  
  8. else if params.len == 2 then
  9.  
  10. target = metaxploit.net_use(params[0],params[1].to_int);
  11.  
  12. else
  13.  
  14. print("Usage: dump [ip] [opt: port]");
  15.  
  16. end if
  17.  
  18. print(target);
  19.  
  20. Lib = target.dump_lib;
  21. Name = Lib.lib_name;
  22. Version = Lib.version;
  23. hacks = [];
  24.  
  25. code = md5(Name + Version);
  26. dbpath = "/var/exploit/db/" + code;
  27. db = get_shell.host_computer.File(dbpath).get_files;
  28.  
  29. for exploit in db
  30.  
  31. data = exploit.get_content;
  32. data = data.split(" ");
  33.  
  34. // name-0 version-1 address-2 buffer-3 arg-4 type-5
  35. if Name == data[0].split(":")[1] and Version == data[1].split(":")[1] then
  36.  
  37. hack = {"address":data[2].split(":")[1],"buffer":data[3].split(":")[1],"arg":data[4].split(":")[1],"type":data[5].split(":")[1]};
  38. hacks.push(hack);
  39.  
  40. end if
  41.  
  42. end for
  43.  
  44.  
  45. menu = function(table,lib)
  46.  
  47. choice_number = 1;
  48. for item in table
  49.  
  50. print("[" + choice_number + "] address:" + item.address + " unsafe_string:" + item.buffer + " arg:" + item.arg + " type:" + item.type);
  51. choice_number = choice_number + 1;
  52.  
  53. end for
  54.  
  55. user_choice = user_input("Select an exploit to launch against the target:");
  56.  
  57. if (user_choice.to_int - 1) <= table.len and user_choice.to_int != 0 then
  58.  
  59. x = table[user_choice.to_int - 1];
  60. y = lib.overflow(x.address,x.buffer,x.arg);
  61.  
  62. if typeof(y) == "shell" then
  63.  
  64. y.start_terminal;
  65.  
  66. else if typeof(y) == "computer" then
  67.  
  68. DumpPasswd(y);
  69. DumpSocial(y);
  70.  
  71. end if
  72.  
  73. end if
  74.  
  75. menu(table,lib);
  76. end function
  77.  
  78. menu(hacks,Lib);
Tags: Script
Advertisement
Add Comment
Please, Sign In to add comment