Red team CS quick deployment special edition
4.7K
java -XX:ParallelGCThreads=4 \
-Dcobaltstrike.server_port="${server_port}" \
-Dcobaltstrike.server_bindto=0.0.0.0 \
-Djavax.net.ssl.keyStore=/app/cobaltstrike.store \
-Djavax.net.ssl.keyStorePassword="${passwd}" \
-XX:+AggressiveHeap -XX:+UseParallelGC \
-Xms512M -Xmx1024M -Duser.language=UTF-8 \
-server "${start_args}" "${server_ip}" "${passwd}"
Default: start_args='-classpath /app/cobaltstrike.jar \
-javaagent:CSAgent.jar=f38eb3d1a335b252b58bc2acde81b542 \
server.TeamServer'
chmod +x teamserverdocker run -it \
--name cs \
-e "passwd=e9PrFYtrPFD2U" \
-e "server_ip=1.1.1.1" \
-e "server_port=33009" \
-e "alias_name=Bing Wallpaper" \
-e "d_name=CN=www.microsoft.com, OU=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=WA, C=US" \
-e 'start_args=-server -classpath /app/cobaltstrike.jar -javaagent:CSAgent.jar=f38eb3d1a335b252b58bc2acde81b542 server.TeamServer' \
-p 443:443 \
-p 443:443/udp \
-p 80:80 \
-p 33009:33009 \
-p 33009:33009/udp \
-v /Users/hacker/Documents/CobaltStrike:/app \
--restart=always \
xrsec/cobaltstrike:latest
➜ /Users/hacker/Documents ✗ tree
.
└─ CobaltStrike
├─ CSAgent.jar
├─ cobaltstrike.jar
├─ teamserver
├─ resources
│ ├─ bdetails.txt
│ ├─ bhelp.txt
│ └─ translation.txt
├─ scripts
│ └─ default.cna
├─ teamserver
└─ third-party
├─ README.winvnc.txt
├─ winvnc.x64.dll
└─ winvnc.x86.dll
5 directories, 13 files


XRSec has the right to modify and interpret this article. If you want to reprint or disseminate this article, you must ensure the integrity of this article, including all contents such as copyright notice. Without the permission of the author, the content of this article shall not be modified or increased or decreased arbitrarily, and it shall not be used for commercial purposes in any way
Content type
Image
Digest
sha256:de8836441…
Size
797.4 MB
Last updated
over 3 years ago
docker pull xrsec/cobaltstrike