To compile opensssl 1.0.1e run the following commands in your home folder.
wget https://github.com/openssl/openssl/releases/download/OpenSSL_1_0_1e/openssl-1.0.1e.tar.gz
tar -xzf openssl-1.0.1e.tar.gz
cd openssl-1.0.1e
./config shared
make
Then put the compiled openssl version in your library path
export LD_LIBRARY_PATH=$HOME/openssl-1.0.1e:$LD_LIBRARY_PATH
Run the PoC with the respective binary
make; ./spy-c906 on the C906 processor or make; ./spy-u74 on the U74 processor
If the results dont look good you can
- Make sure
TE0-3is in a decreasing order - change the threshold
#define MIN_CACHE_PROBE_CYCLESand#define MIN_CACHE_MISS_CYCLES
C906 (Flush+Reload, Prime+Probe, Evict+Reload), U74 (Prime+Probe, Evict+Reload)