@b0xs/cli
v0.1.1
Published
CLI tool for recording and uploading pentesting operations to the Boxs platform
Downloads
6
Maintainers
Readme
Boxs CLI
CLI tool for recording and uploading pentesting operations to the Boxs platform.
Installation
npm install -g @b0xs/cliQuick Start
Login to your Boxs platform:
boxs loginStart recording an operation:
boxs start "HTB - Lame Machine" --campaign "OSCP" # Perform your pentesting work normally boxs stopUpload existing logs:
boxs upload session.log --title "THM Blue Room"
Commands
Authentication
boxs login- Login to Boxs platformboxs logout- Logout and clear credentialsboxs config- View and manage configuration
Recording Operations
boxs start <title>- Start recording a new operationboxs stop- Stop current recording and uploadboxs upload <files...>- Upload existing log files
Management
boxs list- List your operationsboxs status- Show current recording status
Supported File Formats
- Asciinema recordings (
.cast) - Full timing data for interactive replay - Script command output (
.script) - Terminal recordings with partial timing - Raw terminal logs (
.log,.txt) - Plain text logs - Tool outputs - nmap XML, gobuster, sqlmap results
- Multiple files - Combine related files into single operation
Examples
Live Recording
# Start recording
boxs start "Web Application Assessment" --campaign "Client-XYZ"
# Your normal pentesting workflow
nmap -sV target.com
gobuster dir -u http://target.com -w /usr/share/wordlists/common.txt
sqlmap -u "http://target.com/login.php" --forms
# Stop and auto-upload
boxs stopUpload Existing Logs
# Single file
boxs upload pentest-session.log --title "Internal Network Assessment"
# Multiple related files
boxs upload nmap.xml gobuster.txt privesc.log \
--merge --title "Full Infrastructure Test"
# Batch import historical data
boxs import ./old-pentests/ --recursiveConfiguration
The CLI stores configuration in ~/.boxs-config.json:
{
"apiUrl": "https://your-boxs-platform.com",
"token": "...",
"defaultCampaign": "OSCP"
}Development
git clone https://github.com/ozipi/boxs-cli.git
cd boxs-cli
npm install
npm run build
npm link # For local testingContributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
License
MIT License - see LICENSE file for details.
Related Projects
- Boxs Platform - Web platform for operation analysis
- Asciinema - Terminal recording format we support
