Advertisement
Guest User

Untitled

a guest
Mar 26th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. var list = scan();
  2. var i;
  3. var hacks = 0;
  4.  
  5. if (fileExists("BruteSSH.exe", "home")) {
  6. hacks++;
  7. }
  8. if (fileExists("FTPCrack.exe", "home")) {
  9. hacks++;
  10. }
  11. if (fileExists("relaySMTP.exe", "home")) {
  12. hacks++;
  13. }
  14. if (fileExists("HTTPWorm.exe", "home")) {
  15. hacks++;
  16. }
  17. if (fileExists("SQLInject.exe", "home")) {
  18. hacks++;
  19. }
  20. //tprint(hacks)
  21. for (i = 0; i < list.length; i++) {
  22. if (list[i].indexOf("pserv") > -1) {
  23. //tprint("pserv, continuing")
  24. continue;
  25. }
  26.  
  27. var target = list[i]
  28. var ports = getServerNumPortsRequired(list[i]);
  29. //tprint("crawled to "+target+" came across "+ports+" ports")
  30.  
  31. if (ports > hacks){
  32. //tprint("insufficient hacks, continuing")
  33. continue;
  34. }
  35. if (!hasRootAccess(list[i])) {
  36. //tprint("not root at "+target)
  37. exec("hacks.script", "12.3.8.5", 1, ports, target)
  38. }
  39.  
  40. scp("rootcrawler.script", target)
  41. exec("rootcrawler.script", target)
  42. scp("pserver.script", target)
  43.  
  44.  
  45. }
  46. tprint("done.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement