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:22.98 GB of 70.42 GB (32.64%)
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/ share/ doc/ modsecurity-crs/ examples/ runAV/ - drwxr-xr-x

Directory:
Viewing file:     runAV-clamd.c (1.24 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#include "common.h"

main(int argc, char *argv[])
{
    char cmd[MAX_OUTPUT_SIZE];
    char output[MAX_OUTPUT_SIZE];
    int error;
    char *colon;
    char *keyword;

    if (argc > 1) {
        sprintf (cmd, "/usr/bin/clamdscan --no-summary %s", argv[1]);
        output[0] = '\0';
        error = run_cmd(cmd,output,MAX_OUTPUT_SIZE);
        if (error != 0) {
            printf ("1 exec error %d: OK", error);
        } else if (!*output) {
            printf ("1 exec empty: OK"); 
        }
        else {
            colon = strstr(output, ":");
            if (colon) { colon += 2; }
            if (!colon) {
                printf ("0 unable to parse clamdscan output [%s] for cmd [%s]", output, cmd);
            }
            else if (keyword = strstr(colon, " FOUND")) {
                *keyword = '\0';
                printf ("0 clamdscan: %s", colon);
            }
            else if (keyword = strstr(colon, " ERROR")) {
                *keyword = '\0';
                printf ("0 clamdscan: %s", colon);
            }
            else if (keyword = strstr(colon, "OK")) {
                printf ("1 clamdscan: OK");
            }
            else if (keyword = strstr(colon, "Empty file")) {
                printf ("1 empty file");
            }
            else if (keyword = strstr(colon, "Can't access file ")) {
                printf ("0 invalid file %s", keyword+18);
            }
            else { 
                printf ("0 unable to parse clamdscan output [%s] for cmd [%s]", output, cmd);
            }
        }
    }
}
Command:
Quick Commands:
Upload:
[Read-Only] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [Read-Only]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.2217 seconds