import os, struct, sys, collections def needed(path): try: d=open(path,'rb').read() except Exception: return None if d[:4]!=b'\x7fELF' or len(d)<52: return None try: sh=struct.unpack('