SHD-CacheAttackLab/Part2-DeadDrop/receiver.c

30 lines
483 B
C
Raw Normal View History

2023-01-31 20:19:02 +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)
{
// 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) {
// Put your covert channel code here
}
printf("Receiver finished.\n");
return 0;
}