/fritap:fritap-memory-scanfrom fritap
Recovers TLS, Schannel, RC4, and Telegram MTProto session secrets by scanning a target process's heap with friTap's memory scanner. Use when hooks fail on stripped binaries, unknown TLS libraries, or crash the app.
Ships in fritap. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
-ms)Recover session secrets by scanning the target's heap for the secret-carrying
structures themselves, instead of hooking a TLS function. friTap injects a
separate agent (friTap/fritap_memscan.js) that re-scans the heap on a timer
and writes what it finds as a keylog. It works with the default (legacy) and
--modern hook paths and on every OS Frida supports.
--patterns / --offsets are not available, and the keylog stays
empty.lsass.exe, not in the app.fritap-telegram).ssh /
ipsec, which have no scan engine.fritap-android for device setup.tshark (Wireshark) on the host to verify keys.lsass.exe (an elevated shell).fritap --help
Pick the engine. With no value, -ms derives the engines from
--protocol (default tls) and the target platform, using the profile
database friTap/memory_scanning/patterns.json:
| Invocation | Engines that run |
|---|---|
-ms (protocol tls) | BoringSSL in the target; on Windows also Schannel in lsass.exe |
-ms --protocol rc4 | RC4 only |
-ms --protocol tls,rc4 | every applicable engine (Windows: BoringSSL + Schannel + RC4) |
-ms boringssl / schannel / rc4 / mtproto | only that engine, whatever --protocol says |
-ms telegram | alias for mtproto |
-ms <profile-id> | only that profile from the database |
-ms my_profiles.json | your profile file merged over the shipped one (by id) |
A value that names an existing file is a profile file; otherwise friTap looks for an engine name, then a profile id. Profile ids and the schema: references/engines-and-outputs.md.
Put the target after --. The -ms value is optional, so
fritap -ms com.app reads com.app as the profile file. Use
fritap -ms -- com.app, or put the engine or file right after -ms.
Run the scan.
fritap -ms -- com.android.chrome
fritap -m -ms -k keys.log -p out.pcap -- com.example.app
fritap -m -ms boringssl --memory-scan-interval 5 -- com.example.app
fritap -ms schannel -- some_windows_app.exe
fritap -ms -k keys.log -p out.pcap -- some_windows_app.exe
fritap -m -ms mtproto com.example.telegram
-ms alone loads only the scanner (no TLS hooks) and writes
<target>_memscan.keylog in the current directory.-k keys.log the hook agent runs too, and the scanner writes its own
file beside it: keys.memscan.log. The two never share a file.-p / -c / other capture flags it runs alongside the normal
capture. Use -f -p full.pcapng on Android to record the encrypted
traffic the keys belong to.--memory-scan-interval <seconds> sets the re-scan cadence (default
2.0, only with -ms).-nl / --no-lsass skips the lsass scan.RC4. Pick it as a protocol or as a targeted engine. The heap engine finds live S-boxes and trial-decrypts candidate keys; give it an oracle when you can:
fritap -ms --protocol rc4 -- ./rc4_app
fritap -ms --protocol tls,rc4 -k keys.log -p out.pcap -- ./app
fritap -m -ms rc4 --ms-rc4-known-plaintext 'GET /' -- com.example.app
fritap -m -ms rc4 --ms-rc4-ciphertext @sample.bin -- com.example.app
--ms-rc4-known-plaintext (hex or text): accept a key only when its
keystream reproduces this prefix. Exact, no false accepts.--ms-rc4-ciphertext (hex, text or @file): ciphertext sample used to
score trial decryptions.<memscan-stem>.rc4.keylog (RC4_KEY lines) even
without --protocol rc4. Hook-based RC4 capture without a scan is
fritap --protocol rc4 -k rc4keys.log -p out.pcap -- ./rc4_app.Collect the outputs. Next to the memory-scan keylog (<stem>):
<stem>.schannel.unpaired (Schannel), <stem>.rc4.keylog,
<stem>.mtproto.keylog, and <stem>.tls_midstream.secrets.jsonl (TLS 1.3
sockets whose handshake the pcap may miss). Files appear only when the
engine found something.
Verify against traffic. Keys are only proven when they decrypt records of the same session:
tshark -r capture.pcap -o tls.keylog_file:keys.memscan.log \
-o tls.ignore_ssl_mac_failed:FALSE -Y "http || http2"
fritap --from-pcap full.pcapng --keylog keys.memscan.log --tap out.tap
fritap --from-pcap win.pcapng --schannel-unpaired keys.memscan.schannel.unpaired --tap win.tap
fritap --from-pcap out.pcap --keylog keys.tls.log --rc4-keylog keys.rc4.log
fritap --from-pcap out.pcap --tls-midstream-secrets keys.memscan.tls_midstream.secrets.jsonl --tap out.tap
fritap --from-pcap tg.pcap --mtproto-keylog keys.memscan.mtproto.keylog --tap tg.tap
--schannel-unpaired pairs
them by trial decryption and writes a normal NSS keylog next to the
sidecar.--rc4-keylog with --keylog peels TLS first, then RC4 (nested); alone
it decrypts standalone RC4 over raw TCP.fritap-decrypt skill and
references/engines-and-outputs.md.fritap -ms com.app fails. Use --.--protocol ssh -ms, or
mtproto off Android.libtmessages build. A profile with calibrated_lib_version
logs a warning that other builds may yield nothing.EXPORTER_SECRET and TLS 1.2 CLIENT_RANDOM masters;
handshake secrets only sometimes. Short-lived connections can close
between two passes; lower the interval or keep the app busy.--ms-emit-unconfirmed writes
unconfirmed MTProto candidates too: more noise, off by default.--patterns or --scan-keys-region. --patterns
finds code to hook; --scan-keys-region is a separate generic key-scan
engine that needs -k. A memory-scan profile only works with -ms.*_memscan.keylog,
*.memscan.*, .schannel.unpaired, .rc4.keylog, .mtproto.keylog and
.tls_midstream.secrets.jsonl as secrets. Do not paste them into chat or
tickets.lsass.exe is highly sensitive: lsass holds the machine's
credentials and session keys, and attaching to it may trigger EDR or
antivirus alerts. The scan is read-only, but do it only on systems the user
owns or is engaged to test, and say so before running. Skip it with -nl.fritap-decrypt (offline decryption and tshark), fritap-custom-hooks
(patterns and offsets when you want hooks after all), fritap-telegram
(MTProto keys and decryption), fritap-android (device setup)USAGE.md (memory scan, RC4, Telegram sections), docs/api/cli.md
(-ms, --memory-scan-interval), docs/advanced/patterns.md
(memory-scan profiles), docs/advanced/offline-pcap-to-tap.md (Schannel,
MTProto, mid-stream), docs/advanced/standalone-agent.mdWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
friTap, memory-scan, tls-secrets, heap-scanning, schannel, rc4
npx claudepluginhub fkie-cad/fritap --plugin fritap10 skills in this plugin
/fritap-androidCaptures TLS session keys and decrypted traffic from Android apps with friTap on a rooted device or emulator. Covers frida-server setup and version matching over adb, finding the package name (fritap devices / fritap apps or the list_devices / list_apps agent tools), spawn versus attach, keylog (-k), plaintext pcap (-p) and full capture (-f), anti-root hooks (-ar), PairIP-protected apps (--pairip-safe), stripped Flutter / Cronet / BoringSSL libraries, verifying the keylog and pcap, and the common failures (frida-server not running, version mismatch, SELinux, script-load timeouts, app crashes, empty keylogs). Use when asked to "intercept TLS on Android", "capture traffic of an Android app", "get TLS keys from an APK", "bypass certificate pinning to see app traffic", "run friTap on the emulator", "friTap over adb", or "frida-server is not working with friTap"./fritap-captureRuns a live friTap capture of an app or process (Android, iOS, Linux, Windows, macOS) through the friTap agent API and reads the decrypted traffic in token-budgeted pieces. Covers device and app discovery, protocol selection, start/status/phase/stop of a capture session, the digest, endpoints, findings, single flows and HAR/Markdown/keylog export, plus the server permission flags, token budgets and error model of fritap q, fritap mcp and fritap serve. Use when asked to "capture app traffic", "what does this app send", "sniff/decrypt the TLS traffic of an app", "hook the TLS library", "which hosts does this app contact", "summarize a .tap capture", or "export the capture as HAR"./fritap-custom-hooksRecovers TLS keys with friTap when the default hooks find nothing. Covers diagnosing the run (debug output -do / --debug-log, --list-libraries, --probe, --library-scan), byte-pattern hooking of stripped or statically linked TLS libraries (Flutter libflutter.so, Cronet, statically linked BoringSSL) with --patterns, the pattern JSON schemas, generating patterns with BoringSecretHunter, --force-scan, custom offsets (--offsets), custom Frida scripts (-c / --custom_script), friTap plugins (FriTapPlugin / ScriptPlugin), custom ciphers (--protocol custom, the custom_cipher category), the standalone fritap_agent.js, and verifying the resulting keylog. Use when the user reports "no keys captured", "empty keylog", "friTap finds no SSL library", "Flutter app", "byte pattern", "stripped library", "statically linked BoringSSL", "custom offsets", "custom Frida script", "custom encryption", "friTap plugin", or wants to hook a TLS function friTap does not resolve by symbol./fritap-decryptTurns friTap output into readable traffic and analysis without a live device. Covers decrypting a pcap with a friTap NSS keylog (-k) in tshark or Wireshark and proving that decryption worked, the -p plaintext pcap versus the -f full capture, pcapng with embedded keys, the live Wireshark named pipe, converting pcap plus keylog into a .tap with fritap --from-pcap, fritap analyze and fritap report (digest, --flow drill-down), TUI replay, and the agent read tools (get_digest, get_flow, list_endpoints, export) on an existing .tap. Explains why decryption fails (missing TLS 1.3 secrets, QUIC, keys from connections that started before the capture, mismatched pcap and keylog). Use when asked to "decrypt pcap", "use the keylog", "load the SSLKEYLOGFILE", "open it in Wireshark", "decrypt with tshark", "why is my pcap still encrypted", "offline analysis", "convert pcap to .tap" or "analyze this .tap"./fritap-leak-proofProves with friTap captures that a known value (email, phone, advertising id, Android id, IMEI, IP, GPS coordinate or any string) leaves the device, including URL, base64, hex and md5/sha1/sha256 encoded forms, using the find_values agent tool; and compares two phases of one capture or two separate captures with the diff tool to show which endpoints appeared, disappeared or changed. Use when asked to "prove this app leaks my email", "is the advertising id sent to third parties", "does the app send my location", "what starts being sent after consent", "compare before and after login", "diff two app versions", or "what changed between these captures"./fritap-privacy-auditRuns a phase-by-phase privacy audit of a mobile or desktop app with friTap - captures its decrypted TLS (and other protocol) traffic, then reports what personal data the app sends, to which first- and third-party hosts (analytics, advertising, crash reporting), and in which phase (launch, before or after consent, login, idle). Produces PII findings, a per-host destination map, get_flow evidence and a Markdown report. Use when the user asks for a "privacy audit", "what personal data does this app send", "does this app track me", "GDPR" or "CCPA" compliance evidence, "tracking" or "third-party trackers", "data sent before consent", or "which SDKs phone home".Other plugins' skills for the same job