Based on your description, it sounds like you've got the basics set up for TLS decryption in Wireshark (capturing packets and pointing Wireshark to an SSLKEYLOGFILE via Edit > Preferences > Protocols > TLS > (Pre)-Master-Secret log filename). However, the decryption isn't happening automatically, and you're still seeing encrypted TLS packets. This is a common issue when trying to decrypt traffic from non-browser apps like Roblox UWP, and I'll explain why, what else you need to do, and some step-by-step options to make it work. I'll also address bypassing the anticheat in the non-UWP version as an alternative.
Note: What you're trying to do involves reverse engineering network traffic, which may violate Roblox's terms of service. Proceed at your own risk—I'm providing technical guidance only. This is advanced stuff, so if you're not comfortable with tools like Frida or proxies, you may need to research further or seek help from communities like Reddit (e.g., r/ReverseEngineering or r/robloxhackers).
Why Isn't Decryption Working?
- SSLKEYLOGFILE Doesn't Work Out of the Box for Roblox: This environment variable is primarily supported by browsers (e.g., Firefox, Chrome) or apps using specific TLS libraries (like NSS or certain builds of OpenSSL) that explicitly check for it and log session keys (master secrets, client randoms, etc.). Roblox (UWP or otherwise) doesn't do this—it's a game client, not a browser, and its TLS implementation (likely based on OpenSSL, BoringSSL, or Windows Schannel) doesn't have built-in code to honor SSLKEYLOGFILE and write keys to the file. Even if the env var is set system-wide, the file will remain empty, and Wireshark can't decrypt without those keys.
- UWP Sandboxing: UWP apps run in an isolated environment. System environment variables are inherited by UWP processes (you can verify this by checking Environment.GetEnvironmentVariable in a test UWP app), but as noted, Roblox itself ignores SSLKEYLOGFILE because it doesn't support key logging.
- TLS 1.3 Complications: Roblox likely uses TLS 1.3, which has perfect forward secrecy. Wireshark can still decrypt it if you provide the keys, but without them, you're stuck.
- Auto-Decryption Expectation: Wireshark doesn't "auto-decrypt" without the keys in the log file. If the packets show as encrypted TLS, it means no keys were logged.
Simply setting the env var and capturing isn't enough—you need a way to force key extraction or intercept/decrypt the traffic another way. Below are the most viable options, starting with the easiest.
Option 1: Use a MITM Proxy for Decryption (Easier, No Wireshark Changes Needed)
Instead of relying on SSLKEYLOGFILE, use a man-in-the-middle (MITM) tool like Fiddler to decrypt the traffic directly. This works if Roblox UWP respects system proxies and doesn't enforce strict certificate pinning (which prevents MITM by validating specific server certificates). UWP apps often use system networking APIs (e.g., WinHTTP), so they may honor proxies. If pinning is in place, connections will fail—skip to Option 2.
Steps with Fiddler (Free Tool):
- Install Fiddler: Download Telerik Fiddler Classic (free) from the official site. Install it.
- Enable HTTPS Decryption:
- Open Fiddler > Tools > Options > HTTPS tab.
- Check "Capture HTTPS CONNECTs" and "Decrypt HTTPS traffic".
- Click "Actions" > "Trust Root Certificate" (install the Fiddler root CA to your system's certificate store). Accept any prompts.
- For UWP apps, also check "Ignore server certificate errors" if needed (under HTTPS > Advanced).
- Set System Proxy:
- Fiddler acts as a proxy on 127.0.0.1:8888.
- Go to Windows Settings > Network & Internet > Proxy > Manual proxy setup. Set it to 127.0.0.1 port 8888.
- Some UWP apps ignore this— if so, you may need to set the proxy via registry (search for "WinHTTP proxy settings") or use a tool like Proxifier to force all traffic through the proxy.
- Capture and Decrypt:
- Launch Roblox UWP with Fiddler running.
- Fiddler will intercept and decrypt TLS traffic, showing plaintext HTTP/HTTPS requests/responses (including bodies, headers, etc.).
- Filter for Roblox domains (e.g., roblox.com, rbxcdn.com) in Fiddler.
- If you still want Wireshark, capture the loopback interface (npcap-loopback) in Wireshark—the traffic between Roblox and Fiddler will be unencrypted HTTP.
- Test for Pinning: If connections fail (e.g., Roblox can't connect to servers), it means certificate pinning is blocking the fake cert. Disable the proxy and move to Option 2.
Pros/Cons:
- Pros: Easy, no reverse engineering. Decrypts live traffic.
- Cons: May not work if Roblox pins certs (common in games). UWP proxy support can be finicky.
If this works, you're done—no need for SSLKEYLOGFILE. If not, proceed.
Option 2: Extract TLS Keys with Frida (For Wireshark Decryption)
To force key logging, use Frida to dynamically instrument the Roblox process at runtime and hook into its TLS library to extract session keys. This writes to a log file that Wireshark can use (similar to SSLKEYLOGFILE). Since UWP has weaker anticheat (as you noted), Frida is less likely to be detected than in the regular version.
Frida works by attaching to the process and running JavaScript scripts to hook functions. You'll need to identify Roblox's TLS library (likely OpenSSL or BoringSSL— you can confirm by inspecting the process with Process Explorer or Dependency Walker for DLLs like libcrypto.dll or libssl.dll).
Prerequisites:
- Install Python and Frida:
pip install frida-tools.
- Install Frida server: Download from frida.re for Windows (x64). Extract and run
frida-server.exe (or inject it if needed).
- Know the process name: Launch Roblox UWP, then use Task Manager to find it (likely "Roblox.exe" or similar under the package name). Use PowerShell
Get-Process to confirm.
Steps:
-
Launch Roblox UWP and Attach Frida:
- Start Roblox UWP.
- In a command prompt:
frida -f <process_name> -U (e.g., frida -f Roblox.exe -U). This attaches to the running process. If it fails, use --no-pause or attach after launch.
-
Use a TLS Key Logging Script:
- Find or write a Frida script to hook TLS key generation. Here are ready-made ones (adapt for Windows):
- For OpenSSL/BoringSSL: Use something like this script from GitHub (search "frida tls key logger openssl"). Example script snippet (save as
tls-log.js):
const SSL_get_session = Module.findExportByName("libssl.dll", "SSL_get_session"); // Adjust DLL name if needed
Interceptor.attach(SSL_get_session, {
onLeave: function(retval) {
var session = new NativePointer(retval);
var master_key = session.add(0xSomeOffset); // Offsets vary; research for Roblox's version
// Log master key and client random in SSLKEYLOGFILE format
var key = master_key.readByteArray(48); // Master key is 48 bytes
console.log("MASTER KEY: " + hexdump(key));
// Write to file: Use File.writeAllBytes or append to your SSLKEYLOGFILE path
}
});
- Load the script:
frida -f <process> -l tls-log.js --no-pause.
- The script will log keys to console or a file. Format them as
CLIENT_RANDOM <random> <master_key> (Wireshark's expected format) and save to your SSLKEYLOGFILE.
-
Configure Wireshark:
- Point Wireshark to the log file as you already did.
- Capture traffic on the relevant interface (e.g., Ethernet/WiFi).
- Restart the capture or reload the file—TLS packets should now decrypt to show HTTP/2 or whatever protocol Roblox uses underneath.
-
Troubleshooting:
- If Frida can't attach: Run as admin, or use
frida-ps to list processes.
- Find exact function names/offsets: Use Ghidra or IDA Pro to disassemble Roblox's executables/DLLs (from the UWP package folder, e.g., ).
Pros/Cons:
- Pros: Directly enables Wireshark decryption. Works even with TLS 1.3.
- Cons: Advanced; requires scripting/debugging knowledge. If Roblox uses a custom TLS impl, you'll need to reverse it.
Option 3: Bypass Anticheat in Non-UWP Version for Easier Capturing
If UWP is too restrictive, switch to the regular Roblox Player (from roblox.com). The anticheat (Hyperion) detects "reverse engineering tools" like Wireshark by scanning process names, window titles, or attached debuggers. You can often bypass this without fully disabling the anticheat.
Steps to Bypass Detection:
- Rename Wireshark: The anticheat likely blacklists "wireshark.exe".
- Close Wireshark.
- Rename
C:\Program Files\Wireshark\wireshark.exe to something innocuous like networktool.exe.
- Launch it from the renamed exe. Capture as usual.
- Hide Wireshark:
- Use a tool like Process Hacker to rename the running process or hide its window.
- Or use tcpdump (command-line sniffer, part of Wireshark's Npcap):
tcpdump -i <interface> -w capture.pcap to capture, then open the .pcap in Wireshark later (after closing Roblox to avoid detection).
- Other Bypasses:
- Run Wireshark in a VM (e.g., VirtualBox) and capture from the host, but traffic might not route properly.
- Disable anticheat temporarily (advanced): Use Cheat Engine or a kernel driver to hook anticheat functions, but this risks bans and is detected easily.
- Test: Launch Roblox, start capturing, and see if it closes. If not, proceed.
Once bypassed, you still need decryption—use Option 1 (Fiddler) or Option 2 (Frida). Frida might be detected in non-UWP, so UWP is safer for that.
Additional Tips
- Verify Setup: After any method, filter Wireshark for
tls.handshake to see if decryption worked (you should see expanded details like HTTP/2 frames instead of opaque TLS).
- Legal/Ethical Note: Decrypting traffic could reveal sensitive data or enable cheating—use responsibly.
- Resources:
- Wireshark TLS docs: wiki.wireshark.org/TLS
- Frida tutorials: frida.re/docs/home/
- Communities: Stack Overflow, Reverse Engineering Stack Exchange, or Discord servers for game RE.
- If none of this works (e.g., custom TLS in Roblox blocks everything), you may need deeper RE (e.g., patching the binary to disable pinning or enable key logging), which is beyond this response.
If you provide more details (e.g., errors in Wireshark, Roblox process name, or what TLS library you think it uses), I can refine this. Good luck!