NukeScript is the scripting system of NukeRat. It lets you automate actions and build custom functionality.
It's built on Python, with a native event and command system for carrying out those actions, so you get all the flexibility Python already offers, especially external libraries.
To use NukeScript, go to NukeRat > NukeScript and click Add to create a new script. After that, just hit play on the script.
def on_connect(event): # event holds all the information from the event
echo(f"[+] new implant: {event['user']} @ {event['hostname']}")
cmd(event["tag"], "whoami")
# Event trigger
event.new_host:on_connect()Since NukeScript is built on Python, you can use any Python library you want.
import requests
def example(event):
echo(requests.get("https://example.com").text)
event.heartbeat_1s:example()If you need an external library, install it with ./nukerat.py server venv install <package>. That installs the package into the NukeScript venv.
./nukerat.py server venv install requestsTo follow the output from echo, open the NS Debugger from Tabs > NS Debugger.
To read more about NukeScript, see the docs at nukerat.com/docs/nukescripts.
- Events: nukerat.com/docs/nukescripts/events
- Commands: nukerat.com/docs/nukescripts/commands
- Examples: nukerat.com/docs/nukescripts/examples