Authorized Samba CVE-2017-7494 security assessment with defensive SSH configuration audit and automated tests.
An authorized penetration-testing lab documenting the exploitation of a vulnerable Samba service (CVE-2017-7494), validation of root-level access, SSH authentication changes, controlled account-file transfer, password recovery testing, and post-assessment cleanup using Kali Linux.
Tools: Metasploit Framework · Kali Linux · SSH · Netcat · John the Ripper
Lab report: View the 16-page redacted PDF
| Item | Details |
|---|---|
| Assessment focus | Samba vulnerability CVE-2017-7494, post-exploitation exposure, credential hygiene |
| Environment | Kali Linux and a deliberately vulnerable Linux/Samba lab target |
| Tools used in the documented exercise | Metasploit Framework, SSH, Netcat, John the Ripper |
| Outcome documented | A command shell and root privileges; authorized SSH access testing; test-account password recovery; cleanup |
All 26 screenshots from the authorized Lab 1 report are shown below, in chronological order. Sensitive password and account-data regions are redacted.
01. CVE-2017-7494 research and Kali lab environment

02. Metasploit database initialization and console launch

03. Identification of the Samba is_known_pipename module

04. Exploit configuration for the authorized lab target

05. Command-shell session established

06. Root identity verified from the shell

07. Inspection of SSH server configuration

08. Password-authentication configuration review

09. SSH daemon directive inspection

10. Review of SSH service options and included configuration
10 — Review of SSH service options and included configuration
11. Preparing a lab-only SSH configuration override
11 — Preparing a lab-only SSH configuration override
12. Temporary HTTP server for configuration transfer
12 — Temporary HTTP server for configuration transfer
13. Applying lab SSH configuration and restarting SSH
13 — Applying lab SSH configuration and restarting SSH
14. Temporary lab account creation and privilege assignment
14 — Temporary lab account creation and privilege assignment
15. Successful SSH authentication for the test account
15 — Successful SSH authentication for the test account
16. Sudo privilege testing through the SSH session
16 — Sudo privilege testing through the SSH session
17. Authorized copies of account data
17 — Authorized copies of account data
18. Controlled transfer of account files to Kali
18 — Controlled transfer of account files to Kali
19. Preparation of combined test password hashes
19 — Preparation of combined test password hashes
20. John the Ripper password-strength assessment
20 — John the Ripper password-strength assessment
21. Verified password recovery results with sensitive values redacted
21 — Verified password recovery results with sensitive values redacted
22. Recovered test-account SSH login
22 — Recovered test-account SSH login
23. Recovered account privilege and identity validation
23 — Recovered account privilege and identity validation
24. Follow-up SSH and administrative test
24 — Follow-up SSH and administrative test
25. Controlled Netcat reverse-shell validation
25 — Controlled Netcat reverse-shell validation
26. Post-test cleanup and restoration
26 — Post-test cleanup and restoration