mirror of
https://github.com/angr/angr
synced 2026-06-08 13:09:39 +00:00
d215baed48
* Fix load_shellcode with simos=windows * Add testcase * "lint"
17 lines
380 B
Python
17 lines
380 B
Python
# pylint: disable=no-self-use,missing-class-docstring
|
|
from __future__ import annotations
|
|
import unittest
|
|
|
|
import angr
|
|
|
|
|
|
class TestLoadShellcode(unittest.TestCase):
|
|
def test_simos(self):
|
|
for os in "windows", "linux":
|
|
p = angr.load_shellcode(b"\xc3", arch="x86", simos=os)
|
|
p.factory.entry_state()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|