How to do it...

Let's perform the following steps:

  1. Clone the repository using the following command:
git clone https://github.com/0xR0/shellver.git
  1. Go to the directory and run the setup using the following command:
python setup.py -i
  1. Once installation is complete, run the tool with the -h flag to see all of the options available to us. It will show us the following output:

  1. Try to generate a reverse shell using the following command:
shellver shell
  1. It will ask us to choose the interface, as shown in the following screenshot:

  1. Type your choice and press Enter; it will then ask us the port number entering, which the tool will then generate and print commands for different types of reverse shell, as shown in the following screenshot:

  1. The tool also starts the listener on the same port for any connections that we will receive upon running the reverse shell commands printed previously:

  1. Let's look at another example of generating a Metasploit reverse shell. Type the following command:
shellver msf
  1. The tool asks us to enter the payload type we want to create. We chose Linux binaries so enter 1:

  1. Choose the interface and port number, as shown in the following screenshot:

Our payload is ready in no time.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.234.62