!C99Shell v. 1.0 pre-release build #13!

Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a 

uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 

uid=99(nobody) gid=98(nobody) groups=98(nobody) 

Safe-mode: OFF (not secure)

/usr/src/linux-2.4.18-xfs-1.1/scripts/   drwxr-xr-x
Free 318.38 GB of 458.09 GB (69.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     docproc.c (1.58 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/wait.h>

/*
 *    A simple filter for the templates
 */

int main(int argc, char *argv[])
{
    char buf[1024];
    char *vec[8192];
    char *fvec[200];
    char **svec;
    char type[64];
    int i;
    int vp=2;
    int ret=0;
    pid_t pid;


    if(chdir(getenv("TOPDIR")))
    {
        perror("chdir");
        exit(1);
    }
    
    /*
     *    Build the exec array ahead of time.
     */
    vec[0]="kernel-doc";
    vec[1]="-docbook";
    for(i=1;vp<8189;i++)
    {
        if(argv[i]==NULL)
            break;
        vec[vp++]=type;
        vec[vp++]=argv[i];
    }
    vec[vp++]=buf+2;
    vec[vp++]=NULL;
    
    /*
     *    Now process the template
     */
     
    while(fgets(buf, 1024, stdin))
    {
        if(*buf!='!') {
            printf("%s", buf);
            continue;
        }

        fflush(stdout);
        svec = vec;
        if(buf[1]=='E')
            strcpy(type, "-function");
        else if(buf[1]=='I')
            strcpy(type, "-nofunction");    
        else if(buf[1]=='F') {
            int snarf = 0;
            fvec[0] = "kernel-doc";
            fvec[1] = "-docbook";
            strcpy (type, "-function");
            vp = 2;
            for (i = 2; buf[i]; i++) {
                if (buf[i] == ' ' || buf[i] == '\n') {
                    buf[i] = '\0';
                    snarf = 1;
                    continue;
                }

                if (snarf) {
                    snarf = 0;
                    fvec[vp++] = type;
                    fvec[vp++] = &buf[i];
                }
            }
            fvec[vp++] = &buf[2];
            fvec[vp] = NULL;
            svec = fvec;
        } else
        {
            fprintf(stderr, "Unknown ! escape.\n");
            exit(1);
        }
        switch(pid=fork())
        {
        case -1:
            perror("fork");
            exit(1);
        case  0:
            execvp("scripts/kernel-doc", svec);
            perror("exec scripts/kernel-doc");
            exit(1);
        default:
            waitpid(pid, &ret ,0);
        }
    }
    exit(ret);
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0305 ]--