monoxgas / sRDI

Shellcode implementation of Reflective DLL Injection. Convert DLLs to position independent shellcode
Other
2.12k stars 459 forks source link

Two undefined names #1

Closed cclauss closed 7 years ago

cclauss commented 7 years ago

Python 3 removed file().

flake8 testing of https://github.com/monoxgas/sRDI on Python 3.6.2

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./Python/pefile.py:928:14: F821 undefined name 'exceptions'
                        except exceptions.ValueError as e:
             ^
./Python/peutils.py:405:14: F821 undefined name 'file'
                    sig_f = file( filename, 'rt' )
             ^
monoxgas commented 7 years ago

This section of the code is taken from https://github.com/erocarrera/pefile

Maybe simply change to an external dependency.

cclauss commented 7 years ago

Yes. These issues seem to be fixed in https://github.com/erocarrera/pefile