diff options
| author | van Hauser <vh@thc.org> | 2021-03-24 18:19:45 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-24 18:19:45 +0100 |
| commit | c2b58cff6fa7d6af766cc6f686046d7e043a3977 (patch) | |
| tree | 0c04cd932d129b45e31fd17c328844295677ca5f /unicorn_mode/samples/speedtest | |
| parent | 958436be4ba057e8409787e7ff4ddcfa095c46da (diff) | |
| parent | 6e2a0ef233fc09e8751e2d4cba3298610d8bed2c (diff) | |
| download | afl++-c2b58cff6fa7d6af766cc6f686046d7e043a3977.tar.gz | |
Merge pull request #843 from AFLplusplus/tmp
Tmp
Diffstat (limited to 'unicorn_mode/samples/speedtest')
| -rwxr-xr-x[-rw-r--r--] | unicorn_mode/samples/speedtest/get_offsets.py | 0 | ||||
| -rw-r--r-- | unicorn_mode/samples/speedtest/python/harness.py | 6 |
2 files changed, 3 insertions, 3 deletions
diff --git a/unicorn_mode/samples/speedtest/get_offsets.py b/unicorn_mode/samples/speedtest/get_offsets.py index c9dc76df..c9dc76df 100644..100755 --- a/unicorn_mode/samples/speedtest/get_offsets.py +++ b/unicorn_mode/samples/speedtest/get_offsets.py diff --git a/unicorn_mode/samples/speedtest/python/harness.py b/unicorn_mode/samples/speedtest/python/harness.py index f72eb32b..801ef4d1 100644 --- a/unicorn_mode/samples/speedtest/python/harness.py +++ b/unicorn_mode/samples/speedtest/python/harness.py @@ -256,17 +256,17 @@ def main(): input_len = len(input) # global input_len if input_len > INPUT_MAX: - #print("Test input is too long (> {} bytes)") + # print("Test input is too long (> {} bytes)") return False # print(f"Placing input: {input} in round {persistent_round}") # Make sure the string is always 0-terminated (as it would be "in the wild") - input[-1] = b'\0' + input[-1] = b"\0" # Write the mutated command into the data buffer uc.mem_write(INPUT_ADDRESS, input) - #uc.reg_write(UC_X86_REG_RIP, main_offset) + # uc.reg_write(UC_X86_REG_RIP, main_offset) print(f"Starting to fuzz. Running from addr {main_offset} to one of {main_ends}") # Start the fuzzer. |
