-
Notifications
You must be signed in to change notification settings - Fork 2
/
run.bat
26 lines (20 loc) · 823 Bytes
/
run.bat
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
:: run <time to pause the tool> <program> <arguments>
:: E.g. run 0 notepad.exe test.txt
:: E.g. run 10 a-32.exe
:: Create folders
if not exist gen mkdir gen
if not exist web\gen mkdir web\gen
:: Delete previous runs
del gen\pin.* /f /q
del gen\Este-out\* /f /q
del web\gen\* /f /q
:: Copy Este dlls into gen folder
copy Este\build\Release-x64\Este-64.dll gen\Este-64.dll
copy Este\build\Release-Win32\Este-32.dll gen\Este-32.dll
:: Perform analysis on target
set RUN_COMMAND=%*
".\Este\extLibs\pin-3.18-98332-gaebd7b1e6-msvc-windows\pin.exe" -logfile "gen\pin.log" -error_file "gen\pin.err" -follow_execv -pause_tool 0 -t64 "gen\Este-64.dll" -t "gen\Este-32.dll" -config-file "este-config.toml" -- %RUN_COMMAND%
:: Perform post analysis
python postprocessing/main.py
:: Launch visualization
python web/server.py 7777