Hack()

is a basic Netscript function.
__TOC__
== Description ==
A function for hacking servers and stealing money is available in a game. The time it takes to run this function depends on the player's hacking level and the target server's security level. To perform the hack, the player must have root access to the target server and the necessary hacking skills. The function can be run on any server, not just the one being hacked. For example, a player could create a script to hack the "foodnstuff" server and run it on a different server. If the hack is successful, it will increase the security level of the target server by 0.002. The action time is determined at the beginning of the process and the effects are calculated at the end.
== Usage ==
hack("pizza");
hack("10.2.1.3");
hack("foodnstuff", { threads: 10 }); // Only use 10 threads to hack