|
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.51 GB of 70.42 GB (34.81%) |
|
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,
|
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
|
|
/
usr/
src/
maildrop-2.2.0/
maildrop/
- drwxr-xr-x
|
Viewing file: maildrop.C (1.87 KB) -rw-r--r--Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
/* ** Copyright 1998 - 2006 Double Precision, Inc. ** See COPYING for distribution information. */
#include "maildrop.h" #include "exittrap.h" #include <signal.h> #include <sysexits.h> #include <errno.h> #if SYSLOG_LOGGING #include <syslog.h> #endif
extern void killprocgroup();
static const char rcsid[]="$Id: maildrop.C,v 1.7 2006/05/28 15:29:52 mrsam Exp $";
int Maildrop::sigfpe;
static RETSIGTYPE sig_fpe(int) { maildrop.sigfpe=1; signal (SIGFPE, sig_fpe); #if RETSIGTYPE != void return (0); #endif }
void Maildrop::cleanup() { ExitTrap::onexit(); killprocgroup(); }
RETSIGTYPE Maildrop::bye(int n) { static const char msg[]="maildrop: signal 0x"; static const char hex[]="0123456789ABCDEF";
cleanup(); if (write(2, msg, sizeof(msg)-1) < 0 || write(2, hex+ ((n / 16) & 0x0F), 1) < 0 || write(2, hex+ (n & 0x0F), 1) < 0 || write(2, "\n", 1) < 0) ; /* gcc shut up */
_exit(EX_TEMPFAIL);
#if RETSIGTYPE != void return (0); #endif }
int Maildrop::trap(int (*func)(int, char *[]), int argc, char *argv[]) { int n;
for (n=0; n<NSIG; n++) signal(n, bye); signal(SIGPIPE, SIG_IGN); #ifdef SIGWINCH signal(SIGWINCH, SIG_IGN); #endif signal(SIGCHLD, SIG_DFL); signal(SIGFPE, sig_fpe);
#if SYSLOG_LOGGING openlog("maildrop", LOG_PID, LOG_MAIL); #endif
try { int r=(*func)(argc, argv);
cleanup(); return (r); } catch (const char *p) { merr << argv[0] << ": " << p << "\n"; #if SYSLOG_LOGGING syslog(LOG_INFO, p); #endif cleanup(); return (EX_TEMPFAIL); } #if NEED_NONCONST_EXCEPTIONS catch (char *p) { merr << argv[0] << ": " << p << "\n"; #if SYSLOG_LOGGING syslog(LOG_INFO, p); #endif cleanup(); return (EX_TEMPFAIL); } #endif catch (int n) { cleanup(); return (n); } catch (...) { merr << argv[0] << ": Internal error.\n"; #if SYSLOG_LOGGING syslog(LOG_INFO, "Internal error."); #endif cleanup(); return (EX_TEMPFAIL); } }
|