sch9_ctf_3/run-offline/vim_and_cats/cat_status.c

10 lines
165 B
C
Raw Permalink Normal View History

2023-07-13 11:28:55 +00:00
#include<stdlib.h>
#include<stdio.h>
int main() {
setuid(0);
setgid(0);
puts("status.txt contains status. Here it is:");
int result=system("cat status.txt");
}