How to use the archr.arsenal.MemoryMapBow function in archr

To help you get started, we’ve selected a few archr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github angr / archr / tests / test_bow_memorymap.py View on Github external
def test_cat_ldd_local():
    with archr.targets.LocalTarget(["/bin/cat"]).build() as t:
        b = archr.arsenal.MemoryMapBow(t)
        s = b.fire()
        assert s == {
            'linux-vdso.so.1': 0x7ffff7ffa000,
            '/lib/x86_64-linux-gnu/libc.so.6': 0x7ffff77db000,
            '/lib64/ld-linux-x86-64.so.2': 0x7ffff7dd5000,
            '[stack-end]': 0x7ffffffff000,
            '[heap]': 0x55555575d000,
            '[vvar]': 0x7ffff7ff7000,
            '[vdso]': 0x7ffff7ffa000,
            '[vsyscall]': 0xffffffffff600000
        }
github angr / archr / tests / test_bow_memorymap.py View on Github external
def test_cat_ldd():
    with archr.targets.DockerImageTarget('archr-test:cat').build() as t:
        b = archr.arsenal.MemoryMapBow(t)
        s = b.fire()
        assert s == {
            'linux-vdso.so.1': 0x7ffff7ffa000,
            '/lib/x86_64-linux-gnu/libc.so.6': 0x7ffff77c4000,
            '/lib64/ld-linux-x86-64.so.2': 0x7ffff7dd5000,
            '[stack-end]': 0x7ffffffff000,
            '[heap]': 0x55555575d000,
            '[vvar]': 0x7ffff7ff7000,
            '[vdso]': 0x7ffff7ffa000,
            '[vsyscall]': 0xffffffffff600000
        }