forked from Battelle/movfuscator
-
Notifications
You must be signed in to change notification settings - Fork 399
/
check.sh
executable file
·44 lines (38 loc) · 886 Bytes
/
check.sh
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
#!/bin/sh
# To verify that the M/o/Vfuscator is working correctly, this script will pull
# down an open source AES implementation, compile it, objdump it, and run it.
# The objdump will take some time, be patient.
echo
# Grab some example source
echo "Downloading..."
echo
sleep 2
[ ! -d "validation/aes" ] && git clone https://github.com/kokke/tiny-AES128-C validation/aes
cd validation/aes && git reset --hard 7e42e693288bdf22d8e677da94248115168211b9 && cd -
sleep 2
echo
echo
# M/o/Vfuscate the program
echo "M/o/Vfuscating..."
echo
sleep 2
movcc validation/aes/aes.c validation/aes/test.c -o validation/aes/aes -s
sleep 2
echo
echo
# Check the assembly
echo "Dumping..."
echo
sleep 2
objdump -d -Mintel --insn-width=15 validation/aes/aes
sleep 2
echo
echo
# Check execution
echo "Running..."
echo
sleep 2
./validation/aes/aes
sleep 2
echo "M/o/Vfuscator check complete."
echo