Remove unneeded functions

This commit is contained in:
Isaac Shoebottom 2023-11-03 14:25:18 -03:00
parent 81717ac746
commit 01ea52d4d7
2 changed files with 0 additions and 28 deletions

View File

@ -1,9 +0,0 @@
/** @param {NS} ns */
export async function main(ns) {
let server = ns.args[0]
if (ns.getServerNumPortsRequired(server) <= 2) {
ns.brutessh(server)
ns.ftpcrack(server)
ns.nuke(server)
}
}

View File

@ -1,19 +0,0 @@
import {NS} from "NetscriptDefinitions";
import {recursiveScan} from "./utils";
export async function main(ns: NS, servers: string[]) {
let hosts = recursiveScan(ns);
let folderPrefix = "no-ports/";
let files = ns.ls("home", folderPrefix).map((file) => {
return file.substring(folderPrefix.length, file.length);
});
ns.tprint("Files to be removed: ", JSON.stringify(files));
for(const host of hosts) {
for (const file of files) {
ns.rm(file, host)
}
}
}