cylance / winapi-deobfuscation

Towards Generic Deobfuscation of Windows API Calls
GNU Lesser General Public License v3.0
50 stars 15 forks source link

Hi there is error when execute process-exe.py #1

Open KimSangpil opened 6 years ago

KimSangpil commented 6 years ago

when I execute process-exe.py with command

python process-exe.py <some_pe_file_path> database

process ended with error


File "process-exe.py", line 112, in main() File "process-exe.py", line 109, in main analyze(args.pe, args.database) File "process-exe.py", line 43, in analyze cfg.build_graph() File "/home2/sangpil/dev/winapi-deobfuscation/data_collection/winapi_deobf/analysis.py", line 266, in build_graph for node, degree in self.cfg.degree(self.cfg.nodes()).iteritems(): AttributeError: 'DiDegreeView' object has no attribute 'iteritems'


the error occured in 263 line of data_collection/winapi_deobf/analysis.py

for node, degree in self.cfg.degree(self.cfg.nodes()).iteritems():

the sample data generated for self.cfg.degree(self.cfg.nodes()) is like this

[(5368713216, 2), (5368713313, 3), (5368713322, 3), (5368713264, 3), (5368713329, 2), (5368713331, 2), (5368713290, 3), (5368713311, 2)]

Any comments are welcome. Thanks

KimSangpil commented 6 years ago

does 'self.cfg.degree(self.cfg.nodes())' supposed to be like this?

{5368713216: 2, 5368713313: 3, 5368713322: 3, 5368713264: 3, 5368713329: 2, 5368713331: 2, 5368713290: 3, 5368713311: 2}