Skip to content
Riot Bits

Riot Bits

  • Home
  • News
  • Guides
  • Video Guides
  • Patch Notes
  • Report Abuse
  • Toggle search form
Bitburner

Bitburner – How to Scan Every Server

Posted on 12/29/2021 By Bloodly Hell Cat~ No Comments on Bitburner – How to Scan Every Server
  • Title: Bitburner
  • Release Date:
  • Developer:
  • Publisher:
Information about Bitburner is still incomplete. Please help us fill the details of the game using this contact form.

This script will reveal every server in Bitburner, even including those hidden ones.

ServersScan Script

var playerServers = ['home', 'Server1'];
var serverChecked = [];
var checkList = [];

/** @param {NS} ns **/
export async function main(ns) {
    await ServersScan(ns, 'home');
    await printArray(ns, serverChecked);
}

/** @param {NS} ns **/
async function ServersScan(ns, target) {
    var servers1 = await ns.scan(target);
    for (var server in servers1) {
        if (!checkList.includes(servers1[server])) {
            checkList.push(servers1[server]);
        }
    }
    serverChecked.push(target);
    var flag = true;
    while (flag) {
        flag = false;
        for (var i = 0; i < checkList.length; i++) {
            var servers = await ns.scan(checkList);
            if (!serverChecked.includes(checkList)) {
                serverChecked.push(checkList);
            }
            for (var server in servers) {
                if (!checkList.includes(servers[server])) {
                    checkList.push(servers[server]);
                }
            }
        }
    }
    // remove player servers from serverChecked
    for (var server in playerServers) {
        for (var i = 0; i < serverChecked.length; i++) {
            if (serverChecked == playerServers[server]) {
                serverChecked.splice(i, 1);
                i--;
            }
        }
    }
}

async function printArray(ns, serverList) {
    for (var server in serverList) {
        ns.print(serverList[server] + "\n");
        ns.tprint(serverList[server] + "\n");
    }
}

User Menu

Create a new .js script

nano whateverthenameis.js

Copy-paste the code. I guess everyone knows how to do that!

  1. The button on the left button corner of your keyboard which has “ctrl” printed on it, press it down first, hold it, and press “c” meanwhile. Then, release both.
  2. Go to the script you just created.
  3. Press done “ctrl” again and hold it, and press “v” in the meanwhile.

Save it and run it!

run whateverthenameis.js

It should print something like this:

auto.js: n00dles
auto.js: foodnstuff
auto.js: sigma-cosmetics
auto.js: joesguns
auto.js: hong-fang-tea
auto.js: harakiri-sushi
auto.js: iron-gym
auto.js: darkweb
auto.js: max-hardware
auto.js: zer0
auto.js: nectar-net
auto.js: CSEC
auto.js: neo-net
auto.js: phantasy
auto.js: omega-net
auto.js: silver-helix
auto.js: the-hub
auto.js: netlink
auto.js: johnson-ortho
auto.js: avmnite-02h
auto.js: comptek
auto.js: crush-fitness
auto.js: catalyst
auto.js: syscore
auto.js: I.I.I.I
auto.js: rothman-uni
auto.js: summit-uni
auto.js: zb-institute
auto.js: lexo-corp
auto.js: alpha-ent
auto.js: millenium-fitness
auto.js: rho-construction
auto.js: aevum-police
auto.js: galactic-cyber
auto.js: aerocorp
auto.js: global-pharm
auto.js: snap-fitness
auto.js: omnia
auto.js: unitalife
auto.js: deltaone
auto.js: defcomm
auto.js: solaris
auto.js: icarus
auto.js: univ-energy
auto.js: zeus-med
auto.js: infocomm
auto.js: taiyang-digital
auto.js: zb-def
auto.js: nova-med
auto.js: titan-labs
auto.js: applied-energetics
auto.js: microdyne
auto.js: run4theh111z
auto.js: fulcrumtech
auto.js: stormtech
auto.js: helios
auto.js: vitalife
auto.js: kuai-gong
auto.js: .
auto.js: omnitek
auto.js: 4sigma
auto.js: clarkinc
auto.js: powerhouse-fitness
auto.js: b-and-a
auto.js: blade
auto.js: nwo
auto.js: ecorp
auto.js: megacorp
auto.js: fulcrumassets
auto.js: The-Cave

That's everything we are sharing today for this Bitburner guide. This guide was originally created and written by Bloodly Hell Cat~. In case we fail to update this guide, you can find the latest update by following this link.

If you believe that any of the content on this site violates your rights, including your intellectual property rights, please contact us immediately using our contact form.
Guides Tags:Bitburner

Post navigation

Previous Post: Bitburner – Root Accessor Script
Next Post: Circuit Superstars Beginner’s Tips and Guide

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

  • Title: Bitburner
  • Release Date:
  • Developer:
  • Publisher:
Information about Bitburner is still incomplete. Please help us fill the details of the game using this contact form.

Disclaimer

All content cited is derived from their respective sources. If you think we have used your content without permission, make sure to reach us and we will be taking it seriously.
  • About Us
  • Contact Us
  • Privacy Policy
  • Terms of Service

Copyright © 2025 Riot Bits.

Powered by PressBook News WordPress theme