Wireshark Traffic Analysis: Encrypted Protocol Analysis: Decrypting HTTPS

Wireshark Traffic Analysis: Encrypted Protocol Analysis: Decrypting HTTPS

in

Wireshark Traffic Analysis: Encrypted Protocol Analysis: Decrypting HTTPS

Unlocking Encrypted Traffic - From TLS Handshake to Decrypted HTTP/2 Data

Task 8 — Encrypted Protocol Analysis: Decrypting HTTPS

Introduction

In this TryHackMe write-up, we analyze encrypted HTTPS traffic and walk through the process of decrypting TLS communications using Wireshark. The challenge focuses on identifying key handshake packets, decrypting HTTP/2 traffic with a key log file, and extracting hidden data from captured network traffic.


Question 1:

What is the frame number of the “Client Hello” message sent to “accounts.google.com”?

Process:
(http.request or tls.handshake.type == 1) and !(ssdp)
Then I went to Edit → Find Packet and searched for accounts.google.

1_E_b5t0YzjlN9yZL7JtPK_w.jpg

Answer: 16


Question 2:

Decrypt the traffic with the “KeysLogFile.txt” file. What is the number of HTTP2 packets?

Process:
I applied the KeysLogFile and filtered the traffic using http2.

1_Wwo6fifRnY6UN37c2LneOg.jpg

1_0flS_H3H8-6Ohb6dUgBPWA.jpg

1_r3Ceu4JQnB8IkkRYfSarkg.jpg

Answer: 115


Question 3:

Go to Frame 322. What is the authority header of the HTTP2 packet? (Enter the address in defanged format.)

Process:
I navigated to the specified packet number and looked for the authority header under HyperText Transfer Protocol 2.

1_dnCr4oGfnZWfyKXp6hjmaQ.jpg

031.png

1_AhX4isEBLZG3rujp-uIlbg.jpg

Answer: safebrowsing[.]googleapis[.]com


Question 4:

Investigate the decrypted packets and find the flag! What is the flag?

Process:
The provided tip to find the flag among all packets was: “You can export objects after decrypting the traffic.”
Based on this hint, I followed the standard process to export files involved in a transfer from the .pcap file.

I navigated to File → Export Objects → HTTP…, selected the file containing text, and saved it.
After opening the exported file, I found the answer written inside.

1_AD0YAMTzUAhWeFM4op3pdA.jpg

1_n5Wi0WVntbaUVO7N6skUVw.jpg

1_mddoVkBo8-afrYL7dbfW9g.jpg

Answer: THM-PACKETMASTER


Conclusion

This room provides a solid introduction to HTTPS traffic analysis and TLS decryption using Wireshark. By applying key log files, filtering protocols, and exporting decrypted objects, we can effectively inspect encrypted communications and uncover hidden information within network captures.