mirror of
https://github.com/nettitude/PoshC2
synced 2026-06-08 16:22:47 +00:00
13 lines
371 B
Bash
Executable File
13 lines
371 B
Bash
Executable File
#!/bin/bash
|
|
|
|
source /usr/local/bin/_posh-common
|
|
get_docker_image_name
|
|
|
|
echo "[*] Stopping the PoshC2 server Docker container..."
|
|
CONTAINER=`sudo docker ps -q -f label=posh-server -f ancestor=$DOCKER_IMAGE_NAME`
|
|
if [ ! -z "$CONTAINER" ]; then
|
|
sudo docker stop "$CONTAINER" >/dev/null
|
|
echo "[+] Done"
|
|
else
|
|
echo "[*] No running PoshC2 server containers found"
|
|
fi |