Lab Assignment 5
Lab Assignment 5
Overview:
Operating Systems keep the passwords as Hash Code. Some applications like Cain and Abel can
crack the passwords as long as the program finds the hash codes. In this Assignment, we use
penetration tools to break to Windows XP in our labs.
Answers to the questions must be your own words. Don’t copy from other sources.
Objective:
This assignment is a group assignment however, all members must submit it separately). You
need to use your Kali Linux, Windows 10, and Windows XP. Make sure all the VMs’ network
adapter set with Host Only.
You don't have any information about Windows XP. We try to gather information from Windows
XP and attack it via Metasploit using Kali Linux tools. By creating an account and setting it as an
“Administrator” member, you can login to Windows XP with your account. You don't want to
change any account's password, so you want to crack the passwords.
Transfer Sam and System files to your Windows 10 and use Cain and Abel to crack the
passwords.
Now you have all information you need to attack Windows XP.
Load Metasploit on your Kali Linux. You need to find some information about how to attack
Windows XP using Metasploit frame work:
search ms08–067
2. Find more information about the module
Now in order to gather detailed information about the available Metasploit module for the
ms08–067 vulnerability, we will enter the following command in the Kali Linux terminal
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?
show options
(Take a screenshot)
We don't have any access to Windows XP. By using Metasploit, you have access to the Win XP
now. We need to create an account and add this account as a member of the administrators'
group. Use Windows "net" command to add this account. (search for the command and find
how to use it) (Take a screenshot)
Now, you have a username and Password to login to Windows XP.
Q2- How can you use the net command to show all local groups in Win XP?
You need to transfer these files to your Windows 10 VM. You can:
• copy/paste them from Windows 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 the HEX code that you get and paste it into the text box of Boot Key (HEX).
• 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 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.
Now login to the windows XP with student account and do as follow for proving your work:
• Use CMD or Paint to write your names on it.
• Don't change the background.
• Take a screenshot