Skip to content

Instantly share code, notes, and snippets.

View heathkit's full-sized avatar

Michael Giambalvo heathkit

View GitHub Profile
let servers = [];
/** @param {NS} ns */
export async function main(ns) {
ns.tail()
ns.disableLog("ALL")
let previousHost = ns.args[0];
ns.printf("Previous host: %s", previousHost);
let currentHost = ns.getHostname();
await scan(ns, currentHost);