Giter Site home page Giter Site logo

cobaltstrike's Introduction

version Docker Automated Build CobaltStrike Docker Build

zh-cn | en-us

Introduce

  • A solution for you who don't want to build an environment and are afraid of software security
  • If you want to use cloud functions, please be sure to open port 80,443
  • If the teamserver exists when mapping the directory, it will be overwritten
  • In general, in order to prevent the certificate fingerprint information from being recognized universally, causing the server to be attacked, or the traffic contains obvious fingerprint features, it is recommended to use your own certificate
  • The default startup item of the container is:, where the arg part is used to customize the agent startup method and CobaltStrike.jar
    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'
  • Don't forget to modify the executable permissionschmod +x teamserver

Quickly create

docker 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

ARGS

  • passwd : password
  • server_ip : server ip
  • server_port : server port
  • alias_name : certificate alias name
  • d_name : certificate information
  • start_args : startup parameters
  • 443 : https (Serverless Cloud Function)
  • 80 : http (Serverless Cloud Function)
  • 33009 : server management port

Tree

➜  /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

Preview

image-20210903211149434

image-20210903211214909

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

cobaltstrike's People

Contributors

github-actions[bot] avatar ran-xing avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.