Skip to content

TokenLook ‐ TokenExtract

vrikodar edited this page Jun 22, 2026 · 10 revisions

Introduction

Extraction from Outlook app memory (No Exfiltration)

extract_noexfil.cs

  • This version of the program is a simple extractor, that works in following steps:
    • The program first looks for ProcessDump.exe in the current directory
    • Once the Process Dump binary is found, the program looks for PID of the running Outlook APP
    • During testing it was found that Outlook APP on windows can run as either OUTLOOK.exe or otlk.exe
    • Hence the program falls back to otlk.exe if OUTLOOK.exe is not found
    • Once the process ID is found, the program executes ProcessDump against the outlook process ID to create a full memory dump
    • The memory is saved to the current user's APPDATA directory.
    • The memory dump is then parsed chunk by chunk, to extract human readable strings and saved to a TXT file locally.
    • JWT tokens can be extracted from the TXT file by searching for a pattern eyJ0

Verifying Extracted tokens

Example run

Image Description

RubberDucky for Outlook memory dump exfiltration (Physical access to device)

Clone this wiki locally