hacker.js, weaken_manager.js: use void_copy_script_to from lib_ram_script to copy worker scripts to servers. README.md: update.

[?]
Sep 7, 2020, 8:33 AM
QAPXJ43A5E5EHL7CBKSJVWJV574IAYK2CIUEGOL6YHQZVYWU76YQC

Dependencies

  • [2] PUMDUVMZ hacker.js: add logic to copy job script to server.
  • [3] CKC6UBEA README.md: update
  • [4] JS52JD4Q weaken_manager.js: add. lib_server_used.js: move to lib_ram_script. lib_ps: delete. main.js, hacker.js, lib_ram_script.js: refactor. README.md: update.
  • [5] Y5OWMCQR all: remove unecessary uses of `exec`. refactor. main.js: add RAM reservation logic. lib_ram.js: renamed to lib_ram_server.js. README.js: update.
  • [6] SXEJJKPI executables: add `--help` flag. hacker.js: change scheduling logic. refactor. kill.js: allow handling more than one server or script at a time. cyclic_weaken.js: add. README.md: update.
  • [7] NQ22FUSW add more options to `main.js`. update `README.md`.
  • [8] JGNALSUQ add "cyclic_weaken.js" feature. hacker.js, main.js, libs: refactor. README.md: update.
  • [9] ZRPOW4ER hacker.js, lib_time.js: supress error messages. hacker.js: use `getBitNodeMultipliers`. lib_time.js: use `getStats`. README.md: update.
  • [10] 2BKHJI2S init
  • [11] TXTXXNNB hacker.js: refactor schedule correction logic into schedule making logic to prevent having to iterate to schedule twice.
  • [12] BKG7YVUV main.js, hacker.js, servers.js, ram.js: refactor.
  • [13] 2WOLGB42 README.md: update. kill.js: fix argument parser. lshw.js: add `-p` option. increase information given. main.js: fix error message. set saner defaults. hacker.js: split some functions into "lib_time.js" and "lib_score.js". ram.js: fix.
  • [14] HLC2L3NJ add "tor.js" and "programs.js". use `minimist` for "main.js" argument parsing.
  • [15] AXGQ7FML split and refactor hacking logic to "hacker.js" and argument parsing and script execution logic to "main.js". update "README.md".

Change contents

  • replacement in sbin/weaken_manager.js at line 1
    [3.1002][3.1003:1133]()
    // weaken_manager.js - 3.4GB - continuously runs enough threads of cyclic_weaken.js to meet float_ram_fraction_for_weaken_cyclic.
    [3.1002]
    [3.1133]
    // weaken_manager.js - 4GB - continuously runs enough threads of cyclic_weaken.js to meet float_ram_fraction_for_weaken_cyclic.
  • replacement in sbin/hacker.js at line 38
    [3.2002][3.4319:4380]()
    import { object_make_server_used } from "lib_ram_script.js";
    [3.2002]
    [3.247]
    import {
    object_make_server_used,
    void_copy_script_to,
    } from "lib_ram_script.js";
  • edit in sbin/hacker.js at line 888
    [3.31184][2.43:258]()
    // copies script in current server to a target server
    const void_copy_script_to = function (ns, string_script, string_server_used) {
    ns.scp(
    string_script,
    ns.getHostname(),
    string_server_used
    );
    }
  • replacement in lib/lib_ram_script.js at line 1
    [3.1][3.2:31]()
    // lib_ram_script.js - 3.4GB
    [3.1]
    [3.31]
    // lib_ram_script.js - 4GB
  • edit in lib/lib_ram_script.js at line 122
    [3.3751]
    [3.3751]
    // copies script in current server to a target server
    export const void_copy_script_to = function (
    ns,
    string_script,
    string_server_used
    ) {
    ns.scp(
    string_script,
    ns.getHostname(),
    string_server_used
    );
    }
  • edit in lib/lib_ram_script.js at line 147
    [3.4033]
    [3.4033]
    void_copy_script_to(
    ns,
    object_job.string_script,
    object_job.string_server_used
    );
  • replacement in README.md at line 18
    [3.2772][3.38241:38454]()
    * Run the helper scripts "ram.js"\* (6.6 GB), "servers.js" (8.85 GB), "tor.js"\* (3.8 GB), "programs.js"\* (3.7 GB), "botnet.js" (2.2 GB) and "weaken_manager.js" (3.4 GB) which should, respectively, attempt to:
    [3.2772]
    [3.5832]
    * Run the helper scripts "ram.js"\* (6.6 GB), "servers.js" (8.85 GB), "tor.js"\* (3.8 GB), "programs.js"\* (3.7 GB), "botnet.js" (2.2 GB) and "weaken_manager.js" (4 GB) which should, respectively, attempt to: