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;