Coder Social home page Coder Social logo

redsiege / c2concealer Goto Github PK

View Code? Open in Web Editor NEW
939.0 25.0 167.0 47 KB

C2concealer is a command line tool that generates randomized C2 malleable profiles for use in Cobalt Strike.

License: GNU General Public License v3.0

Python 94.85% Shell 4.87% Dockerfile 0.27%
cobaltstrike cobalt-strike python3 malleable-c2-profiles malleable-c2-profile malleable-c2 red-teaming

c2concealer's Issues

4.3 DNS Beacon Options

Cobalt Strike 4.3 (https://blog.cobaltstrike.com/2021/03/03/cobalt-strike-4-3-command-and-control/) introduced, among other things, the "dns-beacon" block. The addition of this block breaks compatibility so profiles for previous versions are no longer valid for 4.3+.

As a half-measure, https://github.com/FortyNorthSecurity/C2concealer/blob/master/C2concealer/components/dnsoptions.py#L77-L80 should be changed to

profileString = 'dns-beacon { \n'
for attr, value in self.__dict__.items():
	profileString += '\tset ' + attr + ' "' + value + '";\n'
profileString += '\n }\n'
return profileString

A more complete solution should probably also include the new subhost options.

is it related to my NS RECORDS?

C2concealer/C2concealer/generate-cert.sh: line 105: ./letsencrypt-auto: No such file or directory
[ERROR] letsencrypt certs failed to build. Check that DNS A record is properly configured for this domain

thx for the help

4.2 . It doesn't work?

Tried many times, but It didn't work.
C2concealer --variants 1 --hostname domain
[i] Building random C2 malleable profile with 1 variants.
[-] Attempted to create 10 profiles. All 10 failed c2lint check.
[i] If you selected a large amount of variants, please retry again.
[x] Exiting program.

Powershell HTTPS reverse shell Exception

EXECUTE POWERSHELL:
image

CS LISTENER:
image

Nginx:

server {
    listen 443 ssl;
    root /var/www/html/;
    index index.html;
    charset utf-8;
    server_name xxxxxxxxx;
    ssl_certificate  /etc/nginx/sites-available/csserver.crt;
    ssl_certificate_key /etc/nginx/sites-available/csserver_nopass.key;
    location / {
        try_files $uri $uri/ @c2;
    }
    location @c2 {
        proxy_pass https://172.17.0.2:444;
        proxy_redirect off;
        proxy_ssl_verify off;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }
}

.store

Hey guys, this might sound like a dumb one but my google fu is failing me

let's say I have all my pem files from a pre-existing letsencrypt, I've converted to jks in the past for other profiles but using C2Concealer i need to create a .store certificate to satisfy the creation of my profiles ... what am I missing, Thanks!

how might that happen ? - btw this is ace +++

4.2 . It doesn't work?

Tried many times, but It didn't work.
C2concealer --variants 1 --hostname domain
[i] Building random C2 malleable profile with 1 variants.
[-] Attempted to create 10 profiles. All 10 failed c2lint check.
[i] If you selected a large amount of variants, please retry again.
[x] Exiting program.

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.