Skip to content

Instantly share code, notes, and snippets.

View dennisleexyz's full-sized avatar

Dennis Lee dennisleexyz

View GitHub Profile
@dennisleexyz
dennisleexyz / canvapi.py
Last active January 8, 2023 16:46
Extract Canvas LMS API token from Android app data
#!/usr/bin/python3
import json
from parsel import Selector
map = {
'canvas-kit-sp.xml': {
'css': 'map > string[name=accessToken]::text',
'xpath': '//map/string[@name="accessToken"]/text()',