Skip to content

Instantly share code, notes, and snippets.

View RavenHogWarts's full-sized avatar
🏠
Working from home

RavenHogWarts RavenHogWarts

🏠
Working from home
  • China
  • 17:54 (UTC +08:00)
View GitHub Profile
@RavenHogWarts
RavenHogWarts / auto.js
Last active August 25, 2022 07:44
[Bitburner]脚本程序合辑
/**
* 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);
//一级服务器列表