Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap test_linux_network_stacksmash_64 in a flaky rerunner (3 runs) #103

Merged
merged 3 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
'povsim',
'compilerex',
'pwntools',
'flakey',
mahaloz marked this conversation as resolved.
Show resolved Hide resolved
],
package_data={
'rex.scripter.templates': ['*.j2']
Expand Down
4 changes: 4 additions & 0 deletions tests/test_rex.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# pylint: disable=line-too-long
import os
import random
import subprocess
Expand All @@ -14,6 +15,8 @@
from angr.state_plugins.trace_additions import FormatInfoStrToInt, FormatInfoDontConstrain
from rex.exploit.cgc.type1.cgc_type1_shellcode_exploit import CGCType1ShellcodeExploit

from flakey import flakey

bin_location = str(os.path.join(os.path.dirname(os.path.realpath(__file__)), '../../binaries'))
cache_location = str(os.path.join(bin_location, 'tests_data/rop_gadgets_cache'))
tests_dir = str(os.path.dirname(os.path.realpath(__file__)))
Expand Down Expand Up @@ -231,6 +234,7 @@ def test_linux_stacksmash_32():
_check_arsenal_has_send(exploit.arsenal)


@flaky(max_runs=3, min_passes=1)
def test_linux_network_stacksmash_64():
# Test exploiting a simple network server with a stack-based buffer overflow.
inp = b'\x00' * 500
Expand Down
Loading