From 84ea3267db6926a447caa8bbb25e3dcdd44a6adb Mon Sep 17 00:00:00 2001 From: ClF3 Date: Mon, 4 Nov 2024 19:34:03 +0800 Subject: [PATCH] part2 ver 0.2 --- Part2-FlushReload/attacker.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Part2-FlushReload/attacker.c b/Part2-FlushReload/attacker.c index 625bf61..1d32ffb 100644 --- a/Part2-FlushReload/attacker.c +++ b/Part2-FlushReload/attacker.c @@ -24,7 +24,7 @@ int main() { for(int i = 0; i < 1024; i++) { CYCLES time = measure_one_block_access_time((ADDR_PTR)buf + (i * 10020107) % 1024 * 128); if(time < CACHE_HIT_THRESHOLD) { - flag = i; + flag = (i * 10020107) % 1024; break; } }