fixing things
This commit is contained in:
@@ -100,7 +100,7 @@ sliver-client generate stager --profile $stager_profile --os windows --arch amd6
|
||||
echo "[+] Windows stager: $BEACONS_DIR/staged/$stager_win (Profile: $stager_profile)"
|
||||
|
||||
# Create manifest file from template
|
||||
cp /opt/c2/manifest.template "$BEACONS_DIR/manifest.json"
|
||||
cp /root/Tools/manifest.template "$BEACONS_DIR/manifest.json"
|
||||
sed -i "s/WINDOWS_EXE/$win_output/g" "$BEACONS_DIR/manifest.json"
|
||||
sed -i "s/WINDOWS_DLL/$dll_output/g" "$BEACONS_DIR/manifest.json"
|
||||
sed -i "s/LINUX_BINARY/$linux_output/g" "$BEACONS_DIR/manifest.json"
|
||||
@@ -117,16 +117,16 @@ sed -i "s/C2_HOST/$C2_HOST/g" "$BEACONS_DIR/manifest.json"
|
||||
sed -i "s/GENERATED_DATE/$(date)/g" "$BEACONS_DIR/manifest.json"
|
||||
|
||||
# Create Linux loader from template
|
||||
cp /opt/c2/linux_loader.template "$BEACONS_DIR/linux_loader.sh"
|
||||
cp /root/Tools/linux_loader.template "$BEACONS_DIR/linux_loader.sh"
|
||||
sed -i "s/REDIRECTOR_PLACEHOLDER/$REDIRECTOR_HOST/g" "$BEACONS_DIR/linux_loader.sh"
|
||||
chmod +x "$BEACONS_DIR/linux_loader.sh"
|
||||
|
||||
# Create Windows PowerShell loader from template
|
||||
cp /opt/c2/windows_loader.template "$BEACONS_DIR/windows_loader.ps1"
|
||||
cp /root/Tools/windows_loader.template "$BEACONS_DIR/windows_loader.ps1"
|
||||
sed -i "s/REDIRECTOR_PLACEHOLDER/$REDIRECTOR_HOST/g" "$BEACONS_DIR/windows_loader.ps1"
|
||||
|
||||
# Create reference file from template
|
||||
cp /opt/c2/reference.template "$BEACONS_DIR/reference.txt"
|
||||
cp /root/Tools/reference.template "$BEACONS_DIR/reference.txt"
|
||||
sed -i "s/C2_HOST/$C2_HOST/g" "$BEACONS_DIR/reference.txt"
|
||||
sed -i "s/REDIRECTOR_HOST/$REDIRECTOR_HOST/g" "$BEACONS_DIR/reference.txt"
|
||||
sed -i "s/WINDOWS_EXE/$win_output/g" "$BEACONS_DIR/reference.txt"
|
||||
|
||||
@@ -39,7 +39,7 @@ Other Installed C2 Frameworks:
|
||||
- Metasploit Framework: system installed (run 'msfconsole')
|
||||
- Sliver C2: system installed (run 'sliver')
|
||||
|
||||
Security Scripts in /opt/c2/:
|
||||
Security Scripts in /root/Tools/:
|
||||
-----------------------------
|
||||
- clean-logs.sh: Securely clears all logs on the system
|
||||
- secure-exit.sh: Perform secure wipe for termination
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Script to serve Sliver beacons generated by generate_evasive_beacons.sh
|
||||
|
||||
# Configuration
|
||||
BEACONS_DIR="/opt/beacons"
|
||||
BEACONS_DIR="/root/Tools/beacons"
|
||||
C2_HOST="{{ ansible_host }}"
|
||||
LISTEN_PORT=8443
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ After=network.target
|
||||
Type=simple
|
||||
User=root
|
||||
Group=root
|
||||
ExecStart=/opt/shell-handler/persistent-listener.sh
|
||||
ExecStart=/root/Tools/shell-handler/persistent-listener.sh
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ logging.basicConfig(
|
||||
level=logging.INFO,
|
||||
format='%(asctime)s - %(levelname)s - %(message)s',
|
||||
handlers=[
|
||||
logging.FileHandler('/opt/tracker/data/tracker.log'),
|
||||
logging.FileHandler('/root/Tools/tracker/data/tracker.log'),
|
||||
logging.StreamHandler()
|
||||
]
|
||||
)
|
||||
@@ -27,7 +27,7 @@ logging.basicConfig(
|
||||
app = Flask(__name__)
|
||||
|
||||
# Directory to store tracking data
|
||||
DATA_DIR = '/opt/tracker/data'
|
||||
DATA_DIR = '/root/Tools/tracker/data'
|
||||
os.makedirs(DATA_DIR, exist_ok=True)
|
||||
|
||||
# Path to 1x1 transparent pixel
|
||||
|
||||
@@ -42,7 +42,7 @@ Once connected to the server, you can:
|
||||
IMPLANT RESOURCES
|
||||
----------------
|
||||
Pre-generated implants are available in:
|
||||
- /opt/beacons/
|
||||
- /root/Tools/beacons/
|
||||
|
||||
These implants are already configured to connect through the redirector at
|
||||
{{ redirector_domain }}.
|
||||
@@ -59,7 +59,7 @@ TIPS FOR OPSEC
|
||||
- Use HTTPS for all communications
|
||||
|
||||
To regenerate beacons with different properties:
|
||||
$ /opt/c2/generate_evasive_beacons.sh
|
||||
$ /root/Tools/generate_evasive_beacons.sh
|
||||
|
||||
TROUBLESHOOTING
|
||||
--------------
|
||||
|
||||
@@ -5,8 +5,8 @@ After=network.target
|
||||
[Service]
|
||||
User=tracker
|
||||
Group=tracker
|
||||
WorkingDirectory=/opt/tracker
|
||||
ExecStart=/opt/tracker/venv/bin/python /opt/tracker/simple_email_tracker.py
|
||||
WorkingDirectory=/root/Tools/tracker
|
||||
ExecStart=/root/Tools/tracker/venv/bin/python /root/Tools/tracker/simple_email_tracker.py
|
||||
Restart=always
|
||||
RestartSec=10
|
||||
|
||||
|
||||
Reference in New Issue
Block a user