Code Monkey home page Code Monkey logo

xshell's Introduction

xShell


A simple concurrent http shell


About

  • Commands are executed by workers
  • Workers are goroutines that simply execute the commands
  • All workers are indexed in a worker map
  • Workers are dynamically allocated based on workload
  • Beacon workers are responsible for callbacks

Usage

Change listener port:

In c2/c2.go:

var Port string = "" // change port here
var Key string = "" // set encryption key here (must match key in payload)

Start listener:

go run c2/c2.go

If listening on a protected port (any port under 1024) use sudo:

sudo go run c2/c2.go

Listener commands:

shells - list all active shells
shell <shell_name> - interact with specifc shell
mexec <command> - executes command on all shells
clear - clears console
quit - shuts down C2
exit - return to main menu (shell continues to run)

Set call back host:

In payload/xShell.go:

var KeyStr string = "" // must be 16, 24, 32 bytes
var C2Host string = "" // set C2 host ip or hostname (must start with https://)

Build shell:

GOOS=windows GOARCH=amd64 go build -ldflags "-H 'windowsgui' -w -s" -o xShell.exe payload/xShell.go # for Windows 64bit amd64
GOOS=darwin GOARCH=amd64 go build -ldflags "-w -s" -o xShellosx payload/xShell.go # for macOS 64bit amd64

License

Attribution-NonCommercial-NoDerivatives 4.0 International (CC BY-NC-ND 4.0)

xshell's People

Contributors

coremedic avatar

Stargazers

 avatar Rachel Walker avatar Will avatar ekis avatar Real Cryptc avatar  avatar  avatar

Watchers

 avatar  avatar

xshell's Issues

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.