diff options
author | Jay Freeman (saurik) <saurik@saurik.com> | 2015-07-02 02:37:49 -0700 |
---|---|---|
committer | Jay Freeman (saurik) <saurik@saurik.com> | 2015-07-02 02:37:49 -0700 |
commit | 232b396b15248b956dd18092649f378b0db8bd4d (patch) | |
tree | 0bb8a29215de710b8dbeb373cd2e6d01e95d32bf /cydo.cpp | |
parent | e40620ab668eb5ba83806b13eebf91f7defb3453 (diff) |
Replace dpkg with an insecure setuid root wrapper.
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; +} |