Skip to content

Instantly share code, notes, and snippets.

View maxrp's full-sized avatar

Max P maxrp

View GitHub Profile
@maxrp
maxrp / mrstealyogoogledriveoauth.py
Last active August 24, 2017 23:01 — forked from anonymous/mrstealyogoogledriveoauth.py
Retrieve google drive OAuth token from the Windows Registry
from winreg import ConnectRegistry, OpenKey, EnumValue, HKEY_CURRENT_USER
TARGET_KEY = r'SOFTWARE\Google\Drive'
def main():
with ConnectRegistry(None, HKEY_CURRENT_USER) as wr:
GdriveKey = OpenKey(wr, TARGET_KEY)
i = 0
while True:
try: