getting there
This commit is contained in:
@@ -66,15 +66,29 @@ grep -l "LinkerStrip" --include="*.go" -r . | while read file; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Build the modified client without compiling the server
|
# Build the modified client without compiling the server
|
||||||
log "Building Sliver client only..."
|
log "Building Sliver client..."
|
||||||
make client-only
|
# 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
|
# Try to build the client with the correct target
|
||||||
if [ $? -ne 0 ]; then
|
if make -n client 2>/dev/null; then
|
||||||
log "Client build failed, creating only the profiles"
|
log "Using 'client' target"
|
||||||
|
make client
|
||||||
|
elif make -n sliver-client 2>/dev/null; then
|
||||||
|
log "Using 'sliver-client' target"
|
||||||
|
make sliver-client
|
||||||
else
|
else
|
||||||
|
log "Falling back to default build"
|
||||||
|
make
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Check if client was built
|
||||||
|
if [ -f "./sliver-client" ]; then
|
||||||
log "Client build successful"
|
log "Client build successful"
|
||||||
cp -f ./sliver-client /usr/local/bin/
|
cp -f ./sliver-client /usr/local/bin/
|
||||||
|
else
|
||||||
|
log "Client build failed, creating only the profiles"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create custom profiles directory regardless of build success
|
# Create custom profiles directory regardless of build success
|
||||||
@@ -143,4 +157,4 @@ chmod +x /opt/c2/generate_evasive_beacons.sh
|
|||||||
log "Cleaning up..."
|
log "Cleaning up..."
|
||||||
rm -rf $TEMP_DIR
|
rm -rf $TEMP_DIR
|
||||||
|
|
||||||
log "Customization complete."
|
log "Customization complete."exit
|
||||||
@@ -142,13 +142,6 @@
|
|||||||
nohup /opt/c2/serve-beacons.sh > /dev/null 2>&1 &
|
nohup /opt/c2/serve-beacons.sh > /dev/null 2>&1 &
|
||||||
fi
|
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
|
# Include integrated tracker tasks if requested
|
||||||
- name: Include integrated tracker setup
|
- name: Include integrated tracker setup
|
||||||
include_tasks: "configure_integrated_tracker.yml"
|
include_tasks: "configure_integrated_tracker.yml"
|
||||||
|
|||||||
Reference in New Issue
Block a user