kristoffer-tvera / bitburner

0 stars 0 forks source link

Make the attack scripts run on all possible servers. #1

Open thinkong opened 2 years ago

thinkong commented 2 years ago

Hi

I noticed how the scripts only run on "filtered" servers. But I think you can run scripts on all servers you have root access.. So.. basically you can remove the filter to filter out the servers in deploy.js.

This should make the script run on much more servers..

kristoffer-tvera commented 2 years ago

Thanks for the heads up!

I have two ways in which I run the script

run attack/deploy.js Which overwrites / restarts ALL running scripts across all servers

run attack/deploy.js skip Which only deploys / starts the script on servers where its not already running. This is the version that uses the filtered list, to prevent me from trying to deploy to targets that are already running

I've been meaning to refactor / cleanup some of these (a prime example of low efficiency atm is how new-servers.js will REMOVE all servers before gradually re-buying them, instead of removing 1, before adding 1), so I'll try to keep this in mind when I get around to it, to make it clearer.

thinkong commented 2 years ago

Hmm.. Maybe I am wrong? But if I run this with a low hacking level while having root access to all the servers, it will only run the attack script on the servers that I can successfully hack. For example.

----------------------------> 

[omnia]()

------------------------------Root Access: YES, Required hacking skill: 884

------------------------------Number of open ports required to NUKE: 5

------------------------------RAM: 64.00GB

Your script will not deploy the attack script on this server no matter what since my hacking skill is less than 884.

Since deploy.js purpose is gaining root access and deploying the script, I think the filter should be removed or changed to see if it rootable (number of tools <= number of ports required to NUKE)

Just my 2c :)

kristoffer-tvera commented 2 years ago

Hmm.. Maybe I am wrong? But if I run this with a low hacking level while having root access to all the servers, it will only run the attack script on the servers that I can successfully hack. For example.

----------------------------> 

[omnia]()

------------------------------Root Access: YES, Required hacking skill: 884

------------------------------Number of open ports required to NUKE: 5

------------------------------RAM: 64.00GB

Your script will not deploy the attack script on this server no matter what since my hacking skill is less than 884.

Since deploy.js purpose is gaining root access and deploying the script, I think the filter should be removed or changed to see if it rootable (number of tools <= number of ports required to NUKE)

Just my 2c :)

I revisited documentation, and you are 100% correct.

You can indeed run hack/weaken/grow from any server that you have successfully nuked.

I mistakenly assumed that you needed to meet the required security level to properly utilize these servers (even run hack from them), and failed to see how security-level is only a metric that protects a given server from being the target of said functions.

Thanks for your attention!