diff --git a/suid-wrapper.c b/suid-wrapper.c new file mode 100755 index 0000000..08be32f --- /dev/null +++ b/suid-wrapper.c @@ -0,0 +1,18 @@ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE 1 +#endif +#include +#include +#include +#include +char *p; + +int +main (int argc, char* argv[]) +{ + setuid(0); + if (asprintf(&p, "/bin/bash /usr/bin/nlvmi %s %s %s", argv[1], argv[2], argv[3]) != -1) + { + system(p); + } +} diff --git a/wrap-nlvmi b/wrap-nlvmi new file mode 100755 index 0000000..1bc7cea Binary files /dev/null and b/wrap-nlvmi differ