Code Monkey home page Code Monkey logo

shellerator's Introduction

Shellerator

Shellerator is a simple command-line tool aimed to help pentesters quickly generate one-liner reverse/bind shells in multiple languages (Bash, Powershell, Java, Python...). Another similar project for the generation of one-line file downloading commands is based on this code Uberfile

This project is installed by default in the pentesting OS Exegol

Example (with menus)

Install

The install is pretty simple, just clone this git and install the requirements.

git clone https://github.com/ShutdownRepo/shellerator
cd shellerator
python3 setup.py install --user

Usage

Usage is dead simple too.

usage: shellerator.py [-h] [-b | -r] [-t TYPE] [-p LPORT] [-i LHOST]

Generate a bind/reverse shell

optional arguments:
  -h, --help              show this help message and exit
  -l, --list            Print all the types of shells shellerator can generate
  -b, --bind-shell        Generate a bind shell (you connect to the target)
  -r, --reverse-shell     Generate a reverse shell (the target connects to you)(Default)

Bind shell options:
  -t TYPE, --type TYPE    Type of the shell to generate (Bash, Powershell, Java...)
  -p LPORT, --port LPORT  Listener Port

Reverse shell options:
  -t TYPE, --type TYPE    Type of the shell to generate (Bash, Powershell, Java...)
  -i LHOST, --ip LHOST    Listener IP address
  -p LPORT, --port LPORT  Listener Port

If required options are not set, the tool will start in TUI (Terminal User Interface) with pretty menus but CLI works like a charm too.

Example (without menus)

To-Do List

Things to add

Here are some things to add that I have in mind, I'll work on that asap

  • Add bindshells
  • Add encrypted shells and separate them from bind/rev ?
  • Add webshells
  • Add some kind of option to help user get info on how to improve shell/tty (rlwrap, stty, ConPty (cf. PayloadsAllTheThings))

Sources & credits

This project is inspired by Print-My-Shell. Some commands come from the following links

shellerator's People

Contributors

brazier85 avatar shutdownrepo 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

shellerator's Issues

Not fully working shell after printing commands.

Hello,

After printing the needed commands, my terminal is not fully working. When I type something, it's not printed (but if I hit enter, it's executed, and if I hit enter multiple times, my PS1 is printed after the previous one directly, not under).

Screenshot_2020-07-03_18-45-16

Same issue if I enter the complete command (--reverse-shell etc)


System

Linux blackarch 5.7.6-arch1-1 #1 SMP PREEMPT Thu, 25 Jun 2020 00:14:47 +0000 x86_64 GNU/Linux


Applications

  • local/python-simple-term-menu 0.6.1-1
  • local/python-colorama 0.4.3-1
  • local/python-argparse
  • local/python-console-menu-git v0.6.0.r13.g9378508-1
  • local/python-psutil 5.7.0-1
  • Python 3.8.3

Thanks for your time :)

Feature request: Add dmenu & clipboard support

First of all, I love this idea!

I'd love to be able to press a keyboard shortcut and have a rofi / dmenu appear with a dropdown (auto selecting my port (port 8080 / preference / new available port) and my IP from my chosen network device (eth0, tun0?), and then copy the first result to my clipboard.

Imagine that.

Ctrl+shift+0

Dmenu window pops up, fuzzy search type your payload "python", enter, payload is sent to clipboard to paste in and pop that shell.

Feel free to close this, I may end up making my own, but if you hadn't thought of it - that's my take :P

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.