#include #include #include #include #include int main (int argc, char **argv) { setuid (0); int count, countargc; //char Command2[] = " \0"; /* WARNING: Only use an absolute path to the script to execute, * a malicious user might fool the binary and execute * arbitary commands if not. * */ //system ("/bin/sh /var/www/html/milcomwifi/php_shell.sh " argv[1]); //printf("/bin/sh /var/www/html/milcomwifi/php_shell.sh %s \n" ,argv[1] ); char Command1[1000] = "/bin/sh /var/www/html/milcomwifi/php_shell.sh"; //strcat( Command1, argv[1]); //printf("arcg: %i \n",argc); //printf("arcv: %s \n",argv); /*countargc = argc - 1; for(count=1;count<=countargc;++count) { printf("%i \n",count); //strcat( Command1, argv[count]); //strcat( Command1, " "); } */ int i; for(i=1; i