2015-08-21 10:04:50 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
[ -z "${UNAME}" ] && UNAME=$(uname)
|
|
|
|
|
|
|
|
DIR=`dirname $0`
|
|
|
|
|
|
|
|
if [ "$UNAME" = Darwin ]; then
|
|
|
|
export DYLD_LIBRARY_PATH=.
|
|
|
|
else
|
|
|
|
export LD_LIBRARY_PATH=.
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -e $DIR/sample_x86; then
|
|
|
|
echo "=========================="
|
|
|
|
$DIR/sample_x86 -32
|
|
|
|
echo "=========================="
|
|
|
|
$DIR/sample_x86 -64
|
2015-08-26 04:25:29 +03:00
|
|
|
echo "=========================="
|
|
|
|
$DIR/sample_x86 -16
|
2015-08-28 19:02:52 +03:00
|
|
|
echo "=========================="
|
|
|
|
$DIR/shellcode -32
|
2015-09-05 04:42:47 +03:00
|
|
|
echo "=========================="
|
|
|
|
$DIR/mem_apis
|
2015-08-21 10:04:50 +03:00
|
|
|
fi
|
|
|
|
if test -e $DIR/sample_arm; then
|
|
|
|
echo "=========================="
|
|
|
|
$DIR/sample_arm
|
2017-03-18 11:30:44 +03:00
|
|
|
$DIR/sample_armeb
|
2015-08-21 10:04:50 +03:00
|
|
|
fi
|
|
|
|
if test -e $DIR/sample_arm64; then
|
|
|
|
echo "=========================="
|
|
|
|
$DIR/sample_arm64
|
2017-04-25 08:42:13 +03:00
|
|
|
$DIR/sample_arm64eb
|
2015-08-21 10:04:50 +03:00
|
|
|
fi
|
|
|
|
if test -e $DIR/sample_mips; then
|
|
|
|
echo "=========================="
|
|
|
|
$DIR/sample_mips
|
|
|
|
fi
|
|
|
|
if test -e $DIR/sample_sparc; then
|
|
|
|
echo "=========================="
|
|
|
|
$DIR/sample_sparc
|
|
|
|
fi
|
|
|
|
if test -e $DIR/sample_m68k; then
|
|
|
|
echo "=========================="
|
|
|
|
$DIR/sample_m68k
|
|
|
|
fi
|
2017-03-10 16:02:29 +03:00
|
|
|
|
|
|
|
if test -e $DIR/mem_apis; then
|
|
|
|
echo "=========================="
|
|
|
|
$DIR/mem_apis
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -e $DIR/sample_batch_reg; then
|
|
|
|
echo "=========================="
|
|
|
|
$DIR/sample_batch_reg
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test -e $DIR/sample_x86_32_gdt_and_seg_regs; then
|
|
|
|
echo "=========================="
|
|
|
|
$DIR/sample_x86_32_gdt_and_seg_regs
|
|
|
|
fi
|