mirror of
https://gitlab.com/MisterBiggs/bitburner-scripts.git
synced 2025-08-05 13:01:30 +00:00
updated scripts
This commit is contained in:
@@ -1,27 +1,85 @@
|
||||
script = "hfthack.script";
|
||||
script = "advhack.script";
|
||||
|
||||
servers = scan();
|
||||
nuked = ["darkweb", "home"];
|
||||
|
||||
i = 0;
|
||||
while (i < servers.length) {
|
||||
//Wait for required hacking level
|
||||
if (servers[i] == "darkweb") {
|
||||
i++;
|
||||
continue;
|
||||
}
|
||||
while (getHackingLevel() < getServerRequiredHackingLevel(servers[i])) {
|
||||
sleep(20000);
|
||||
}
|
||||
|
||||
scp(script, servers[i]);
|
||||
|
||||
if (getServerNumPortsRequired(servers[i])) {
|
||||
while (!fileExists("BruteSSH.exe")) {
|
||||
sleep(20000);
|
||||
}
|
||||
brutessh(servers[i]);
|
||||
}
|
||||
nuke(servers[i]);
|
||||
|
||||
// Calculate how many threads we can run the script at
|
||||
threads = Math.max(
|
||||
1,
|
||||
Math.floor(getServerMaxRam(servers[i]) / getScriptRam(script))
|
||||
);
|
||||
|
||||
exec(script, servers[i], threads);
|
||||
|
||||
nuked.push(servers[i]);
|
||||
tprint(servers[i], " added to botnet with ", threads, " threads");
|
||||
|
||||
++i;
|
||||
}
|
||||
|
||||
tprint("===Basic Servers Finished===");
|
||||
|
||||
while (true) {
|
||||
tonuke = [];
|
||||
i = 0;
|
||||
while (i < nuked.length) {
|
||||
n = scan(nuked[i]);
|
||||
j = 0;
|
||||
while (j < n.length) {
|
||||
if (!nuked.includes(n[j])) {
|
||||
tonuke.push(n[j]);
|
||||
}
|
||||
j++;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
i = 0;
|
||||
while (i < tonuke.length) {
|
||||
if (getServerNumPortsRequired(tonuke[i]) > 3) {
|
||||
i++;
|
||||
continue;
|
||||
}
|
||||
if (getHackingLevel() < getServerRequiredHackingLevel(tonuke[i])) {
|
||||
i++;
|
||||
continue;
|
||||
}
|
||||
|
||||
brutessh(tonuke[i]);
|
||||
ftpcrack(tonuke[i]);
|
||||
ftpcrack(tonuke[i]);
|
||||
nuke(tonuke[i]);
|
||||
|
||||
scp(script, tonuke[i]);
|
||||
|
||||
//Execute our scripts on the target server
|
||||
threads = Math.max(
|
||||
1,
|
||||
Math.floor(getServerMaxRam(tonuke[i]) / getScriptRam(script))
|
||||
);
|
||||
exec(script, tonuke[i], threads);
|
||||
nuked.push(tonuke[i]);
|
||||
tprint(tonuke[i], " added to botnet with ", threads, " threads");
|
||||
i++;
|
||||
}
|
||||
sleep(20000);
|
||||
}
|
||||
tprint("===== SPIDER FINISHED =====");
|
||||
|
Reference in New Issue
Block a user