Server : Apache System : Linux server.lienzindia.com 4.18.0-348.7.1.el8_5.x86_64 #1 SMP Wed Dec 22 13:25:12 UTC 2021 x86_64 User : plutus ( 1007) PHP Version : 7.4.33 Disable Function : NONE Directory : /var/webuzo-data/roundcube/plugins/password/helpers/ |
Upload File : |
#include <stdio.h> #include <unistd.h> // set the UID this script will run as (root user) #define UID 0 #define CMD "/usr/sbin/dbmail-users" /* INSTALLING: gcc -o chgdbmailusers chgdbmailusers.c chown root.apache chgdbmailusers strip chgdbmailusers chmod 4550 chgdbmailusers */ main(int argc, char *argv[]) { int rc, cc; cc = setuid(UID); rc = execvp(CMD, argv); if ((rc != 0) || (cc != 0)) { fprintf(stderr, "__ %s: failed %d %d\n", argv[0], rc, cc); return 1; } return 0; }