Files
trustedsec-ELFLoader/testobjects/test2.c
T
Kevin Haubris 3213f9e9ad Initial commit
2022-04-26 12:55:27 -05:00

20 lines
391 B
C

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <unistd.h>
#include <sys/types.h>
int go(char* indata, int* outlen){
printf("This is a test\n");
printf("UID is: %d\n", getuid());
printf("This is another test\n");
if (getuid() > 500){
printf("Yep its greater than 500\n");
}
else{
printf("Nope it isn't\n");
}
return 0;
}