Hacknet.HackerScriptExecuter.runScript("HackerScripts/Script.txt", os);
// This implies that you're running this in a Pathfinder command.
// If not, you'll have to replace `os` with an instance of the players os
// somehow.
Default scripts are ThemeHack.txt
(Naix's theme deleter) and SystemHack.txt
(Striker's VMBootloaderTrap)
To use your own script, create one using the documentation below and then add it to the Content/HackerScripts
folder in your Hacknet installation path.
Each line must end $#%#$
and a Windows new line (\r\n
) directly after ( $#%#$\r\n
).
<>
are just used to differentiate arguments from the command. Do not include them when you write your script.
Configures the script so that Hacknet knows who is being aimed at and who is attacking.
playerComp
Literally just 'playerComp', don't change this.
computerName
The name or IP of the computer that is executing the script.
delay
Time to wait after in seconds
Pause execution of the script.
delay
Time to delay in seconds.
Connects the attackers computer to the target.
Opens a port on the target's computer.
portNumber
The number of the port to open.
Deletes the specified file off the target's computer.
directory
Location of the file to delete.
file
The file to delete.
Reboots the target's computer.
Executes a forkbomb attack on the target's computer, forcing a reboot.
Disconnects the attacker from the target's computer.
Executes the sequence when the player's system gets attacked by Striker.
Clears the target's terminal.
Prints text to the target's console without a line ending(?).
text
Text to print.
Prints text to the target's console.
text
Text to print.
Hides the target's netmap.
Hides the target's RAM display,
Hides the target's display.
Stops any currently playing music on the target's computer.
Something about forkbomb tracing, not quite sure.
Trigger an instantainious ETAS (Emergency Trace Aversion Sequence.)
Flash the target's screen.