diff options
Diffstat (limited to 'cydo.cpp')
-rw-r--r-- | cydo.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cydo.cpp b/cydo.cpp new file mode 100644 index 0000000..4583616 --- /dev/null +++ b/cydo.cpp @@ -0,0 +1,9 @@ +#include <unistd.h> + +int main(int argc, char *argv[]) { + setuid(0); + setgid(0); + argv[0] = "/usr/bin/dpkg"; + execv(argv[0], argv); + return 1; +} |