GithubHelp home page GithubHelp logo

ykankaya / socat-shell Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cornerpirate/socat-shell

0.0 1.0 0.0 666 KB

Socat can be used to establish a reverse shell with bash tab completion and full shell functionality

License: Other

Shell 100.00%

socat-shell's Introduction

socat-shell

When you get a shell on a linux server you get a really limited level of interactivity. You can use socat to establish a fully interactive shell which allows:

  • Tab autocompletion
  • Job management by CTRL+C and CTRL+Z etc
  • Bash history via CTRL+R etc. Basically you get bash as if you are SSHed into the target.

In order to get this goodness you need to:

    1. Already have a shell on the victim
    1. Have a means of uploading files to the victim
    1. Have an established means of communicating to your listener (using TCP). This tool is not going to find any vulnerbilities for you, or confirm egress filtering. This will only be useful in elevating your existing shell to a more functional one.

The victim must either have "socat" installed, or both "gcc" and "make" so that compilation is possible.

Your listener server must have "socat" installed (by default on Kali).

Upload the socat.tar file to your victim, and use your existing shell access to extract that. By executing "socat-shell.sh" you will achieve the following:

    1. Check for the existence of the "socat" binary in the current directory.
    1. If it does not find that then it will check for "gcc" and "make".
    1. If those pre-reqs are met, then it will extract the socat source and compile it
    1. When successful the binary for "socat" will now exist in the current directory. Additionally, the last lines of output will show how to start your listener and how to execute the connection back from the victim.

Dislaimer

For research purposes only, do not use this on any target which you do not have permission to do so.

socat-shell's People

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.