Skip to content

Commit

Permalink
Merge pull request #107 from angr/fix/pivot
Browse files Browse the repository at this point in the history
we don't need to rop for these two testcases
  • Loading branch information
Kyle-Kyle authored Feb 16, 2024
2 parents 7dace9f + b2936ae commit f108838
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tests/test_rex.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,7 @@ def test_linux_stacksmash_64():
ld_path = os.path.join(lib_path, "ld-linux-x86-64.so.2")
path = os.path.join(lib_path, "vuln_stacksmash")
with archr.targets.LocalTarget([ld_path, '--library-path', lib_path, path], path, target_arch='x86_64').build().start() as target:
crash = rex.Crash(target, crash=inp, fast_mode=True,
rop_cache_path=os.path.join(cache_location, 'vuln_stacksmash_64'), aslr=False)
crash = rex.Crash(target, crash=inp, fast_mode=True, use_rop=False, aslr=False)

exploit = crash.exploit(blacklist_techniques={'ret2libc'})

Expand Down Expand Up @@ -246,9 +245,8 @@ def test_linux_network_stacksmash_64():
target_arch='x86_64',
ipv4_address="127.0.0.1",
tcp_ports=(port,)).build().start() as target:
crash = rex.Crash(target, crash=inp, rop_cache_path=os.path.join(cache_location, 'network_overflow_64'),
aslr=False,
input_type=rex.enums.CrashInputType.TCP, port=port)
crash = rex.Crash(target, crash=inp, use_rop=False, aslr=False,
input_type=rex.enums.CrashInputType.TCP, port=port)

exploit = crash.exploit(cmd=b"echo hello", blacklist_techniques={'ret2libc'})

Expand Down

0 comments on commit f108838

Please sign in to comment.