Bitburner-Scripts/no-ports/root.js

9 lines
196 B
JavaScript
Raw Normal View History

2023-11-02 10:42:44 -03:00
/** @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)
}
}