Machinescli
This tool provides commandline access for https://www.hackthebox.eu, https://tryhackme.com/ and https://www.vulnhub.com/ machines.
Install / Use
/learn @7h3rAm/MachinescliREADME
machinescli
This tool provides commandline access for HackTheBox, TryHackMe and VulnHub machines. Here's a quick listing of useful features:
- Look up machine details across HTB/THM/VH
- Track owned/pending/todo machines
- Interact with HTB portal and assign/remove/own/query machines
- Search writeup descriptions using ippsec.rocks like option
- Search machine details using
jq-style query language
machinescliworks in conjuction with svachal framework. As such, if you wish to extend and use writeup metadata, it will be natively accessible via the sharedmachines.jsonfile.
Installation
Follow the steps below and run machinescli to create the machines.json file (to get your HTBAPIKEY from HackTheBox, go to your username tab > Classic HTB > Settings > API Key):
$ mkdir -pv cd $HOME/toolbox/projects && cd $HOME/toolbox/projects
$ git clone https://github.com/7h3rAm/machinescli && cd machinescli
$ python3 -m venv --copies venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ mkdir -pv $HOME/toolbox/bootstrap # this directory will be used to store and access machines.json file
$ export HTBAPIKEY=<APIKEYHERE>
$ python3 machinescli.py --update
Usage

Usecases
-
Show counts for tracked and owned machines:

-
Show stats for machine named
bashed, show extended details as JSON, export results for GSheet import:
-
Search machine descriptions for keywords
buffer overflowandbash:
-
Query
ownedmachines using the built-in filter:
-
Query
owned AND oscplike HackTheBoxmachines using the built-in filter:
-
Query
owned AND oscplike HackTheBoxmachines using the built-in filter and show TTPs if machine writeups are available:
-
Query
owned AND NOT OSCPlikemachines usingjq-style syntax:
-
Show global stats from HackTheBox platform:

-
Show
spawnedmachines andexpirystats from HackTheBox platform:
-
Perform
assignandremoveoperations on a HackTheBox machine:
-
Show global stats from TryHackMe platform:

Argument Autocomplete
Source the .bash-completion file within a shell to trigger auto-complete for arguments. This will require the following alias:
alias machinescli='python3 $HOME/toolbox/projects/machinescli/machinescli.py'
You will need a Nerd Fonts patched font for OS icons and other symbols to be rendered correctly.
Related Skills
node-connect
352.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
