Just Enough C2 - A simple but effective server and implant

Related tags

Network go ssh hacking rat c2
Overview

Just Enough C2

An opinionated C2 server and implant which does Just Enough to be effective.

Meant primarily for small teams operating on small numbers of targets mostly in Linux (Cloud, DevOps, etc) environments without too much fear of detection.

Under the hood, it's all just SSH with extra steps.

For legal use only.

Documentation

Docs live in the doc/ directory. They're a work in progress.

Features

  • Single binaries for client and server
  • All comms end-to-end encrypted over SSH, optionally TLS-wrapped
  • Upload/download/pasteboard copy (optionally using iTerm2 magic)
  • Shell command execution
  • Subprocess execution
  • Server-side logging
  • Forward/Reverse TCP tunnels
  • Somewhat broken built-in WebDAV server
  • Easyish build and setup

Quickstart

  1. Have git and the Go compiler (1.18+)
  2. Work out the server's extrnal address or something which points at port 10222 on the server
  3. Get the source: git clone https://github.com/magisterquis/jec2.git
  4. Set everything up the easy way: cd jec2 && ./quickstart.sh ssh://$(curl -s icanhazip.com):10022
  5. Optionally watch server logs: tail -f $HOME/jec2/log
  6. Optionally tweak $HOME/jec2/conf.json and pkill -HUP jeserver (recommendation: add ~/.ssh/id_something.pub as an Operator key)
  7. Run an implant from $HOME/jec2/implants on a target somewhere
  8. List connected implants: ssh -i $HOME/jec2/id_ed25519_operator -p 10022 127.0.0.1 list
  9. Use the newest implant: ssh -i $HOME/jec2/id_ed25519_operator -J 127.0.0.1:10022 latest

Please see the quickstart docs for more details.

You might also like...
Tscert - Minimal package for just the HTTPS cert fetching part of the Tailscale client API

tscert This is a stripped down version of the tailscale.com/client/tailscale Go

A quick and dirty but useful tool to download each text/html page from the wayback machine for a specific domain and search for keywords within the saved content

wayback-keyword-search A quick and dirty but useful tool to download each text/html page from the wayback machine for a specific domain and search for

Remake of the original sqlifinder but in GOlang, and allows for listed targets, domain crawling, and tor connections
Remake of the original sqlifinder but in GOlang, and allows for listed targets, domain crawling, and tor connections

_______ _____ _____ _______ _____ __ _ ______ _______ ______ |______ | __| | | |______ | | \ | | \ |______ |_____/

Jezziki-webapp - Discontinued but finished web app utilizing a golang backend and reactjs frontend

jezziki-webapp discontinued but finished web app utilizing a golang backend and

Broadcast-server - A simple Go server that broadcasts any data/stream

broadcast A simple Go server that broadcasts any data/stream usage data You can

An imageboard, but images are stored in a peer-to-peer network
An imageboard, but images are stored in a peer-to-peer network

Interplanetary File Dumpster An imageboard, but images are stored in a peer-to-peer network Features: Easy file sharing without registration and SMS.

A suite of gRPC debugging tools. Like Fiddler/Charles but for gRPC.

grpc-tools A suite of tools for gRPC debugging and development. Like Fiddler/Charles but for gRPC! The main tool is grpc-dump which transparently inte

A zero cost, faster multi-language  bidirectional microservices framework in Go, like alibaba Dubbo, but with more features, Scale easily. Try it. Test it. If you feel it's better, use it! ๐‰๐š๐ฏ๐šๆœ‰๐๐ฎ๐›๐›๐จ, ๐†๐จ๐ฅ๐š๐ง๐ ๆœ‰๐ซ๐ฉ๐œ๐ฑ!
Yet another TCP Port Scanner, but lightning faster.

Fast TCP Port Scanner A highly concurrent TCP port scanner. Run Tests with Code Coverage (Linux) go test -cover Compile (Linux) go build -v -o fglps R

Owner
Stuart
Recreational codemonkey. Usually on libera as stuart. Red teamer.
Stuart
This is a golang C2 + Implant that communicates via Protocol Buffers (aka. protobufs).

Br4vo6ix DISCLAIMER: This tool is for educational, competition, and training purposes only. I am in no way responsible for any abuse of this tool This

RITSEC Redteam 4 Nov 9, 2022
one simple git ssh server (just for learning git over ssh )

wriet one simple git ssh server use golang write one simple git ssh server how to running starting service docker-compose up -d add authorized_keys i

rong fengliang 2 Mar 5, 2022
Simple and lightweight SSH git hosting with just a directory.

go-gitdir This project makes it incredibly easy to host a secure git server with a config that can be easily rolled back. It aims to solve a number of

Kaleb Elwert 180 Dec 20, 2022
WebDAV server for SSH. Similar to sshfs but does not require proprietary MacFUSE on macOS

sshwebdav: WebDAV server for SSH sshwebdav provides a WebDAV server for a remote SSH host. sshwebdav is similar to sshfs but does not require propriet

Linux Machines 22 Nov 9, 2022
llb - It's a very simple but quick backend for proxy servers. Can be useful for fast redirection to predefined domain with zero memory allocation and fast response.

llb What the f--k it is? It's a very simple but quick backend for proxy servers. You can setup redirect to your main domain or just show HTTP/1.1 404

Kirill Danshin 13 Sep 27, 2022
Just another "what is my IP address" service, including geolocation and headers information

What is my IP address What is my IP address Features Endpoints Build Usage Examples Run a default TCP server Run a TLS (HTTP/2) server only Run a defa

dcarrillo 12 Nov 21, 2022
GBPool-- a simple but useful golang free proxy pool

GBPool-- a simple but useful golang free proxy pool Intro(English) (ไธญๆ–‡) GBPool, golang baipiao proxy pool, a free & simple golang proxy pool module, g

null 3 May 30, 2022
๐Ÿ™ŒIt ๐Ÿ‘just ๐Ÿ‘Œnot โ˜works

fuck-signal-tls-proxy Why Deliver something [3] not work at all is more rude than dirty word. In short, everything is designed to blend into the backg

Student Main 100 May 29, 2021
Just saying hi to Go !

Learning new programming language Hello, I've been thinking about learning new language to see the software world with a different eye except C# and f

Trแบงn Xuรขn Viแป‡t 0 Nov 26, 2021
idk, i'm just passed the function test case :D

Challenge Create an API that crawl links from given URL using GoLang or NodeJS. You can use any framework or libraries but your program should be can

null 0 Dec 23, 2021