AUTARCH v1.9 — remote monitoring, SSH manager, daemon, vault, cleanup
- Add Remote Monitoring Station with PIAP device profile system - Add SSH/SSHD manager with fail2ban integration - Add privileged daemon architecture for safe root operations - Add encrypted vault, HAL memory, HAL auto-analyst - Add network security suite, module creator, codex training - Add start.sh launcher script and GTK3 desktop launcher - Remove Output/ build artifacts, installer files, loose docs - Update .gitignore for runtime data and build artifacts - Update README for v1.9 with new launch method, screenshots, and features Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
12
core/msf.py
12
core/msf.py
@@ -24,6 +24,7 @@ except ImportError:
|
||||
|
||||
from .config import get_config
|
||||
from .banner import Colors
|
||||
from core.daemon import root_exec
|
||||
|
||||
|
||||
class MSFError(Exception):
|
||||
@@ -672,11 +673,11 @@ class MSFManager:
|
||||
except PermissionError:
|
||||
if use_sudo:
|
||||
try:
|
||||
subprocess.run(['sudo', 'kill', '-TERM', str(pid)], timeout=5)
|
||||
root_exec(['kill', '-TERM', str(pid)], timeout=5)
|
||||
time.sleep(1)
|
||||
try:
|
||||
os.kill(int(pid), 0)
|
||||
subprocess.run(['sudo', 'kill', '-KILL', str(pid)], timeout=5)
|
||||
root_exec(['kill', '-KILL', str(pid)], timeout=5)
|
||||
except ProcessLookupError:
|
||||
pass
|
||||
return True
|
||||
@@ -692,7 +693,7 @@ class MSFManager:
|
||||
# Try pkill as fallback
|
||||
try:
|
||||
if use_sudo:
|
||||
subprocess.run(['sudo', 'pkill', '-f', 'msfrpcd'], timeout=5)
|
||||
root_exec(['pkill', '-f', 'msfrpcd'], timeout=5)
|
||||
else:
|
||||
subprocess.run(['pkill', '-f', 'msfrpcd'], timeout=5)
|
||||
time.sleep(1)
|
||||
@@ -810,9 +811,10 @@ class MSFManager:
|
||||
if is_win and msfrpcd_bin.endswith('.bat'):
|
||||
cmd = ['cmd', '/c'] + cmd
|
||||
|
||||
# Prepend sudo on Linux if requested
|
||||
# Note: msfrpcd runs through the daemon if root is needed
|
||||
# For Popen-based background processes, we don't use the daemon socket
|
||||
if not is_win and use_sudo:
|
||||
cmd = ['sudo'] + cmd
|
||||
cmd = ['sudo', '-n'] + cmd # non-interactive sudo fallback
|
||||
|
||||
try:
|
||||
# Start msfrpcd in background
|
||||
|
||||
Reference in New Issue
Block a user