|
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.19 GB of 70.42 GB (34.35%) |
|
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/
courier-0.66.1/
courier/
- drwxrwxrwx
|
Viewing file: webmlm.c (1.59 KB) -rw-rw-rw-Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
/* ** Copyright 2007 Double Precision, Inc. See COPYING for ** distribution information. ** */
#include "config.h" #include "sysconfdir.h" #include <stdio.h> #include <string.h> #include <strings.h> #include <stdlib.h> #include <ctype.h>
#include "cgi/cgi.h"
int main(int argc, char **argv) { const char *envdir=getenv("WEBMLMRC_DIR"); const char *p=strrchr(argv[0], '/'); char *q; char buf[1024]; FILE *fp;
if (!envdir || !*envdir) envdir= SYSCONFDIR;
if (p == NULL) p=argv[0]; else ++p;
q=malloc(strlen(envdir)+strlen(p)+10);
if (!q) exit(1);
strcat(strcat(strcat(strcpy(q, envdir), "/"), p), "rc");
fp=fopen(q, "r");
if (!fp) { cginocache();
printf("Content-Type: text/html; charset=utf-8\n\n" "<html><head><title>Internal error</title></head>\n" "<body><h1>Internal Error</h1>\n" "<p>The webmail system is temporarily unavailable. Missing configuration file: %s</p></body></html>\n", q); fflush(stdout); exit(0); }
while (fgets(buf, sizeof(buf), fp)) { char *w=buf;
while (*w) { if (!isspace((unsigned char)*w)) break;
++w; }
if (strncasecmp(w, "PORT=", 5)) continue;
w += 5;
w=strtok(w, " \t\r\n");
if (w) { fclose(fp); cgi_connectdaemon(w, CGI_PASSFD); return (0); } break; } fclose(fp);
cginocache();
printf("Content-Type: text/html; charset=utf-8\n\n" "<html><head><title>Internal error</title></head>\n" "<body><h1>Internal Error</h1>\n" "<p>The webmail system is temporarily unavailable. Missing PORT setting in %s</p></body></html>\n", q); fflush(stdout); exit(0); }
|