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:
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 ...