jec2

module
v0.0.0-...-3a30977 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2022 License: BSD-3-Clause

README

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.

Directories

Path Synopsis
cmd
internal/common
Package common contains code and data common to both the server and implant.
Package common contains code and data common to both the server and implant.
jeimplant
Program JEImplant is the implant side of JEC2.
Program JEImplant is the implant side of JEC2.
jeserver
Program jec2 is Just Enough C2.
Program jec2 is Just Enough C2.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL