Attempt to exploit the meltdown attack
- Run make to generate the Kernel module
$make
- Run insmod to insert it
$ sudo insmod KernelModule.ko
- Check the address of the data
$tail /var/log/kern.log
- Note down the value in the statement
Secret data address = <value>
- In OutofOrderExecution.c replace the value of kernel_addr with the above.
unsigned long kernel_addr = 0xfab3b024;
Replace 0xfab3b024 with the value obtained.
- Compile the "OutofOrderExecution.c" file
gcc -march=native -o OutofOrder OutofOrderExecution.c
- Run OutofOrderExecution
./OutofOrder