include ROPGadget
This commit is contained in:
Binary file not shown.
BIN
ROPgadget/test-suite-binaries/elf-ARM64-bash
Normal file
BIN
ROPgadget/test-suite-binaries/elf-ARM64-bash
Normal file
Binary file not shown.
BIN
ROPgadget/test-suite-binaries/elf-ARMv7-ls
Normal file
BIN
ROPgadget/test-suite-binaries/elf-ARMv7-ls
Normal file
Binary file not shown.
BIN
ROPgadget/test-suite-binaries/elf-FreeBSD-x86
Normal file
BIN
ROPgadget/test-suite-binaries/elf-FreeBSD-x86
Normal file
Binary file not shown.
BIN
ROPgadget/test-suite-binaries/elf-Linux-x64
Normal file
BIN
ROPgadget/test-suite-binaries/elf-Linux-x64
Normal file
Binary file not shown.
BIN
ROPgadget/test-suite-binaries/elf-Linux-x86
Normal file
BIN
ROPgadget/test-suite-binaries/elf-Linux-x86
Normal file
Binary file not shown.
BIN
ROPgadget/test-suite-binaries/elf-Linux-x86-NDH-chall
Normal file
BIN
ROPgadget/test-suite-binaries/elf-Linux-x86-NDH-chall
Normal file
Binary file not shown.
BIN
ROPgadget/test-suite-binaries/elf-Mips-Defcon-20-pwn100
Normal file
BIN
ROPgadget/test-suite-binaries/elf-Mips-Defcon-20-pwn100
Normal file
Binary file not shown.
BIN
ROPgadget/test-suite-binaries/elf-PowerPC-bash
Normal file
BIN
ROPgadget/test-suite-binaries/elf-PowerPC-bash
Normal file
Binary file not shown.
BIN
ROPgadget/test-suite-binaries/elf-SparcV8-bash
Normal file
BIN
ROPgadget/test-suite-binaries/elf-SparcV8-bash
Normal file
Binary file not shown.
BIN
ROPgadget/test-suite-binaries/elf-x64-bash-v4.1.5.1
Normal file
BIN
ROPgadget/test-suite-binaries/elf-x64-bash-v4.1.5.1
Normal file
Binary file not shown.
BIN
ROPgadget/test-suite-binaries/elf-x86-bash-v4.1.5.1
Normal file
BIN
ROPgadget/test-suite-binaries/elf-x86-bash-v4.1.5.1
Normal file
Binary file not shown.
BIN
ROPgadget/test-suite-binaries/macho-x64-ls
Normal file
BIN
ROPgadget/test-suite-binaries/macho-x64-ls
Normal file
Binary file not shown.
BIN
ROPgadget/test-suite-binaries/macho-x86-ls
Normal file
BIN
ROPgadget/test-suite-binaries/macho-x86-ls
Normal file
Binary file not shown.
Binary file not shown.
BIN
ROPgadget/test-suite-binaries/pe-x64-cmd-v6.1.7601
Normal file
BIN
ROPgadget/test-suite-binaries/pe-x64-cmd-v6.1.7601
Normal file
Binary file not shown.
BIN
ROPgadget/test-suite-binaries/pe-x86-cmd-v6.1.7600
Normal file
BIN
ROPgadget/test-suite-binaries/pe-x86-cmd-v6.1.7600
Normal file
Binary file not shown.
1
ROPgadget/test-suite-binaries/raw-x86.raw
Normal file
1
ROPgadget/test-suite-binaries/raw-x86.raw
Normal file
@ -0,0 +1 @@
|
||||
1ɉH<04><08>HL$<08>1<><31>
|
BIN
ROPgadget/test-suite-binaries/ref_output.bz2
Normal file
BIN
ROPgadget/test-suite-binaries/ref_output.bz2
Normal file
Binary file not shown.
61
ROPgadget/test-suite-binaries/test.sh
Executable file
61
ROPgadget/test-suite-binaries/test.sh
Executable file
@ -0,0 +1,61 @@
|
||||
#!/bin/bash
|
||||
|
||||
export PYTHONPATH=../
|
||||
if [ "$#" == "1" ]
|
||||
then
|
||||
RUN="python2 ../ROPgadget.py"
|
||||
else
|
||||
RUN="python3 ../ROPgadget.py"
|
||||
fi
|
||||
|
||||
rm -rf test_output
|
||||
|
||||
FILES=`ls | sort -f`
|
||||
for f in $FILES
|
||||
do
|
||||
if [ "$f" != "test.sh" ] && [ "$f" != "ref_output.bz2" ] && [ "$f" != "test_output" ]
|
||||
then
|
||||
echo "RUN $f" | tee -a ./test_output
|
||||
if [ "$f" == "raw-x86.raw" ]
|
||||
then
|
||||
$RUN --rawArch=x86 --rawMode=32 --depth 5 --binary $f 1>> ./test_output
|
||||
else
|
||||
$RUN --depth 5 --binary $f 1>> ./test_output
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
||||
echo "RUN elf-Linux-x86 --ropchain" | tee -a ./test_output
|
||||
$RUN --binary ./elf-Linux-x86 --ropchain 1>> ./test_output
|
||||
echo "RUN elf-Linux-x86 --depth 3" | tee -a ./test_output
|
||||
$RUN --binary ./elf-Linux-x86 --depth 3 1>> ./test_output
|
||||
echo "RUN elf-Linux-x86 --string \"main\"" | tee -a ./test_output
|
||||
$RUN --binary ./elf-Linux-x86 --string "main" 1>> ./test_output
|
||||
echo "RUN elf-Linux-x86 --string \"m..n\"" | tee -a ./test_output
|
||||
$RUN --binary ./elf-Linux-x86 --string "m..n" 1>> ./test_output
|
||||
echo "RUN elf-Linux-x86 --opcode c9c3" | tee -a ./test_output
|
||||
$RUN --binary ./elf-Linux-x86 --opcode c9c3 1>> ./test_output
|
||||
echo "RUN elf-Linux-x86 --only \"mov|ret\"" | tee -a ./test_output
|
||||
$RUN --binary ./elf-Linux-x86 --only "mov|ret" 1>> ./test_output
|
||||
echo "RUN elf-Linux-x86 --only \"mov|pop|xor|ret\"" | tee -a ./test_output
|
||||
$RUN --binary ./elf-Linux-x86 --only "mov|pop|xor|ret" 1>> ./test_output
|
||||
echo "RUN elf-Linux-x86 --filter \"xchg|add|sub|cmov.*\"" | tee -a ./test_output
|
||||
$RUN --binary ./elf-Linux-x86 --filter "xchg|add|sub|cmov.*" 1>> ./test_output
|
||||
echo "RUN elf-Linux-x86 --norop --nosys" | tee -a ./test_output
|
||||
$RUN --binary ./elf-Linux-x86 --norop --nosys 1>> ./test_output
|
||||
echo "RUN elf-Linux-x86 --range 0x08041000-0x08042000" | tee -a ./test_output
|
||||
$RUN --binary ./elf-Linux-x86 --range 0x08041000-0x08042000 1>> ./test_output
|
||||
echo "RUN elf-Linux-x86 --string main --range 0x080c9aaa-0x080c9aba" | tee -a ./test_output
|
||||
$RUN --binary ./elf-Linux-x86 --string main --range 0x080c9aaa-0x080c9aba 1>> ./test_output
|
||||
echo "RUN elf-Linux-x86 --memstr \"/bin/sh\"" | tee -a ./test_output
|
||||
$RUN --binary ./elf-Linux-x86 --memstr "/bin/sh" 1>> ./test_output
|
||||
echo "RUN elf-Linux-x86 --badbytes \"00|01-1f|7f|42\"" | tee -a ./test_output
|
||||
$RUN --binary ./elf-Linux-x86 --badbytes "00|01-1f|7f|42" 1>> ./test_output
|
||||
echo "RUN Linux_lib64.so --offset 0xdeadbeef00000000" | tee -a ./test_output
|
||||
$RUN --binary ./Linux_lib64.so --offset 0xdeadbeef00000000 1>> ./test_output
|
||||
echo "RUN elf-ARMv7-ls --depth 5" | tee -a ./test_output
|
||||
$RUN --binary ./elf-ARMv7-ls --depth 5 1>> ./test_output
|
||||
echo "RUN elf-ARM64-bash --depth 5" | tee -a ./test_output
|
||||
$RUN --binary ./elf-ARM64-bash --depth 5 1>> ./test_output
|
||||
|
||||
diff test_output <(bunzip2 --stdout ref_output.bz2) 1>&2
|
Reference in New Issue
Block a user