Data/Python
2018. 9. 27.
[Python] python 모듈 PEFile사용해서 API 목록 가져오기
1234567891011121314151617181920import pefilefrom collections import defaultdict get_api = defaultdict(lambda: defaultdict) for index, i in enumerate(filelist): print(index, i) pe = pefile.PE(i) pe.parse_data_directories() #record every file API list try: for entry in pe.DIRECTORY_ENTRY_IMPORT: for imp in entry.imports: try: print('\t', hex(imp.address), imp.name) except: pass except: passColored..