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.76 GB of 70.42 GB (36.59%)
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/ waitlib/ - drwxrwxrwx

Directory:
Viewing file:     confwait.c (1.35 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

#include    <sys/types.h>

#if    HAVE_SYS_WAIT_H
#include    <sys/wait.h>
#endif
#include    <stdio.h>
#include    <signal.h>

#if    HAVE_UNISTD_H
#include    <unistd.h>
#endif
#include    <string.h>
#include    <time.h>

#define    INCLUDED_FROM_CONFIGURE
#include    "waitlib.c"

#define    NUMPROCS    10

static int numterminated=0;


static void cntreaped(pid_t p, int n)
{
    if ( ++numterminated == NUMPROCS )    _exit(0);
}

static RETSIGTYPE childsig(int n)
{
    n=n;

    wait_reap(cntreaped, childsig);

#if    RETSIGTYPE != void
    return (0);
#endif
}

int main()
{
int    pipefd[2];
int    pipefd2[2];
pid_t    p;
int    i;
time_t    t;
char    c;

    if (pipe(pipefd) || pipe(pipefd2))
    {
        perror("pipe");
        exit(1);
    }

    signal(SIGCHLD, childsig);

    for (i=0; i<NUMPROCS; i++)
    {
        while ((p=fork()) == -1)
        {
            perror("fork");
            sleep(5);
        }

        if (p == 0)
        {
            close(pipefd[1]);
            close(pipefd2[0]);
            close(pipefd2[1]);
            read(pipefd[0], &c, 1);
            _exit(0);
        }
    }
    close(pipefd2[1]);
    close(pipefd[0]);
    if (read(pipefd2[0], &c, 1) != 0)
    {
        perror("read");
    }

    wait_block();

    close(pipefd2[0]);
    close(pipefd[1]);
    sleep(3);
    time(&t);
    wait_clear(&childsig);

    do
    {
        sleep(3);
    } while ( time(0) < t+3);
    if (numterminated == NUMPROCS)
        exit(0);
    exit(1);
    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.1775 seconds