Lab 10.2.11 Hijack a Web Session [WLOs: 1, 2, 3, 4, 5] [CLOs: 1, 2, 3]
Complete this lab as follows:
- On IT-Laptop, open Terminal from the sidebar.
- At the prompt, type host office1 and press Enter to get the IP address of Office1.
- Type route and press Enter to get the gateway address.
- Use Ettercap to sniff traffic between Office1 and the gateway as follows:
- From the Favorites bar, open Ettercap.
- Maximize the window for easier viewing.
- Select Sniff > Unified sniffing.
- From the Network Interface drop-down list, select enp2s0.
- Click OK.
- Select Hosts > Scan for hosts.
- Select Hosts > Host list.
We want to target information between Office1 (192.168.0.33) and the gateway (192.168.0.5). - Under IP Address, select 192.168.0.5.
- Select Add to Target 1.
- Select 192.168.0.33.
- Select Add to Target 2.
- Initiate a man-in-the-middle attack as follows:
- Select Mitm > ARP poisoning.
- Select Sniff remote connections.
- Click OK. You are ready to capture traffic.
- On Office1, log in to the employee portal on rmksupplies.com as follows:
- From the top navigation tabs, select Floor 1 Overview.
- Under Office 1, select Office1.
- From the taskbar, open Chrome.
- Maximize the window for easier viewing.
- In the URL field, enter rmksupplies.com.
- Press Enter.
- At the bottom of the page, select Employee Portal.
- In the Username field, enter bjackson.
- In the Password field, enter $uper$ecret1.
- Click Login.
You are logged into the portal as Blake Jackson.
- On IT-Laptop, copy the session ID detected in Ettercap as follows:
- From the top navigation tabs, select Floor 1 Overview.
- Under IT Administration, select IT-Laptop.
- In the Ettercap console, find bjackson's username, password, and session cookie (.login) captured in Ettercap.
- Highlight the session ID.
- Press Ctrl + C to copy.
- On Office2, go to rmksupplies.com and use the cookie editor plug-in to inject the session ID cookie as follows:
- From the top navigation tabs, select Floor 1 Overview.
- Under Office 2, select Office2.
- From the taskbar, open Chrome.
- Maximize the window for easier viewing.
- In Chrome's URL field, enter rmksupplies.com.
- Press Enter.
- In the top right corner, select cookie to open the cookie editor.
- At the top, select the plus + sign to add a new session cookie.
- In the Name field, enter .login
- In the Value field, press Ctrl + V to paste in the session cookie you copied from Ettercap.
- Make sure rmksupplies.com is in the Domain field.
- Select the green check mark to save the cookie.
- Click outside the cookie editor to close the editor.
- At the bottom of the rkmsupplies page, select Employee Portal.
You are now on Blake Jackson's web session.
Comments
Post a Comment