This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { networkTraversal } from '/scripts/networkTraversal.js'; | |
export async function main(ns) { | |
let home = ns.getHostname(); | |
networkTraversal(ns, home, home, crackAndHack); | |
} | |
function crackAndHack(ns, targetServer, originServer) { | |
if (!ns.hasRootAccess(targetServer) && hackableServer(ns, targetServer)) { | |
crackServer(ns, targetServer); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-----> Node.js app detected | |
-----> Creating runtime environment | |
NPM_CONFIG_LOGLEVEL=error | |
NODE_ENV=production | |
NODE_MODULES_CACHE=true | |
NODE_VERBOSE=false | |
-----> Installing binaries |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"binary_file_patterns": | |
[ | |
"generated/*", | |
"*.tbz2", | |
"*.gzip", | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lsof -wni tcp:3000 | |
kill -9 <pid> |
NewerOlder