Reversing Google Drive and other goodies ;)
Reversing Google Drive
Download Google Drive and install it (or use 7-Zip to extract the resources from the .msi file).
googledrivesync.exefile is "fat" and looks interesting, right?
Download a special version of PyInstaller.
$ git clone https://github.com/kholia/pyinstaller.git -b AntiDrive $ cd pyinstaller
Extract stuff from
$ python utils/ArchiveExtractor.py googledrivesync.exe [+] magic found at 6125 Extracting bytecode to output/osx.pyc ... Extracting bytecode to output/common/worker.pyc Extracting bytecode to output/wx/html2.pyc Extracting bytecode to output/encodings/punycode.pyc Extracting bytecode to output/common/cloud_snapshot_diff_helper.pyc Extracting bytecode to output/windows/cacheinvalidation.pyc Extracting bytecode to output/encodings/cp1258.pyc Extracting bytecode to output/common/snapshot_sqlite.pyc Extracting bytecode to output/win32com/client/CLSIDToClass.pyc Extracting bytecode to output/encodings/latin_1.pyc Extracting bytecode to output/tokenize.pyc ... Extracting source to output/_mountzlib.py Extracting source to output/useUnicode.py Extracting source to output/versioneddll.py Extracting source to output/win32comgenpy.py Extracting source to output/main.py
De-compile the bytecode files using uncompyle2.
$ uncompyle2 output/common/worker.pyc pass
- Study the soure-code, find bugs and make Google Drive better!
- dump bytecode from memory (revive pyREtic).