-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py.example
More file actions
21 lines (17 loc) · 841 Bytes
/
config.py.example
File metadata and controls
21 lines (17 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# config.py.example
# LLM Configuration
LLM_API_URL = "http://localhost:11434/api/generate" # Default Ollama generate endpoint
LLM_MODEL_NAME = "llama3" # Or any other Llama model you are running
# Command Execution Safety
# Whitelist of allowed commands. Only commands present in this list (or dynamically added
# with user confirmation) will be executed.
# Add commands like 'nmap', 'ping', 'whoami', 'ls', etc. as needed.
ALLOWED_COMMANDS = [
"echo", "ls", "pwd", "whoami", "id", "ifconfig", "ip", "ping",
"nmap", "dir", "cat", "grep", "find", "head", "tail", "wc",
# Add other pentesting tools here as you integrate them securely
]
# Max execution time for a command in seconds
COMMAND_TIMEOUT = 60
# If True, the assistant will ask for user confirmation before executing any command.
REQUIRE_COMMAND_CONFIRMATION = True