30 lines
547 B
C
Executable File
30 lines
547 B
C
Executable File
|
|
#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;
|
|
}
|
|
|
|
|