Server 執行
docker run -it --name cs -e "passwd=timmygoodjob" -e "server_ip=35.236.161.97" -e "server_port=33009" -e "aliasname=Bing Wallpaper" -e "dname=CN=www.microsoft.com, OU=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=WA, C=US" -p 443:443 -p 443:443/udp -p 80:80 -p 33009:33009 -p 33009:33009/udp -p 53:53 -p 53:53/udp --restart=always xrsec/cobaltstrike:latest
將庫戶端jar包從docker複製出來
docker cp cs:/cobaltstrike/cobaltstrike.jar .
docker cp cs:/cobaltstrike/CSAgent.jar .
client 建立資料夾
mkdir CobaltStrike && cd CobaltStrike
APPDIR="/Users/timmy/github/CobaltStrike"
java -javaagent:$APPDIR/CSAgent.jar=f38eb3d1a335b252b58bc2acde81b542 -Dfile.encoding=UTF-8 -XX:ParallelGCThreads=4 -XX:+AggressiveHeap -XX:+UseParallelGC -Xms512M -Xmx1024M -jar $APPDIR/cobaltstrike.jar
Comments