Advertisement
ghost_wires

Decompile

Sep 27th, 2014
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. #!/usr/bin/env python
  2. import os
  3. from unpyc3 import decompile
  4.  
  5.  
  6. files = os.listdir()
  7.  
  8.  
  9. for f in files:
  10.     if f.endswith('.pyo'):
  11.        
  12.         #try:
  13.         d = open(f + '.py', 'w')
  14.         output = str(decompile(f))
  15.         d.write(output)
  16.         d.close()
  17.         #except:
  18.             #print('could not decompile')
  19.        
  20. print('decompile finised')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement