File: sample_all.sh

package info (click to toggle)
unicorn-engine 2.1.4-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 23,912 kB
  • sloc: ansic: 379,830; python: 9,213; sh: 9,011; java: 8,609; ruby: 4,241; pascal: 1,805; haskell: 1,379; xml: 490; cs: 424; makefile: 348; cpp: 298; asm: 64
file content (64 lines) | stat: -rwxr-xr-x 1,355 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/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
  echo "=========================="
  $DIR/sample_x86 -16
  echo "=========================="
  $DIR/shellcode -32
  echo "=========================="
  $DIR/mem_apis
fi
if test -e $DIR/sample_arm; then
  echo "=========================="
  $DIR/sample_arm
fi
if test -e $DIR/sample_arm64; then
  echo "=========================="
  $DIR/sample_arm64
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

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

if test -e $DIR/sample_mmu; then
  echo "=========================="
  $DIR/sample_mmu
fi