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
/** | |
* auto.js | |
* 自动scan并在扫描出的各服务器上运行hack.js脚本 | |
* 在home主机上运行home.js脚本 | |
* 屏蔽了云服务器和darkweb | |
*/ | |
export async function main(ns) { | |
//在home主机上运行针对某一服务器的hack脚本,并留出一定的线程数用于运行其他脚本 | |
await ns.exec("home.js","home",ns.getServerMaxRam("home")*3/8-5); | |
//一级服务器列表 |