!c99Shell v. 1.0 pre-release build #16!

Software: Apache/2.2.3 (CentOS). PHP/5.1.6 

uname -a: Linux mx-ll-110-164-51-230.static.3bb.co.th 2.6.18-194.el5PAE #1 SMP Fri Apr 2 15:37:44
EDT 2010 i686
 

uid=48(apache) gid=48(apache) groups=48(apache) 

Safe-mode: OFF (not secure)

/usr/libexec/webmin/proc/   drwxr-xr-x
Free 50.94 GB of 127.8 GB (39.86%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     trace.cgi (2.4 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Display syscalls made by this process in real time

require './proc-lib.pl';
&ReadParse();
if ($config{'trace_java'}) {
    &ui_print_header(undef, $text{'trace_title'}, "", "trace");
    }
else {
    &ui_print_unbuffered_header(undef, $text{'trace_title'}, "", "trace");
    }
%pinfo = &process_info($in{'pid'});
&can_edit_process($pinfo{'user'}) || &error($text{'edit_ecannot'});
if (!%pinfo) {
    print "<b>$text{'edit_gone'}</b> <p>\n";
    &ui_print_footer("", $text{'index_return'});
    exit;
    }

$syscalls = &ui_form_start("trace.cgi", "post")."\n".
        &ui_hidden("pid", $in{'pid'})."\n".
        "<b>$text{'trace_syscalls'}</b>\n".
        &ui_radio("all", defined($in{'all'}) ? $in{'all'} : 1,
              [ [ 1, $text{'trace_all'} ],
            [ 0, $text{'trace_sel'} ] ])."\n".
        &ui_textbox("syscalls", $in{'syscalls'}, 40)."\n".
        &ui_submit($text{'trace_change'})."\n".
        &ui_form_end()."\n";

if ($config{'trace_java'}) {
    # Output Java applet to show trace
    print "<b>",&text('trace_doing', "<tt>$pinfo{'args'}</tt>"),"</b><br>\n";
    print $syscalls;
    print "<applet code=Tracer width=800 height=300>\n";
    &seed_random();
    $id = int(rand()*1000000000);
    print "<param name=url value='tail.cgi?pid=$in{'pid'}&id=$id&syscalls=",
          $in{'all'} ? "" : &urlize($in{'syscalls'}),"'>\n";
    print "<param name=killurl value='killtail.cgi?id=$id'>\n";
    if ($main::session_id) {
        print "<param name=session value=\"sid=$main::session_id\">\n";
        }
    print "$text{'trace_sorry'}<p>\n";
    print "</applet>\n";
    }
else {
    # Just display here as text
    @syscalls = $in{'all'} ? ( ) : split(/\s+/, $in{'syscalls'});
    $trace = &open_process_trace($in{'pid'},
                     \@syscalls);
    $fmt = "%-8.8s %-11.11s %-80.80s %-10.10s";
    print "<b>",&text('trace_start', "<tt>$pinfo{'args'}</tt>"),"</b><br>\n";
    print $syscalls;
    print "<pre>";
    printf "$fmt\n", "Time", "System Call", "Parameters", "Return";
    printf "$fmt\n", ("-"x8), ("-"x11), ("-"x80), ("-"x10);
    while($action = &read_process_trace($trace)) {
        local $tm = strftime("%H:%M:%S", localtime($action->{'time'}));
        printf "$fmt\n", $tm, $action->{'call'},
                 join(", ", @{$action->{'args'}}),
                 $action->{'rv'};
        }
    print "</pre>";
    &close_process_trace($trace);
    if (!kill(0, $in{'pid'})) {
        print "<b>$text{'trace_done'}</b><br>\n";
        }
    else {
        print "<b>$text{'trace_failed'}</b><br>\n";
        }
    }

&ui_print_footer("edit_proc.cgi?$in{'pid'}", $text{'edit_return'},
         "", $text{'index_return'});


:: Command execute ::

Enter:
 
Select:
 

:: Shadow's tricks :D ::

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

:: Preddy's tricks :D ::

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c999shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | r57 c99 shell | Generation time: 0.0073 ]--