mirror of
https://github.com/geohot/qira
synced 2025-03-14 11:03:08 +03:00
38 lines
877 B
Bash
Executable File
38 lines
877 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
BIN=../tests/ctf/ezhp
|
|
#BIN=../tests/ctf/hudak
|
|
#BIN=../tests/ctf/simple
|
|
#SRC=../tests/hello.c
|
|
#SRC=../tests/algo.c
|
|
|
|
if [ $SRC != "" ]; then
|
|
cd tests
|
|
#gcc -m32 -nostdlib -static -g $src
|
|
gcc -m32 -static -g $SRC
|
|
BIN=../tests/a.out
|
|
cd ../
|
|
fi
|
|
|
|
cd scripts
|
|
#echo "hello" | ./run_qemu.sh $BIN
|
|
#echo "4t_l34st_it_was_1mperat1v3..." | ./run_qemu.sh $BIN
|
|
#echo "i wish i were a valid key bob" | ./run_qemu.sh $BIN
|
|
./run_qemu.sh $BIN
|
|
echo "*** build the Program database"
|
|
time python db_commit_asm.py $BIN $SRC
|
|
#echo "*** filter the Change database"
|
|
#time python db_filter_log.py
|
|
echo "*** build the Change database"
|
|
time python db_commit_log.py
|
|
echo "*** build the memory json"
|
|
time python mem_json_extract.py
|
|
echo "*** build the pmaps database"
|
|
time python segment_extract.py
|
|
|
|
#python db_commit_blocks.py
|
|
#python memory_server.py
|
|
#python build_multigraph.py
|
|
|