C-MDaaS CLI - Cloud Malware Detection as a Service
npm install cmdaas
pefile installed
http://localhost:8000
npm install -g
`
Or use locally:
`
npm install
npm start
`
Or link for development:
`
npm link
cmdaas
`
---
š Usage
$3
`
cmdaas
`
$3
- Username: mohammed
- Password: password123
$3
| Command | Description |
|---------|-------------|
| š Detect Malware | Scan a PE file for malware |
| š View Statistics | See your scan history |
| ā Help | Show help information |
| ā Logout | End your session |
$3
1. Select "š Detect Malware"
2. Enter file path: C:\Windows\System32\notepad.exe
3. Press ENTER
4. View results with confidence scores
---
š§ Configuration
The CLI connects to:
- API URL: https://cmdaas-backend.onrender.com (Default) or CMDAAS_API_URL env var
- Session file: ~/.cmdaas/session.json
---
š Troubleshooting
$3
Solution: Your session expired. Logout and login again.
$3
Solution:
- Make sure Python is installed: py --version
- Install pefile: pip install pefile
$3
Solution: Make sure you're scanning a valid Windows PE file (.exe, .dll)
$3
Solution: Start the backend server:
`
uvicorn backend.api.main:app --reload
`
---
š¦ Project Structure
`
cli/
āāā index.js # Main application
āāā package.json # Dependencies
āāā backend/
ā āāā feature_extractor.py # PE feature extraction
āāā README.md # This file
`
---
š ļø Development
$3
`
node index.js
`
$3
`
npm install
`
$3
`
py backend/feature_extractor.py C:\path\to\file.exe
``