forked from its-a-feature/Mythic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
stop_mythic.sh
executable file
·22 lines (22 loc) · 817 Bytes
/
stop_mythic.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
RED='\033[1;31m'
NC='\033[0m' # No Color
GREEN='\033[1;32m'
BLUE='\033[1;34m'
if [ "$EUID" -ne 0 ]
then echo -e "${RED}[-]${NC} Please run as root"
exit
fi
# stop the main c2 and postgres database services
echo -e "${BLUE}[*]${NC} Stopping main Mythic services"
docker-compose stop
echo -e "${BLUE}[*]${NC} Removing main Mythic containers"
output=`docker container rm $(docker container ps -aq --filter name="mythic_server") 2>/dev/null`
output=`docker container rm $(docker container ps -aq --filter name="mythic_rabbitmq") 2>/dev/null`
output=`docker container rm $(docker container ps -aq --filter name="mythic_postgres") 2>/dev/null`
# stop the c2 profiles
./stop_c2_profiles.sh
# stop the payload type containers
./stop_payload_types.sh
# stop the documentation container
./stop_documentation.sh