diff --git a/Part2-FlushReload/attacker.c b/Part2-FlushReload/attacker.c index daafd6b..5225d7b 100644 --- a/Part2-FlushReload/attacker.c +++ b/Part2-FlushReload/attacker.c @@ -9,7 +9,7 @@ #include "util.h" #define CACHE_HIT_THRESHOLD 200 -#define WAIT_TIME 100 +#define WAIT_TIME 1000 int main() { int index = -1; int flag = -1; @@ -22,7 +22,7 @@ int main() { clflush((ADDR_PTR)buf + i * 128); } for(int i = 0; i < WAIT_TIME; i++); - for(int i = 100; i < 10000; i++) { + for(int i = 712; i < 10000; i++) { time = measure_one_block_access_time((ADDR_PTR)buf + (i*i) / 1024 % 1024 * 128); if(time < CACHE_HIT_THRESHOLD) { flag = (i*i) / 1024 % 1024;