Coder Social home page Coder Social logo

aggressor-scripts's Introduction

Aggressor Scripts

This is just a random collection of Aggressor Scripts I've written for Cobalt Strike 3.x.

Please note that most of them could probably use some tweaking to better suit your environment/tactics.

Shoot me any questions and feel free to submit a pull request for any improvements you may have!

Using this repository

I make use of git submodules, so clone this repo with git clone --recursive

If you didn't follow my instructions and already cloned the repo, go to the root of the repo and run git submodule update --init --recursive

Kits

Most of the useful scripts here are organized in kits. All you have to do is load the KitLoader.cna script, and it will automatically load all other kits (execpt the DebugKit).

Kit descriptions

  1. AnnoyKit

Actions in this kit center around miscellaneous fun that generally involve messing with the user

  1. AntiForensicsKit

Actions in this kit center around antiforensics. If it slows an investigator down, it likely belongs in this kit. We all know antiforensics is best forensics.

  1. CredKit

Actions in this kit center around credential theft, be it via memory scraping or reading files in. If it involves stealing passwords, it should be here.

  1. DebugKit

This kit is limited to actions that I use for development and debugging, and thus is not loaded with the rest of them.

  1. EnumKit

Actions in this kit center around host and network enumeration. Credential enumeration actions should go in CredKit instead.

  1. PersistKit

Actions in this kit center around endpoint persistence. Examples include backdoor service creation, backdoor process creation, etc

  1. PrivEscKit

Actions in this kit center around endpoint privilege escalation. Actions that involve forceful scanning (powerup.ps1, unix-privesc-check) should go in the apporiate section

  1. ThirdParty This is is just a random collection of .cna scripts that other people have created that I like to use. I just have it loaded with kitloader for conveience. There may be changes to the third party scripts to better integerate with my workflow.

Other scripts

inveigh/

Runs Inveigh against the selected machine(s) for a specified amount of time. This does automatically enable LLMNR and NBNS spoofing.

Ebowla/

Adds interoperability between Cobalt Strike and Ebowla. I plan on making this process much more integrated and automated, but at this time, you can generate an Ebowla payload within Cobalt Strike by going to Attacks -> Generate Ebowla Payload. See ewbowla-interop.cna for instructions.

Pushover/

Pushover support for Cobalt Strike, ridiculously useful.

See pushover-cs for instructions.

Reports/

These are reporting (.rpt) scripts created for Cobalt Strike.

aggressor-scripts's People

Contributors

mandreko avatar redsec-shay avatar und3rf10w avatar zacharyhenson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aggressor-scripts's Issues

Load error

When I attempt to load this script into Cobalt Strike via the Script Manager I receive the following error "Could not load...... Error: Syntax error at line 29 beacon_command-register"

Fix the "Browse..." button in ebowla-interop.cna

The "Browse..." button in ebowla-interop.cna currently does not function. However, if a valid path is entered in the text box, everything will function as normal.

Whatever fix is done for this should simply replace the value in $textFieldPayloadInput using

[$textFieldPayloadInput setText: /path/to/input/payload];

Get-ChromePasswords.ps1 fails (maybe size?)

I was troubleshooting the ChromePasswords script, and getting an interesting error in CobaltStrike:

beacon> powershell-import Get-ChromePasswords.ps1
beacon> powerpick Get-ChromePasswords
[*] Tasked beacon to run: IEX ((new-object net.webclient).downloadstring('http://127.0.0.1:43763/'))
[+] host called home, send: 135753 bytes
[+] received output:
ERROR: downloadstring : Exception calling "DownloadString" with "1" argument(s): "Unable to connect to the
ERROR: remote server"
ERROR:
ERROR: At line:1 char:121
ERROR: + IEX (New-Object Net.Webclient).DownloadString('http://127.0.0.1:28023/'); IEX ((new-object net.we
ERROR: bclient).downloadstring <<<< ('http://127.0.0.1:43763/'))
ERROR:    + CategoryInfo        : NotSpecified: (:) [], MethodInvocationException
ERROR:    + FullyQualifiedErrorId : DotNetMethodException
ERROR:

I initially figured something was just wrong with the script and moved on. Later, I analyzed the script, and found that there were two "F"s in the word "FFunction". After fixing that, I did:

beacon> powershell-import
[-] max powershell import size is 1MB. Compressed script is: 2538520 bytes

It could just be how I'm running it, but it hasn't succeeded in any fashion I've tried. I haven't yet resolved it though. Maybe you want to test it and see if it works for you? Maybe something has changed.

ntfsADSBackdoor.cna will not load

When I attempt to load this into Cobalt Strike via the Scripting Manager I receive the following error "unknown expression at line 21 : txt and unknown expression at line 21: adfjklbalgjbr"

Reorganize beacon menus for proper SSH support

Currently, all SSH commands are incorrectly added in this repository.

For example, see the credKit:

popup beacon_bottom {
    menu "CredKit" {
        menu "Windows" {
            # < ... snip ... >
        }
        menu "Linux" {
            # < ... snip ... >
        }
    }
}

In the current state, if an operator were to right click on a SSH beacon, they would not see any of the commands within the kit. This is because ssh and beacon are different popup hooks. The proper format is as follows:

popup beacon_bottom {
    menu "CredKit" {
        # all Windows commands go here
    }
}

popup ssh {
    menu "CredKit" {
        # all SSH commands go here
    }
}

This modification needs to be performed for all kits. This also eliminates the need to separate the SSH and Windows commands within the menu.

postExploit: convert Chrome and Firefox password scripts

The scripts Get-ChromePasswords.ps1 and Get-FirefoxPasswords.ps1 are too large to be imported through bpowershell_import().

Convert them to be hosted using the bhost_script() subroutine and execute that way.

Tasks

  • add bhost_script() topostExploit.cna (currently in privesc branch)
  • Convert Get-ChromePasswords.ps1 to use bhost_script()
  • Convert Get-FirefoxPasswords.ps1 to use bhost_script()

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.