ChrisTheCoolHut / Zeratool

Automatic Exploit Generation (AEG) and remote flag capture for exploitable CTF problems
GNU General Public License v3.0
1.11k stars 147 forks source link

fix eflags crash #31

Closed AiDaiP closed 1 year ago

AiDaiP commented 1 year ago

eflags can cause crashes like #22. I think add a eflags check can fix the crash.

ChrisTheCoolHut commented 1 year ago
====================================================================================== warnings summary =======================================================================================
../../../../.virtualenvs/angr_pwn2/lib/python3.10/site-packages/unicorn/unicorn.py:5
  /home/chris/.virtualenvs/angr_pwn2/lib/python3.10/site-packages/unicorn/unicorn.py:5: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
    import distutils.sysconfig

../../../../.virtualenvs/angr_pwn2/lib/python3.10/site-packages/unicorn/unicorn.py:5
  /home/chris/.virtualenvs/angr_pwn2/lib/python3.10/site-packages/unicorn/unicorn.py:5: DeprecationWarning: The distutils.sysconfig module is deprecated, use sysconfig instead
    import distutils.sysconfig

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
==================================================================== 21 passed, 1 skipped, 2 warnings in 207.20s (0:03:27) ====================================================================

tests are happy