Code Monkey home page Code Monkey logo

armory's People

Contributors

c2biz avatar daddycocoaman avatar lesnuages avatar moloch-- avatar r00t0v3rr1d3 avatar rkervella 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

Watchers

 avatar  avatar  avatar  avatar  avatar

armory's Issues

Porting Defender_Exclusions-BOF

I'm trying to port Defender_Exclusions-BOF, I see you already forked it, so I tried adding the extension.json and use it but no luck :(

[server] sliver (mtls-sk) > extensions install /home/kali/Downloads/Defender_Exclusions-BOF-main/dist

[*] Installing extension 'defender-excl' (1.0.0) ... 
[server] sliver (mtls-sk) > extensions load /home/kali/Downloads/Defender_Exclusions-BOF-main/dist

[*] Added defender-excl command: A BOF to determine Windows Defender exclusions:

[server] sliver (mtls-sk) > defender-excl 1

[!] Call extension error: rpc error: code = Unknown desc = The parameter is incorrect.

extension.json used:

{
    "name": "Defender_Exclusions-BOF ",
    "version": "1.0.0",
    "command_name": "defender-excl",
    "extension_author": "nemesis",
    "original_author": "EspressoCake",
    "repo_url": "https://github.com/EspressoCake/Defender_Exclusions-BOF",
    "help": "A BOF to determine Windows Defender exclusions:",
    "long_help": "",
    "depends_on": "coff-loader",
    "entrypoint": "go",
    "files": [
        {
            "os": "windows",
            "arch": "amd64",
            "path": "cEnumerateDefender.x64.o"
        },
        {
            "os": "windows",
            "arch": "386",
            "path": "cEnumerateDefender.x86.o"
        }
    ],
    "arguments": [
        {
            "name": "option",
            "desc": "1 - Folder; 2 - Process; 3 - Extension",
            "type": "int",
            "optional": false
        }
    ]
}

add mimikatz

I've decided to modify mimikatz in order to be loaded as a DLL inside sliver implant. Here the repository: https://github.com/MrAle98/mimikatz. Open the project in visual studio 2019 and use sliverkatz build type in order to produce powerkatz.dll.

Here it is a screenshot of running dll powerkatz.dll in a sliver implant:
image

Adding SharpPick

Hey for the moment It seems to me that there is no functionality similar to powerpick of cobalt-strike. I've found SharpPick at https://github.com/TheKevinWang/SharpPick that implements this functionality in C#. At the following links you can find the SharpPick repo with workflow and alias.json already added and the content to add to armory.json (I decided to do an additional private one):

Maybe you can add it also to the official armory if you think could be useful.

add chisel

Hello I report here another extension that you may find useful.

I decided to modify chisel project to a windows DLL that can be loaded as an extension of a sliver agent, and manage multiple socks/port forwarding operations. Here the link to the repository with modified version of chisel supporting loading as sliver extension: https://github.com/MrAle98/chisel

The project now has two additional commands:

  • list: shows currently running tasks in chisel
  • stop taskId: stop a task identified by taskId (taskId are retrieved through list command)

I hope this extension to be useful when it is necessary to have a more powerful socks proxy without dropping anything to disk nor injecting in other processes.

It might be also considered as an example for showing how to introduce go tooling in C2s supporting the execution of DLLs in memory.

Build

Requires mingw-w64, it is already install on a kali linux instance.

With the following commands, chisel dlls are generated and is automatically created the extension chisel in sliver.

$ mkdir ~/.sliver-client/extensions/chisel
$ cp extension.json ~/.sliver-client/extensions/chisel
$ make windowsdll_64
$ make windowsdll_32

Run

Reverse socks proxy (server running on attacker box)

  1. Start chisel server on attacker box.
    image
  2. Start chisel client in sliver agent.
    image

Now on port 1080 on attacker box there is a socks proxy towards internal network.

Listing chisel tasks currently running.
image

Stop chisel client in sliver agent.
image

socks proxy (server running inside sliver agent)

  1. start sliver server in sliver agent.
    image
  2. start client on attacker box.
    image

Now on port 1081 on attacker box there is a socks proxy towards internal network.

Here output of netstat on attacker box.
image

Testing

I tested only x64 version of the dll not x86.
I just tested the extension on a x64 windows 10 pro build 10.0.19044.

Import probe BOF

Can we bring in the probe BOF from CS-Situational-Awareness-BOF?
Cheers!

add powershell runner assembly to the armory

Hello I've created this PR BishopFox/sliver#966 for adding commands to the client that can execute powershell and import powershell scripts in the implant process CLR. The PR was rejected because It uses directly, as raw binary, PS.exe powershell runner taken from PoshC2 repository. I've reversed PS.exe and created a repository with the source code here: https://github.com/MrAle98/PS.

It would be possible to add PS repository to the armory? Later i can modify the PR to fetch PS from the armory instead of embedding PS.exe binary inside the sliver-client.

Main reason for the PR is the feature request requested here: BishopFox/sliver#793

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.