Remove unneeded functions
This commit is contained in:
parent
81717ac746
commit
01ea52d4d7
@ -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)
|
||||
}
|
||||
}
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user