Kato's script collection :3

AutoNUKE

Runs every virus you have on a server, and then attempts to nuke it.

To use, enter the run command followed by the name of the server you want to nuke.

/** @param {NS} ns */ export async function main(ns) { var target = ns.args[0]; if (ns.hasRootAccess(target) == true) { ns.tprint('Already have root access to "' + target + '".'); return; } if (ns.fileExists("BruteSSH.exe", "home")) { ns.brutessh(target); } if (ns.fileExists("FTPCrack.exe", "home")) { ns.ftpcrack(target); } if (ns.fileExists("relaySMTP.exe", "home")) { ns.relaysmtp(target); } if (ns.fileExists("HTTPWorm.exe", "home")) { ns.httpworm(target); } if (ns.fileExists("SQLInject.exe", "home")) { ns.sqlinject(target); } if (ns.fileExists("NUKE.exe", "home")) { ns.nuke(target); } ns.tprint('Got root access to "' + target + '".') }

Heart.break

Displays your current karma. Uses a secret command that isn't found anywhere in the docs, oooooo. :3

/** @param {NS} ns */ export async function main(ns) { ns.tprint(ns.heart.break()) }

Gang Quick Switch

Assigns a task to all gang members at once.

To use, enter the run command followed by the task you want to assign in quotes (e.g. "Identity Theft").

If an invalid task is entered, all your members will just be set to Unassigned.

/** @param {NS} ns */ export async function main(ns) { var task = ns.args[0]; for (let i = 0; i < ns.gang.getMemberNames().length; i++) { ns.gang.setMemberTask(ns.gang.getMemberNames().at(i), task) } }

Prompt Test

Very simple script that does basically nothing. I just made this to get the hang of prompts, so I could use them in other scripts.

/** @param {NS} ns */ export async function main(ns) { var bool = await ns.prompt("give me all your cash or else") if (bool == true) { ns.tprint("thank youuu") } else { ns.tprint("you will regret this.") } }

Source: https://steamcommunity.com/sharedfiles/filedetails/?id=3359965159					

More Bitburner guilds