From b071a46b79855a2a2746b74415410841ae146bd6 Mon Sep 17 00:00:00 2001 From: ClF3 Date: Mon, 4 Nov 2024 21:14:37 +0800 Subject: [PATCH] part2 ver 0.5.1 --- Part2-FlushReload/attacker.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Part2-FlushReload/attacker.c b/Part2-FlushReload/attacker.c index 86ddc14..b575370 100644 --- a/Part2-FlushReload/attacker.c +++ b/Part2-FlushReload/attacker.c @@ -10,8 +10,10 @@ #define CACHE_HIT_THRESHOLD 200 #define WAIT_TIME 1000 -#define AVAR 1664525 +#define AVAR 575479 #define CVAR 10020107 +#define AVAR1 199267 +#define CVAR1 4900501 int main() { int index = -1; int flag = -1; @@ -29,7 +31,7 @@ int main() { for(int i = 0; i < 10000; i++) { new_offset = (AVAR * offset + CVAR) % 1024; if(offset == new_offset||offset-new_offset==1||offset-new_offset==-1) { - offset = (offset + 712) % 1024; + offset = (AVAR1 * offset + CVAR1) % 1024; } else { offset = new_offset;