Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var list = scan();
- var i;
- var hacks = 0;
- if (fileExists("BruteSSH.exe", "home")) {
- hacks++;
- }
- if (fileExists("FTPCrack.exe", "home")) {
- hacks++;
- }
- if (fileExists("relaySMTP.exe", "home")) {
- hacks++;
- }
- if (fileExists("HTTPWorm.exe", "home")) {
- hacks++;
- }
- if (fileExists("SQLInject.exe", "home")) {
- hacks++;
- }
- //tprint(hacks)
- for (i = 0; i < list.length; i++) {
- if (list[i].indexOf("pserv") > -1) {
- //tprint("pserv, continuing")
- continue;
- }
- var target = list[i]
- var ports = getServerNumPortsRequired(list[i]);
- //tprint("crawled to "+target+" came across "+ports+" ports")
- if (ports > hacks){
- //tprint("insufficient hacks, continuing")
- continue;
- }
- if (!hasRootAccess(list[i])) {
- //tprint("not root at "+target)
- exec("hacks.script", "12.3.8.5", 1, ports, target)
- }
- scp("rootcrawler.script", target)
- exec("rootcrawler.script", target)
- scp("pserver.script", target)
- }
- tprint("done.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement