Giter VIP home page Giter VIP logo

kittystager's Introduction

KittyStager

KittyStager is a stage 0 C2 comprising an API, client, and malware. The API is responsible for delivering basic tasks and shellcode to be injected into memory by the malware. The client also connects to the API and allows for interaction with the malware by creating tasks. The goal of KittyStager is to deploy a simple stage 0 payload onto the target system and gather enough information to adapt the payload to the specific target. As the stage 0 payload is intended to be as stealthy as possible, it does not include any command execution capabilities.

This project is made for educational purpose only. I am not responsible for any damage caused by this project.

Features

  • A simple cli to interact with the implant
  • API :
    • A web server to host your kittens
    • HTTPS
    • Yours files in /upload are available on /upload
  • Reconnaissance :
    • Hostname, domain, pid, ip...
    • AV or EDR solution with wmi
    • Process list
  • Encryption :
    • Key exchange with Opaque
    • Chacha20 encryption
  • Malware capabilities :
    • Create thread injection
    • Bananaphone (Hell's gate variant)
    • Halo's gate
    • ETW patching
    • Sleep with jitter
    • Remove of the binary from disk
  • Sandbox :
    • Check ram
    • Check a none existing website
  • Payload :
    • Raw shellcode
    • Hex shellcode
  • Build :
    • Generate the kitten from the config file
    • Compile the kitten with go & garble
    • Sign the kitten with a copied certificate
    • Generate description

Some settings can be changed in the config file

Quick start

1. Clone repository

git clone https://github.com/Enelg52/KittyStager.git
cd KittyStager 

2. Config file

Edit the config file :

  • Check the ip/port
  • HTTPS/HTTP
  • Sleep time

HTTPS

How to generate certificate for https with openssl

$ openssl req  -new  -newkey rsa:2048  -nodes  -keyout localhost.key  -out localhost.csr
$ openssl  x509  -req  -days 365  -in localhost.csr  -signkey localhost.key  -out localhost.crt

3. Build

Build the server :

cd server
go build

Build the client

cd client
go build

The server need to be running

cd kitten/basicKitten
env GOOS=windows GOARCH=amd64 go build -o basicKitten.exe

Then start the server, the client and run the kitten on the target.

Usage

start server

 ./server -h
Usage of server:
  -p string
        Path to the config file (default "config.yaml")

The client will connect to 127.0.0.1:1337. If your not on the server, you will need to use an ssh tunnel.

./client

List kittens

img.png

Get logs

img_1.png

Print config

img_2.png

Interact with a kitten

img.png

Get tasks

img_3.png

Inject shellcode

img_5.png

Change sleep time

img_6.png

Get process list

img_7.png

Get AV/EDR with wmi

img_8.png

Get privileges & integrity level

img_9.png

Get kitten infos

img_10.png

Kill kitten

img_11.png

Remove kitten from disk

img.png

Custom kitten

You can customise the kitten code from the config file.

# Malware
# Injection methode : createThread, banana, halo
injection: createThread
# Output : dll, exe
execType: exe
# Obfuscation : true, false
obfuscation: false

Compilation and obfuscation part, is not implemented yet. img.png Compile exe :

cd output
env GOOS=windows GOARCH=amd64 go build -o kitten.exe

Compile dll :

cd output
env GOOS=windows GOARCH=amd64 go build -o kitten.dll -buildmode=c-shared kitten.go

Architecture

The projet is divided in 3 parts :

The crypto part, kitten, config, tasks struct are in internal.

Contributing

Pull requests are welcome. Feel free to open an issue if you want to add other features.

Contact

Enelg#9993 on discord

Credits

kittystager's People

Contributors

enelg52 avatar neo23x0 avatar dependabot[bot] 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.