Y5OWMCQRLGQ56HMM53HR6CVZEMAHOEKDYMFLBDEQOJ4HLUJL7HUAC 44JNP7VZMXR33YWTB4JKT5GDRTGCTTENYHO4CIYJYBUT7HI7GNMQC V4DMWF25DAT3WBCJTC6Q4I54FYPGBQR4NVZI6RUZFY3T67TQTTZAC SLSWBNYTIFKBFLKXZTMONGDMEOHSOOCOSU4KVJCONZG2DK3BBIUQC 2BKHJI2SJ3VXTFBK2BWNN3I3BDNMUU5YTJGKTQCOXV66VVRHCGKAC 3NFCZ6IPQPUCWANJN5WMUHUCHEQN7U5HZXMHDKVC6V6HXA3FG5YQC AXGQ7FMLMADYBZWHFQPYL6Q4W5G6AE4GTYTWAON4MIJRI7G6FE4AC FA3U4WUJ3YT2G2WIAXBHEZ4O4RWXX55BBFYQKODHUMF7I6Z37XUAC NQ22FUSWN6CBJKJ5H7UV5N2KEXBIXVNQDNL2EK6UJ3E7RFLWNVDQC HLC2L3NJJSZLGSQ7JN6CTRE4YALVPLQSADZP3MDNLGB7BWPPH22QC await ns.exec(string_script, string_server_used, integer_threads, string_server_used, string_server_target, float_delay, identifier);
ns.exec(string_script, string_server_used, integer_threads, string_server_used, string_server_target, float_delay, identifier);
const void_runner = async function(ns, integer_job_cap, float_precision, float_steal_cap, float_padding_seconds, string_server_target_argument) {
const void_runner = function(ns, integer_job_cap, float_precision, float_steal_cap, float_padding_seconds, string_server_target_argument) {
// lib_ram.js - 2GBimport {array_get_servers_rooted}from "lib_root.js";// returns the total ram of a serverexport const float_get_server_ram_total = function(ns, string_server) {return (ns.getServerRam(string_server))[0];};// returns the used ram of a serverconst float_get_server_ram_used = function(ns, string_server) {return (ns.getServerRam(string_server))[1];};// returns the amount of free ram of a serverexport const float_get_server_ram_free = function(ns, string_server) {return float_get_server_ram_total(ns, string_server) - float_get_server_ram_used(ns, string_server);};// returns the total RAM from all the servers you have root access toconst float_get_network_ram_total = function (ns) {const array_servers_rooted = array_get_servers_rooted(ns);let float_network_ram_total = 0;for (let integer_indices_0 = 0; integer_indices_0 < array_servers_rooted.length; ++integer_indices_0) {float_network_ram_total += float_get_server_ram_total(ns, array_servers_rooted[integer_indices_0]);}return float_network_ram_total;};const array_servers_rooted = array_get_servers_rooted(ns);for (let integer_indices_0 = 0; integer_indices_0 < array_servers_rooted.length; ++integer_indices_0) {}};// returns the RAM utilisation of the botnet as a decimalexport const float_get_network_ram_utilisation = function (ns) {return float_get_network_ram_used(ns) / float_get_network_ram_total(ns);};// sort an array of servers by their amounts of RAM, from lowest to highestconst void_sort_by_server_ram = function(ns, array_servers) {return array_servers.sort((string_element_0, string_element_1) => (float_get_server_ram_total(ns, string_element_0) - float_get_server_ram_total(ns, string_element_1)));};export const array_get_servers_rooted_sorted_by_ram = function(ns) {let array_servers_rooted = array_get_servers_rooted(ns);void_sort_by_server_ram(ns, array_servers_rooted);return array_servers_rooted;};return float_network_ram_used;float_network_ram_used += float_get_server_ram_used(ns, array_servers_rooted[integer_indices_0]);let float_network_ram_used = 0;// returns the total RAM used from all the servers you have root access toconst float_get_network_ram_used = function (ns) {
export const array_get_servers = function(ns) {const string_host = ns.getHostname();const array_servers = [string_host];for (let integer_indices_0 = 0; integer_indices_0 < array_servers.length; ++integer_indices_0) {
export const array_get_servers = function (ns) {const string_host = ns.getHostname(),array_servers = [string_host];for (let integer_indices_0 = 0;integer_indices_0 < array_servers.length;++integer_indices_0) {
for (let integer_indices_1 = 0; integer_indices_1 < array_scan_results.length; ++integer_indices_1) {if (array_servers.indexOf(array_scan_results[integer_indices_1]) === -1) {
for (let integer_indices_1 = 0;integer_indices_1 < array_scan_results.length;++integer_indices_1)-1 === array_servers.indexOf(array_scan_results[integer_indices_1]) &&
export const array_get_servers_rooted = function(ns) {const array_servers = array_get_servers(ns);const array_servers_rooted = [];for (let integer_indices_0 = 0; integer_indices_0 < array_servers.length; ++integer_indices_0) {if (ns.hasRootAccess(array_servers[integer_indices_0])) {
export const array_get_servers_rooted = function (ns) {const array_servers = array_get_servers(ns),array_servers_rooted = [];for (let integer_indices_0 = 0;integer_indices_0 < array_servers.length;++integer_indices_0)ns.hasRootAccess(array_servers[integer_indices_0]) &&
export const array_get_servers_unrooted = function(ns) {const array_servers = array_get_servers(ns);const array_servers_unrooted = [];for (let integer_indices_0 = 0; integer_indices_0 < array_servers.length; ++integer_indices_0) {if (!ns.hasRootAccess(array_servers[integer_indices_0])) {
export const array_get_servers_unrooted = function (ns) {const array_servers = array_get_servers(ns),array_servers_unrooted = [];for (let integer_indices_0 = 0;integer_indices_0 < array_servers.length;++integer_indices_0)ns.hasRootAccess(array_servers[integer_indices_0]) ||
// killall.js - 3.05GB - TODO: implement a loop that repeats logic until all appropriate scripts have actually been killed.
// killall.js - 3.05GB - TODO:// * implement a loop that repeats logic until all appropriate scripts have actually been killed.// * use kill instead of scriptKill. maybe separate that into a lib file that main.js will also use.