1
0
mirror of https://github.com/angr/angr synced 2026-06-08 13:09:39 +00:00
Files
angr-angr/tests/test_load_shellcode.py
Audrey Dutcher d215baed48 Fix load_shellcode with simos=windows (#5932)
* Fix load_shellcode with simos=windows

* Add testcase

* "lint"
2025-12-12 14:42:35 -07:00

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()