From 612ad09b9825a032742ae2a2de20628bac97154b Mon Sep 17 00:00:00 2001 From: Iru Cai Date: Wed, 10 Apr 2019 16:00:23 +0800 Subject: add evice+reload attack code --- attack_code/evict_load/victim.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 attack_code/evict_load/victim.c (limited to 'attack_code/evict_load/victim.c') diff --git a/attack_code/evict_load/victim.c b/attack_code/evict_load/victim.c new file mode 100644 index 000000000..e9d3249bf --- /dev/null +++ b/attack_code/evict_load/victim.c @@ -0,0 +1,16 @@ +#include +#include +#include + +extern uint8_t array1[]; +extern uint8_t array2[]; +extern size_t array_size; + +uint8_t victim(size_t idx) +{ + if (idx < array_size) { + return array2[array1[idx] * 64]; + } + return 0; +} + -- cgit v1.2.3