This is the second in a two-part series that walks you through the Try Hack Me (THM) room called "Session Management."
This room is a premium room, which means you must pay to be able to get into it and go through the room exercises.
Here's a quick little BASH script you can create to help clean up those pesky tuns that show up when you're done using OpenVPN:
------------------------------------------------------------------------------------------------------------------
#!/bin/bash
sudo pkill openvpn
for i in $(ip link | grep tun | cut -d: -f2 | tr -d ' '); do
sudo ip link delete $i
done
sudo systemctl restart NetworkManager
------------------------
Save it as cleanup_tun.sh, make it executable:
chmod +x cleanup_tun.sh
Then run:
./cleanup_tun.sh
-------------------------------------------------------------------------------------------------------------------
An annual membership in THM is well worth your money. I think the lessons are top-notch, and I like the fact that you can learn new skills and practice them, which, I think you'd agree, is pretty tough to do if you're reading a textbook.
00:00 Introduction
00:49 Intro
01:50 THM Session Management
02:58 Getting Kali Linux Ready
03:39 Kill Any Open Tunnels
05:22 THM Task 6 Overview
06:25 Updating Kali Linux Hosts File
09:28 Beginning THM Task 6
11:43 Browser Inspector Window
12:49 Determining Kali THM Cookie
13:44 Task 6 Instructions - Part 1
14:49 Checking for Cookie in Kali THM
15:47 THM Instructions - Part 2
16:41 Marker 13
18:36 THM - Further Detail & Instructions
19:14 THM Instrutions - Remove Cookie
19:52 Removing Cookie in Kali THM
20:37 Back in THM - What Happened to Modules?
22:41 Change User Role Student to Lecturer
22:55 Modifying Kali THM Local Storage
23:41 THM Instructions - Part 4
24:21 Changing User Value from 2 to 3
24:53 THM Instructions - Part 5
26:36 Kali THM - Find User with Name 'X'
27:03 THM Instructions - Part 6
27:18 Back in KALI THM
27:36 THM Instructions - Part 7
28:46 Session Recap