6. Hack a Windows Machine with a Malicious Office Document using TheFatRat
In this practical, we will hack a Windows machine using a malicious Office document created with TheFatRat.
Step 1: Setting up TheFatRat
- Open your terminal and type in the following command to clone the TheFatRat repository:
git clone https://github.com/Screetsec/TheFatRat.git - Navigate to the TheFatRat directory using the command:
cd TheFatRat - Run the setup script with the command:
chmod +x setup.sh && ./setup.sh
Step 2: Creating a Malicious Office Document
- In the TheFatRat menu, select the option to create a malicious Office document.
- Follow the prompts to set the payload, LHOST, LPORT, and filename.
- Once the document is created, it will be saved in the TheFatRat directory.
Step 3: Delivering the Malicious Document
- Use a method of your choice to deliver the malicious document to the target Windows machine. This could be via email, file transfer, or social engineering.
- Once the target opens the document, a Meterpreter session will be created.
Step 4: Exploiting the Target Machine
- In your terminal, type
sessionsto see a list of active Meterpreter sessions. - Connect to the session corresponding to your target with the command
sessions -i ID, replacing "ID" with the session ID. - You now have control over the target machine and can execute commands, download files, and more.
Remember to use this knowledge responsibly and only for ethical hacking purposes.