O'Reilly logo

Learning Metasploit Exploitation and Development by Aditya Balapure

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Writing exploits

In this part, we are going to write a small exploit for Minishare Version 1.4.1. First create a file on the desktop with any name and save it as a Python extension file. For example, we create a file named minishare.py. Next, just write the exploit code on that file. The code is shown in the following screenshot:

Writing exploits

We write the code shown in the screenshot in the minishare.py file and save it. Now we can run our exploit against our target machine, on which we have already installed the Minishare software. Open the terminal and execute the minishare.py file from the directory where the file is located. So type in ./minishare.py <target ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required