!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/qmailadmin/   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:     list_virts.cgi (2.1 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# list_virts.cgi
# Display a list of virtual domain mappings

require './qmail-lib.pl';
&ReadParse();
&ui_print_header(undef, $text{'virts_title'}, "");

@virts = &list_virts();
print &text('virts_desc', "list_aliases.cgi"),"<p>\n";
&virt_form();

if ($in{'search'}) {
    # Restrict to search results
    @virts = grep { $_->{'from'} =~ /$in{'search'}/ } @virts;
    }
elsif ($config{'max_records'} && @virts > $config{'max_records'}) {
    # Show search form
    print $text{'virts_toomany'},"<br>\n";
    print "<form action=list_virts.cgi>\n";
    print "<input type=submit value='$text{'virts_go'}'>\n";
    print "<input name=search size=20></form>\n";
    undef(@virts);
    }

if (@virts) {
    # sort if needed
    if ($config{'sort_mode'} == 1) {
        @virts = sort { lc($a->{'from'}) cmp lc($b->{'from'}) }
                   @virts;
        }

    # render tables
        print &ui_form_start("delete_virts.cgi", "post");
        print &select_all_link("d", 1),"\n";
        print &select_invert_link("d", 1),"<br>\n";
    if ($config{'columns'} == 2) {
        $mid = int((@virts+1)/2);
        print "<table width=100%> <tr><td width=50% valign=top>\n";
        &virts_table(@virts[0..$mid-1]);
        print "</td><td width=50% valign=top>\n";
        if ($mid < @virts) { &virts_table(@virts[$mid..$#virts]); }
        print "</td></tr> </table><br>\n";
        }
    else {
        &virts_table(@virts);
        }
        print &select_all_link("d", 1),"\n";
        print &select_invert_link("d", 1),"<br>\n";
        print &ui_form_end([ [ "delete", $text{'virts_delete'} ] ]);
    }

&ui_print_footer("", $text{'index_return'});

sub virts_table
{
print "<table border width=100%>\n";
print "<tr $tb> <td width=5><br></td> <td><b>$text{'virts_from'}</b></td> ",
      "<td><b>$text{'virts_prepend'}</b></td> </tr>\n";
foreach $v (@_) {
    print "<tr $cb>\n";
    print "<td width=5>",&ui_checkbox("d", $v->{'from'}),"</td>\n";
    print "<td valign=top><a href=\"edit_virt.cgi?idx=$v->{'idx'}\">",
          ($v->{'from'} ? &html_escape($v->{'from'})
                : "<i>$text{'virts_all'}</i>"),"</a></td>\n";
    print "<td>",($v->{'prepend'} ? &html_escape($v->{'prepend'}) :
          "<i>$text{'virts_none'}</i>"),"</td> </tr>\n";
    }
print "</table>\n";
}


:: 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.0118 ]--