How to extract Python source code from Py2App packed Mach-O Binaries

Photo by Raul Cacho Oses on Unsplash

Step 1

hdiutil mount electrum-4.0.9.dmg

Step 2

Electrum/Electrum.app/Content/MacOS/run_electrum

step 3

Step 4

grep -Rni --color "run_electrum" *

Step 5

Step 6

420D0D0A 00000000 00000000 00000000

Step 6 : bonus

twitter at @lordx64