SEC220_Assignment 2 (1)
SEC220_Assignment 2 (1)
Now you have all information you need to attack the Win XP. Load Metasploit on your Kali
Linux. You need to find some information about Metasploit and how to attack Win XP.
search ms08_067
Info exploit/windows/smb/ms08_067_netapi
use exploit/windows/smb/ms08_067_netapi
show options
6. Selecting and using any of the Compatible Payloads for this Exploit module
Now we can set the payload, let's say windowsàshell_reverse_tcp, by using the command
below
Q1- Why did you use payload? And why did you use shell_reverse_tcp? (5 Marks)
show options
(Take a screenshot) (10 Marks)
Q2- How can you use the net command to show all local groups in Win XP? (5 Marks)
Q3- What is HKLM, and why does Windows use it? (5 marks)
You need to transfer these files to your Windows 10 VM. You can:
SEC220 Assignment 2
copy/paste them from XP to Windows 10 VM
OR
copy/paste them to your host OS (Windows or Mac) from XP, then copy/paste to
Windows 10 VM.
Now you need to insert all XP accounts to Cain and Abel program to crack the student account's
password. Follow the instructions to do it:
Run Cain application
Click on the Cracker tab
Right-click on the cracker window and select Add to list from the menu (Or press Insert
key)
Select "Import Hashes from a SAM database."
Load transferred sam file to this window
Load transferred system to the Boot Key (HEX) box, and it will provide a Hex code.
Copy and paste this code into the Boot Key (HEX) text box.
Click on next and see all Win XP accounts with their hashes.
Use Bruteforce attack and the following Win XP password policy to crack the Student's
Password.
o You need to check the Local Security Policy to find out the Win XP password
settings. (Control Panel, Administrative Tools, Local Security Policy)
o If you set the Bruteforce settings properly, your password cracking will take 5 to
12 minutes.
o If it takes more than 12 minutes, recheck your settings.
o Take a screenshot of the result. (10 marks)
Now login to windows XP with the "student" account and do as follow to prove your work:
SEC220 Assignment 2
Use CMD or Paint to write your names on it.
Don't change the background.
Take a screenshot (10 marks)
Part 5:
Now you found the vulnerability of Windows XP. In this part, you will harden Windows XP. For
hardening, do the following steps:
1- Install Service Packs 1 and 3 to protect some vulnerabilities of Windows XP. (the service
packs are already provided in Student's account Desktop, don't download them). Take a
screenshot from System Properties. (5 marks)
2- Use a Windows firewall to block the port number that "Metasploit" used this port to
attack Windows XP. You must find the service that uses this port number (check
provided services). In windows firewall, you can find the service and disable it. Take a
screenshot that the Metasploit can't exploit, and Nmap shows the port has been closed.
(10 marks)
SEC220 Assignment 2
Note:
Late Assignments still need to be satisfactorily completed and submitted by the end of the semester
to meet SEC220’s Promotion Requirements.