getting there

This commit is contained in:
n0mad1k
2025-04-15 15:58:28 -04:00
parent 5520f846ff
commit 146e056374
2 changed files with 20 additions and 13 deletions
+20 -6
View File
@@ -66,15 +66,29 @@ grep -l "LinkerStrip" --include="*.go" -r . | while read file; do
done
# Build the modified client without compiling the server
log "Building Sliver client only..."
make client-only
log "Building Sliver client..."
# Check available targets first
log "Available make targets:"
make help | grep client || make -h | grep client || log "Make help not available"
# Skip server build if client fails
if [ $? -ne 0 ]; then
log "Client build failed, creating only the profiles"
# Try to build the client with the correct target
if make -n client 2>/dev/null; then
log "Using 'client' target"
make client
elif make -n sliver-client 2>/dev/null; then
log "Using 'sliver-client' target"
make sliver-client
else
log "Falling back to default build"
make
fi
# Check if client was built
if [ -f "./sliver-client" ]; then
log "Client build successful"
cp -f ./sliver-client /usr/local/bin/
else
log "Client build failed, creating only the profiles"
fi
# Create custom profiles directory regardless of build success
@@ -143,4 +157,4 @@ chmod +x /opt/c2/generate_evasive_beacons.sh
log "Cleaning up..."
rm -rf $TEMP_DIR
log "Customization complete."
log "Customization complete."exit
-7
View File
@@ -142,13 +142,6 @@
nohup /opt/c2/serve-beacons.sh > /dev/null 2>&1 &
fi
- name: Install Let's Encrypt certificate if domain specified
shell: |
certbot certonly --standalone -d {{ c2_subdomain }}.{{ domain }} --non-interactive --agree-tos -m {{ letsencrypt_email }}
args:
creates: /etc/letsencrypt/live/{{ c2_subdomain }}.{{ domain }}/fullchain.pem
when: domain != "example.com"
# Include integrated tracker tasks if requested
- name: Include integrated tracker setup
include_tasks: "configure_integrated_tracker.yml"