blob: e960ad5afaf17d34e7a9dc357fd2e9b5b18ec896 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/bin/sh
rm -f test-output rand.*
./reducebind /usr/bin/id id.ref
echo "reference" | tee -a test-output
md5sum id.ref | tee -a test-output
for i in `seq -f "%04g" 1 1000`; do
dd if=/dev/urandom of=rand.$i bs=1024 count=512 >/dev/null 2>/dev/null
../../objobf -w 0.4 -r rand.$i -A reducebind.o 2>/dev/null >/dev/null
gcc -o output output.o 2>/dev/null
echo -n "$i:"
rm -f id.static
./output /usr/bin/id id.static >/dev/null 2>/dev/null
md5sum id.static | tee -a test-output
done
|