few fixes
This commit is contained in:
1 parent
bc8f1a602e
commit
a10ddb6929
5 files changed
+17
-4
No files matched your search
@@ -20,7 +20,7 @@ export async function main(ns) {
|
||||
const sWeakenScript = "RMweaken.js";
|
||||
const sGrowScript = "RMgrow.js";
|
||||
const sHackScript = "RMhack.js";
|
||||
const sLibraryScript = "myLibrary.js"
|
||||
const sLibraryScript = "Library.js"
|
||||
const sSettingsFile = "settings.txt"
|
||||
|
||||
const nWeakenThreads = 1; //5
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"home":{"n00dles":{"nectar-net":{"neo-net":{"computek":{"summit-uni":{}}}}},"foodnstuff":{"zer0":{"silver-helix":{"the-hub":{"rothman-uni":{"millenium-fitness":{}}},"netlink":{"zb-institute":{"alpha-ent":{"galactic-cyber":{}}}},"johnson-ortho":{},"crush-fitness":{}}},"max-hardware":{"phantasy":{},"omega-net":{"avmnite-02h":{"syscore":{"rho-construction":{},"aevum-police":{"global-pharm":{"omnia":{"defcomm":{},"solaris":{}}}}},"catalyst":{},"I.I.I.I":{"lexo-corp":{"aerocorp":{"deltaone":{"icarus":{"infocomm":{"run4theh111z":{"helios":{}}},"taiyang-digital":{"titan-labs":{"vitalife":{"omnitek":{"nwo":{},"powerhouse-fitness":{"fulcrumassets":{},"The-Cave":{}}}}}},"zb-def":{"microdyne":{}}},"zeus-med":{}},"unitalife":{"univ-energy":{"nova-med":{"applied-energetics":{"fulcrumtech":{"4sigma":{},".":{"b-and-a":{"ecorp":{}}}},"stormtech":{"kuai-gong":{"blade":{},"clarkinc":{"megacorp":{}}}}}}}}},"snap-fitness":{}}}}}}},"sigma-cosmetics":{"CSEC":{}},"joesguns":{},"hong-fang-tea":{},"harakiri-sushi":{},"iron-gym":{},"darkweb":{},"pserv-01":{},"pserv-02":{},"pserv-03":{},"pserv-04":{},"pserv-05":{},"pserv-06":{},"pserv-07":{},"pserv-08":{},"pserv-09":{},"pserv-10":{},"pserv-11":{},"pserv-12":{},"pserv-13":{},"pserv-14":{},"pserv-15":{},"pserv-16":{},"pserv-17":{},"pserv-18":{},"pserv-19":{},"pserv-20":{},"pserv-21":{},"pserv-22":{},"pserv-23":{},"pserv-24":{},"pserv-25":{}}}
|
||||
{"home":{"n00dles":{},"foodnstuff":{},"sigma-cosmetics":{"nectar-net":{"neo-net":{"the-hub":{"syscore":{}}},"omega-net":{"computek":{"rothman-uni":{},"catalyst":{"alpha-ent":{"global-pharm":{}},"aevum-police":{"galactic-cyber":{"omnia":{"defcomm":{"infocomm":{}},"solaris":{"taiyang-digital":{"titan-labs":{},"applied-energetics":{"stormtech":{"omnitek":{"nwo":{},"clarkinc":{}},"4sigma":{"powerhouse-fitness":{"ecorp":{},"megacorp":{},"The-Cave":{}}}}}}},"zeus-med":{"nova-med":{"microdyne":{"helios":{"kuai-gong":{"b-and-a":{"fulcrumassets":{}}},".":{"blade":{}}}},"run4theh111z":{"fulcrumtech":{},"vitalife":{}}}}}}},"millenium-fitness":{"snap-fitness":{"deltaone":{"icarus":{"zb-def":{}},"univ-energy":{}}}}}},"netlink":{"zb-institute":{}}}}},"joesguns":{"zer0":{}},"hong-fang-tea":{"max-hardware":{"silver-helix":{"johnson-ortho":{"summit-uni":{"lexo-corp":{"aerocorp":{"unitalife":{}}},"rho-construction":{}},"I.I.I.I":{}},"crush-fitness":{},"avmnite-02h":{}},"phantasy":{}}},"harakiri-sushi":{},"iron-gym":{"CSEC":{}},"darkweb":{}}}
|
||||
@@ -0,0 +1,13 @@
|
||||
import { getCracks, crackingAndRooting, findBestTarget } from "Library.js";
|
||||
|
||||
/** @param {NS} ns */
|
||||
export async function main(ns) {
|
||||
let cracks = {};
|
||||
cracks = getCracks(ns);
|
||||
let maxPorts = Object.keys(cracks).length;
|
||||
findBestTarget(ns, 999, maxPorts, ns.getHackingLevel(),"");
|
||||
let bestTarget = ns.read("bestTarget.txt")
|
||||
ns.tprint("Best Target: " + bestTarget);
|
||||
ns.tprint(Object.keys(JSON.parse(ns.read("serverList.txt"))).length);
|
||||
crackingAndRooting(ns, cracks);
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
{"serverName":"rho-construction","maxRam":32,"maxMoney":1749766941.5625,"minSec":13,"minPorts":3,"minHackLvl":516,"rootAccess":true,"factorMoneyPerTime":0.6585689125741893,"openPorts":0,"serverFiles":["factionboost.js"],"hackingChance":0.5840500979124218}
|
||||
{"serverName":"n00dles","maxRam":4,"maxMoney":196875,"minSec":1,"minPorts":0,"minHackLvl":1,"rootAccess":true,"openPorts":0,"serverOrgs":"Noodle Bar","serverCores":1,"serverFiles":[]}
|
||||
@@ -1 +1 @@
|
||||
{"home":{"serverName":"home","maxRam":524288,"maxMoney":0,"minSec":1,"minPorts":5,"minHackLvl":1,"rootAccess":true,"factorMoneyPerTime":0,"openPorts":4,"serverFiles":["19dfj3l1nd.msg","AutoLink.exe","BruteSSH.exe","DeepscanV1.exe","DeepscanV2.exe","EveryServerRun.js","FTPCrack.exe","HTTPWorm.exe","NUKE.exe","RMgrow.js","RMhack.js","RMweaken.js","Ramses/Backdoor.js","Ramses/ContractSolver.js","Ramses/ContractSolverRamses.js","Ramses/CorpControl.js","Ramses/CrackAndRootAll.js","Ramses/RamsesUtils.js","Ramses/S4controller.js","Ramses/S4logHelper.js","Ramses/S4tGrow.js","Ramses/S4tHack.js","Ramses/S4tWeaken.js","Ramses/S4utils.js","Ramses/Serverlist.js","Ramses/analyzeContract.js","Ramses/corp/Autosell.js","Ramses/corp/HireWorkers.js","Ramses/corp/SetupExport.js","Ramses/corp/Smart.js","Ramses/corp/UpgradeOffice.js","Ramses/killAllScript.js","Ramses/purchaseServers.js","SQLInject.exe","ServerRouteList.txt","algorithm.js","ascii/detective.txt","ascii/detective2.txt","ascii/detective3.txt","ascii/hacker.txt","ascii/judge.txt","ascii/noir.txt","ascii/sonic.js","autoexec.js","b1t_flum3.exe","backdoor.js","backup/batch2.js","backup/bitnodeStart.js","backup/growrepeater.js","backup/maxGrow.js","batch.js","breach.js","contract.js","csec-test.msg","factionboost.js","fl1ght.exe","gang/argFunctions.js","gang/auto-gang.js","gang/auto-gang2.js","gang/gangManager.js","hackers-starting-handbook.lit","hacknet/hacknetmanager.js","j0.msg","j1.msg","j2.msg","j3.msg","j4.msg","killallall.js","myLibrary.js","nitesec-test.msg","notes.txt","progress.js","push.txt","relaySMTP.exe","scanFactionAugments.js","serverList.txt","serverlister.js","settings.txt","sharePserv.js","singularity/RMroutelist.js","singularity/manualalgo.js","upgrade.js","wip/Minimum_Path_Sum_in_a_Triangle.js","wip/RMbreach.js","wip/RMcontroller.js","wip/pserv.js","wip/scanFactionAugments.js","wip/test.js","wip/testhackgrow.js"],"hackingChance":1},"pserv-25":{"serverName":"pserv-25","maxRam":1048576,"maxMoney":0,"minSec":1,"minPorts":5,"minHackLvl":1,"rootAccess":true,"factorMoneyPerTime":0,"openPorts":4,"serverFiles":["RMgrow.js","RMhack.js","RMweaken.js","batch.js","myLibrary.js","settings.txt"],"hackingChance":1},"pserv-24":{"serverName":"pserv-24","maxRam":1048576,"maxMoney":0,"minSec":1,"minPorts":5,"minHackLvl":1,"rootAccess":true,"factorMoneyPerTime":0,"openPorts":4,"serverFiles":["RMgrow.js","RMhack.js","RMweaken.js","batch.js","myLibrary.js","settings.txt"],"hackingChance":1},"pserv-23":{"serverName":"pserv-23","maxRam":1048576,"maxMoney":0,"minSec":1,"minPorts":5,"minHackLvl":1,"rootAccess":true,"factorMoneyPerTime":0,"openPorts":4,"serverFiles":["RMgrow.js","RMhack.js","RMweaken.js","batch.js","myLibrary.js","settings.txt"],"hackingChance":1},"pserv-22":{"serverName":"pserv-22","maxRam":1048576,"maxMoney":0,"minSec":1,"minPorts":5,"minHackLvl":1,"rootAccess":true,"factorMoneyPerTime":0,"openPorts":4,"serverFiles":["RMgrow.js","RMhack.js","RMweaken.js","batch.js","myLibrary.js","settings.txt"],"hackingChance":1},"pserv-21":{"serverName":"pserv-21","maxRam":1048576,"maxMoney":0,"minSec":1,"minPorts":5,"minHackLvl":1,"rootAccess":true,"factorMoneyPerTime":0,"openPorts":4,"serverFiles":["RMgrow.js","RMhack.js","RMweaken.js","batch.js","myLibrary.js","settings.txt"],"hackingChance":1},"pserv-20":{"serverName":"pserv-20","maxRam":1048576,"maxMoney":0,"minSec":1,"minPorts":5,"minHackLvl":1,"rootAccess":true,"factorMoneyPerTime":0,"openPorts":4,"serverFiles":["RMgrow.js","RMhack.js","RMweaken.js","batch.js","myLibrary.js","settings.txt"],"hackingChance":1},"pserv-19":{"serverName":"pserv-19","maxRam":1048576,"maxMoney":0,"minSec":1,"minPorts":5,"minHackLvl":1,"rootAccess":true,"factorMoneyPerTime":0,"openPorts":4,"serverFiles":["RMgrow.js","RMhack.js","RMweaken.js","batch.js","myLibrary.js","settings.txt"],"hackingChance":1},"pserv-18":{"serverName":"pserv-18","maxRam":1048576,"maxMoney":0,"minSec":1,"minPorts":5,"minHackLvl":1,"rootAccess":true,"factorMoneyPerTime":0,"openPorts":4,"serverFiles":["RMgrow.js","RMhack.js","RMweaken.js","batch.js","myLibrary.js","settings.txt"],"hackingChance":1},"pserv-17":{"serverName":"pserv-17","maxRam":1048576,"maxMoney":0,"minSec":1,"minPorts":5,"minHackLvl":1,"rootAccess":true,"factorMoneyPerTime":0,"openPorts":4,"serverFiles":["RMgrow.js","RMhack.js","RMweaken.js","batch.js","myLibrary.js","settings.txt"],"hackingChance":1},"pserv-16":{"serverName":"pserv-16","maxRam":1048576,"maxMoney":0,"minSec":1,"minPorts":5,"minHackLvl":1,"rootAccess":true,"factorMoneyPerTime":0,"openPorts":4,"serverFiles":["RMgrow.js","RMhack.js","RMweaken.js","batch.js","myLibrary.js","settings.txt"],"hackingChance":1},"pserv-15":{"serverName":"pserv-15","maxRam":1048576,"maxMoney":0,"minSec":1,"minPorts":5,"minHackLvl":1,"rootAccess":true,"factorMoneyPerTime":0,"openPorts":4,"serverFiles":["RMgrow.js","RMhack.js","RMweaken.js","batch.js","myLibrary.js","settings.txt"],"hackingChance":1},"pserv-14":{"serverName":"pserv-14","maxRam":1048576,"maxMoney"Line truncated
|
||||
{"home":{"serverName":"home","maxRam":1048576,"maxMoney":0,"minSec":1,"minPorts":5,"minHackLvl":1,"rootAccess":true,"openPorts":4,"serverOrgs":"Home PC","serverCores":7,"serverFiles":["AutoLink.exe","BruteSSH.exe","CrackAndRootAll.js","DeepscanV1.exe","DeepscanV2.exe","EveryServerRun.js","FTPCrack.exe","HTTPWorm.exe","Library.js","NUKE.exe","RMgrow.js","RMhack.js","RMweaken.js","Ramses/Backdoor.js","Ramses/ContractSolver.js","Ramses/ContractSolverRamses.js","Ramses/CorpControl.js","Ramses/CrackAndRootAll.js","Ramses/RamsesUtils.js","Ramses/S4controller.js","Ramses/S4logHelper.js","Ramses/S4tGrow.js","Ramses/S4tHack.js","Ramses/S4tWeaken.js","Ramses/S4utils.js","Ramses/Serverlist.js","Ramses/analyzeContract.js","Ramses/corp/Autosell.js","Ramses/corp/HireWorkers.js","Ramses/corp/SetupExport.js","Ramses/corp/Smart.js","Ramses/corp/UpgradeOffice.js","Ramses/killAllScript.js","Ramses/purchaseServers.js","SQLInject.exe","ServerRouteList.txt","Serverlist.js","Updatebesttarget.js","algorithm.js","ascii/detective.txt","ascii/detective2.txt","ascii/detective3.txt","ascii/hacker.txt","ascii/judge.txt","ascii/noir.txt","ascii/sonic.js","autoexec.js","b1t_flum3.exe","backdoor.js","backup/batch2.js","backup/bitnodeStart.js","backup/growrepeater.js","backup/maxGrow.js","backup/myLibrary.js","backup/serverlister.js","backup/upgrade.js","batch.js","bestTarget.txt","breach.js","contract.js","csec-test.msg","factionboost.js","fl1ght.exe","gang/argFunctions.js","gang/auto-gang.js","gang/auto-gang2.js","gang/gangManager.js","hackers-starting-handbook.lit","hacknet/hacknetmanager.js","j0.msg","j1.msg","killAllScripts.js","notes.txt","purchaseServers.js","relaySMTP.exe","serverList.txt","settings.txt","sharePserv.js","singularity/RMroutelist.js","singularity/manualalgo.js","wip/Minimum_Path_Sum_in_a_Triangle.js","wip/RMbreach.js","wip/RMcontroller.js","wip/progress.js","wip/pserv.js","wip/scanFactionAugments.js","wip/test.js","wip/testhackgrow.js"]},"darkweb":{"serverName":"darkweb","maxRam":0,"maxMoney":0,"minSec":1,"minPorts":5,"minHackLvl":1,"rootAccess":true,"openPorts":4,"serverOrgs":"darkweb","serverCores":1,"serverFiles":[]},"iron-gym":{"serverName":"iron-gym","maxRam":32,"maxMoney":56250000,"minSec":10,"minPorts":1,"minHackLvl":100,"rootAccess":true,"openPorts":0,"serverOrgs":"Iron Gym Network","serverCores":1,"serverFiles":[]},"CSEC":{"serverName":"CSEC","maxRam":8,"maxMoney":0,"minSec":1,"minPorts":1,"minHackLvl":60,"rootAccess":true,"openPorts":0,"serverOrgs":"CyberSec","serverCores":2,"serverFiles":["democracy-is-dead.lit"]},"harakiri-sushi":{"serverName":"harakiri-sushi","maxRam":16,"maxMoney":11250000,"minSec":5,"minPorts":0,"minHackLvl":40,"rootAccess":true,"openPorts":0,"serverOrgs":"HaraKiri Sushi Bar Network","serverCores":1,"serverFiles":[]},"hong-fang-tea":{"serverName":"hong-fang-tea","maxRam":16,"maxMoney":8437500,"minSec":5,"minPorts":0,"minHackLvl":30,"rootAccess":true,"openPorts":0,"serverOrgs":"HongFang Teahouse","serverCores":1,"serverFiles":["brighter-than-the-sun.lit"]},"max-hardware":{"serverName":"max-hardware","maxRam":32,"maxMoney":28125000,"minSec":5,"minPorts":1,"minHackLvl":80,"rootAccess":true,"openPorts":0,"serverOrgs":"Max Hardware Store","serverCores":1,"serverFiles":[]},"phantasy":{"serverName":"phantasy","maxRam":32,"maxMoney":67500000,"minSec":7,"minPorts":2,"minHackLvl":100,"rootAccess":true,"openPorts":1,"serverOrgs":"Phantasy Club","serverCores":3,"serverFiles":[]},"silver-helix":{"serverName":"silver-helix","maxRam":64,"maxMoney":126562500,"minSec":10,"minPorts":2,"minHackLvl":150,"rootAccess":true,"openPorts":1,"serverOrgs":"Silver Helix","serverCores":3,"serverFiles":["new-triads.lit"]},"avmnite-02h":{"serverName":"avmnite-02h","maxRam":64,"maxMoney":0,"minSec":1,"minPorts":2,"minHackLvl":207,"rootAccess":true,"openPorts":1,"serverOrgs":"NiteSec","serverCores":2,"serverFiles":["democracy-is-dead.lit"]},"crush-fitness":{"serverName":"crush-fitness","maxRam":0,"maxMoney":135391199.0625,"minSec":15,"minPorts":2,"minHackLvl":269,"rootAccess":true,"openPorts":1,"serverOrgs":"Crush Fitness","serverCores":4,"serverFiles":[]},"johnson-ortho":{"serverName":"johnson-ortho","maxRam":0,"maxMoney":238779168.75,"minSec":14,"minPorts":2,"minHackLvl":264,"rootAccess":true,"openPorts":1,"serverOrgs":"Johnson Orthopedics","serverCores":4,"serverFiles":[]},"I.I.I.I":{"serverName":"I.I.I.I","maxRam":16,"maxMoney":0,"minSec":1,"minPorts":3,"minHackLvl":346,"rootAccess":true,"openPorts":2,"serverOrgs":"I.I.I.I","serverCores":4,"serverFiles":["democracy-is-dead.lit"]},"summit-uni":{"serverName":"summit-uni","maxRam":32,"maxMoney":652682145.9375,"minSec":15,"minPorts":3,"minHackLvl":469,"rootAccess":true,"openPorts":2,"serverOrgs":"Summit University","serverCores":3,"serverFiles":["secret-societies.lit","synthetic-muscles.lit","the-failed-frontier.lit"]},"rho-construction":{"serverName":"rho-construction","maxRam":64,"maxMoney":1598746899.375,"minSec":15,"minPorts":3,"minHackLvl":511,"rootAccess":true,"oLine truncated
|
||||
Reference in new issue
Block a user