packing-box / docker-packing-box

Docker image gathering packers and tools for making datasets of packed executables and training machine learning models for packing detection
GNU General Public License v3.0
49 stars 10 forks source link

`iternodes` does not return #109

Closed AlexVanMechelen closed 6 months ago

AlexVanMechelen commented 6 months ago

Issue

The iternodes function runs indefinitely for some input executables https://github.com/packing-box/docker-packing-box/blob/afe4a5e5e0465ece651565fe64489a12e587553d/src/lib/src/pbox/core/executable/cfg/__common__.py#L78

Steps to reproduce

exe = Executable("/mnt/share/dataset-packed-pe/packed/Enigma Virtual Box/enigmavb_pskill.exe")
self = exe.cfg
exe.cfg.graph
root_subgraph = list(self.iternodes())