Bash tool for HTB Sherlock challenges.
This is an automation tool for HTB Sherlock challenges. Sets up the directory environment, downloads and extracts the challenge files. A simple Quality of Life script.
Note
- Semi-DFIR structure: Creates the main directory with the
Machine Nameand the subdirectories/artifacts,/exports,/logsand/src. - Downloads the .zip, generates its
SHA256hash and moves both to the/srcdirectory. - Extracts the .zip content into
/artifacts. - The script automatically identifies if it's a standalone or a function.
Note
You need the following tools in your system:
- 7z
- wget
- sha256sum
The script can be executed like a standalone binary or you can add it to your ~/.bashrc or ~/.zshrc config file.
You can download and make it executable with the following commands:
wget "https://raw.githubusercontent.com/MaxisFront/sherlock-setup/refs/heads/main/sherlock-setup.sh"
chmod +x sherlock-setup.shThe parameters needed for the script are as follows
sherlock-setup <MachineName> <ZIP-URL> [PASSWORD]Important
- The password by default is
hacktheblue. If HTB changes it, you can add it as a third parameter if you want to.
Example:
sherlock-setup Brutus "https://labs.hackthebox.com/api/v4/challenges/631/cdn/redirect?auth_user_&signature=34e1fe0df943534cad3936803ea609ba345345e4ac99ffc5dbf34534541fbe2f"