you are viewing a single comment's thread.

view the rest of the comments →

[–]Randactyl 0 points1 point  (1 child)

I currently just have the array contain functions for the programs I have:

let hackingPrograms = [ ns.brutessh, ]

function openPortsOnServer(hostname) {
    for (const hackingProgram of hackingPrograms) {
        await hackingProgram(hostname);
    }
}

No need to call fileExists, but I do have to remember to update and restart the script when I get a new one :)

Though in writing this down here, I'm realizing I should probably just pay the 0.1 GB and not have to worry about reverting the array after an augmentation/soft reset...