SHD-CacheAttackLab/Bonus-DeadDrop/receiver.c

30 lines
547 B
C
Raw Normal View History

2024-02-07 14:23:56 +00:00
#include"util.h"
// mman library to be used for hugepage allocations (e.g. mmap or posix_memalign only)
#include <sys/mman.h>
int main(int argc, char **argv)
{
// [Bonus] TODO: Put your covert channel setup code here
printf("Please press enter.\n");
char text_buf[2];
fgets(text_buf, sizeof(text_buf), stdin);
printf("Receiver now listening.\n");
bool listening = true;
while (listening) {
// [Bonus] TODO: Put your covert channel code here
}
printf("Receiver finished.\n");
return 0;
}