mirror of
https://github.com/Aryma-f4/Ares-mythic.git
synced 2026-06-15 10:54:13 +00:00
50 lines
1.4 KiB
Python
50 lines
1.4 KiB
Python
|
|
#!/usr/bin/env python3
|
||
|
|
"""
|
||
|
|
Deployment script for Ares BlueHammer Mythic agent
|
||
|
|
"""
|
||
|
|
|
||
|
|
import json
|
||
|
|
import os
|
||
|
|
import subprocess
|
||
|
|
import sys
|
||
|
|
from pathlib import Path
|
||
|
|
|
||
|
|
def deploy_agent():
|
||
|
|
"""Deploy the agent to target system"""
|
||
|
|
print("[Deploy] Deploying Ares BlueHammer agent...")
|
||
|
|
|
||
|
|
# Check if build exists
|
||
|
|
build_dir = Path("build/deploy")
|
||
|
|
if not build_dir.exists():
|
||
|
|
print("[Error] Build directory not found. Run build.py first.")
|
||
|
|
return False
|
||
|
|
|
||
|
|
# Load deployment manifest
|
||
|
|
manifest_path = build_dir / "deploy.json"
|
||
|
|
if not manifest_path.exists():
|
||
|
|
print("[Error] Deployment manifest not found")
|
||
|
|
return False
|
||
|
|
|
||
|
|
with open(manifest_path, 'r') as f:
|
||
|
|
manifest = json.load(f)
|
||
|
|
|
||
|
|
# Create deployment package
|
||
|
|
deploy_package = Path("deployment_package.zip")
|
||
|
|
|
||
|
|
# For now, just show deployment instructions
|
||
|
|
print("\n=== DEPLOYMENT INSTRUCTIONS ===")
|
||
|
|
print("1. Copy the following files to target system:")
|
||
|
|
print(f" - {build_dir / 'AresAgent.exe'}")
|
||
|
|
print("2. Execute the agent on target system:")
|
||
|
|
print(" > AresAgent.exe")
|
||
|
|
print("\nThe agent will automatically:")
|
||
|
|
print(" - Bypass Windows Defender using BlueHammer")
|
||
|
|
print(" - Gain SYSTEM privileges")
|
||
|
|
print(" - Establish persistence")
|
||
|
|
print(" - Connect to Mythic C2 server")
|
||
|
|
|
||
|
|
return True
|
||
|
|
|
||
|
|
if __name__ == "__main__":
|
||
|
|
success = deploy_agent()
|
||
|
|
sys.exit(0 if success else 1)
|