#!/bin/sh
set -xe
make
$PIN_ROOT/pin -t obj-intel64/dyntool.so -- ./mars_ssh -v -i id_mars1 -x philadelphia_soul_capt_from_mars 2>&1| python3 scripts/parse_dyn_log.py

scripts/ghidra_run_script.sh patch_dyn_rets.py
scripts/ghidra_run_script.sh patch_dyn_calls.py

touch mars_ssh.task1a
scripts/ghidra_run_script.sh FixedBinaryExporter.java mars_ssh.task1a
chmod a+x mars_ssh.task1a
