GithubHelp home page GithubHelp logo

lukedschenk / go-backdoors Goto Github PK

View Code? Open in Web Editor NEW
31.0 5.0 10.0 17 KB

Simple reverse and bind shells written in Go.

License: MIT License

Go 100.00%
go golang google pentesting penetration-testing tcp sockets socket-programming netcat reverse-shell

go-backdoors's Introduction

go-backdoors

Simple reverse and bind shells written in Go. In order to use these backdoors, you will need to have Go installed on your machine. Notice that these shells are set up to use listeners on port 4444 by default. Feel free to change the ports used in the code to suit your needs, but be sure to adjust your Netcat connections accordingly.

Bind Shell

To use this bind shell, first compile it by running:

go build bindshell.go

This will create an executable file called bindshell. Copy this file onto the target unix machine, and give it the necessary permissions:

chmod +x ./bindshell

Finally, run it from whatever directory it is placed in with:

./bindshell

This will start the bind shell listening on port 4444. To connect to it, I recommend using Netcat:

nc <target-ip> 4444

Once you have completed this, you should be presented with a basic bash shell!

Reverse Shell

To use the reverse shell, you will follow many of the same steps as before. First compile the code with:

go build revshell.go

Next, copy the created executable file revshell to the target machine, and give it exec permissions:

chmod +x ./revshell

This time, we will start a listener on our own machine in order to receive a connection from the target machine. I recommend using Netcat for this as well:

nc -lv 4444

Now whenever the reverse shell is run from the target machine, you will receive a connection to your listening port on your local machine and be granted a bash shell!

Note: This project is for educational purposes only. I do not expect it to be perfect. If you do have any questions about it please feel free to ask. You can reach me through github (I think?) or just send me an email at [email protected]

go-backdoors's People

Contributors

lukedschenk 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

Watchers

 avatar  avatar  avatar  avatar  avatar

go-backdoors's Issues

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.