30 lines
483 B
C
Executable File
30 lines
483 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)
|
|
{
|
|
// 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;
|
|
}
|
|
|
|
|