A tool which makes your hacking life more convenient. Like do you find VPN setups and starting HackTheBox challenges tedious ? Or maybe opening a bunch of pentesting tools manually is a hassle? Well, i do :D... that's why i made this to simplify all that. Enjoy!
Simply run the install.sh
script.
git clone https://github.com/hackernese/Haxtools
cd Haxtools
chmod +x install.sh
./install.sh
It will ask for sudo permission, simply type it in then have fun.
At the moment, this tool consists of two main features :
Feature 1
: Interact with HackTheBox services from the command lineFeature 2
: Creating a toolset to easily open
Execute hack --help
for more details.
To interact with HackTheBox from the CLI. Most likely you will need to create a HackTheBox API token first by navigating to your HackTheBox profile settings then click on CREATE APP TOKEN
.
Simply follow the instructions and remember to note down the generated token since it won't be shown again. Then, run one of the following commands, and it will ask for your token if it's not already configured.
List available boxes
hack -box list
List the currently active box
hack -box active
Start a specific box
hack -box BOX_NAME/BOX_ID --start
Stop a specific box
hack -box BOX_NAME/BOX_ID --stop
Submit a flag to a specific box
hack -box BOX_NAME/BOX_ID --submit FLAG
Start the VPN connection as a daemon
hack -htb on
Stop the VPN connection
hack -htb off
Enable the VPN connection on startup
hack -htb enable
Create a toolset
hack -toolset NAME -n
Delete a toolset
hack -toolset NAME -r
List all existing toolsets
hack -toolset -l
Add a tool/command/executable into the toolset
hack -toolset NAME --add COMMAND
Delete a tool from a toolset
hack -toolset NAME --del COMMAND
NOTE :
COMMAND
has be to recognized within the$PATH
environment variable.
Feel free to make a pull request if you think this tool can be improved with more potential ideas or code refactoring. I am open to accepting any existing vulnerabilities in my codebase as well.