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:25.78 GB of 70.42 GB (36.6%)
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/ rfc2045/ - drwxrwxrwx

Directory:
Viewing file:     rfc2045decodemimesectionu.c (1.52 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/*
** Copyright 2000-2011 Double Precision, Inc.  See COPYING for
** distribution information.
*/

#include "rfc2045_config.h"
#include    "rfc2045.h"
#include    "../unicode/unicode.h"
#include    <stdio.h>
#include    <unistd.h>
#include    <iconv.h>
#include    <errno.h>

/*
** Call rfc2045_decodemimesection, expecting textual content.  Convert
** textual content to local character set, if possible.  This is implemented
** by saving the real callback function, then calling rfc2045_decodemimesection
** and specifying our own callback function, which does the conversion, then
** calls the original callback function.  Neat, eh?
*/

static int myhandler(const char *, size_t, void *);

int rfc2045_decodetextmimesection(struct rfc2045src *src,
                  struct rfc2045 *rfc,
                  const char *mychset,
                  int *conv_err,
                  int (*handler)(const char *,
                         size_t, void *),
                  void *voidarg)
{
    const char *dummy;
    const char *src_chset;

    libmail_u_convert_handle_t ci;
    int rc;
    int dummy_flag;

    if (!conv_err)
        conv_err= &dummy_flag;

    rfc2045_mimeinfo(rfc, &dummy, &dummy, &src_chset);

    *conv_err=0;

    if ((ci=libmail_u_convert_init(src_chset, mychset, handler, voidarg))
        == NULL)
    {
        *conv_err=1;
        return -1;
    }

    rc=rfc2045_decodemimesection(src, rfc, &myhandler, &ci);

    dummy_flag=0;
    if (libmail_u_convert_deinit(ci, &dummy_flag))
        rc= -1;

    if (dummy_flag)
        *conv_err=1;
    return (rc);
}

static int myhandler(const char *cp, size_t cnt, void *voidarg)
{
    return libmail_u_convert(*(libmail_u_convert_handle_t *)
                 voidarg, cp, cnt);
}
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.1966 seconds