!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/lpadmin/   drwxr-xr-x
Free 50.94 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:     list_jobs.cgi (2.25 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# list_jobs.cgi
# List all print jobs on some printer

require './lpadmin-lib.pl';
&ReadParse();
print "Refresh: $config{'queue_refresh'}\r\n"
    if ($config{'queue_refresh'});
&ui_print_header(&text('jobs_on', "<tt>$in{'name'}</tt>"), $text{'jobs_title'}, "");

@jobs = &get_jobs($in{'name'});
if (@jobs) {
    if ($access{'cancel'}) {
        # Start of cancel form
        print &ui_form_start("cancel_all.cgi", "post");
        print &ui_hidden("name", $in{'name'});
        @tds = ( "width=5" );
        @links = ( &select_all_link("d"), &select_invert_link("d") );
        print &ui_links_row(\@links);
        }
    print &ui_columns_start([
        $access{'cancel'} ? ( "" ) : ( ),
        $text{'jobs_id'},
        $text{'jobs_size'},
        $text{'jobs_by'},
        $jobs[0]->{'when'} ? ( $text{'jobs_when'} ) : ( ),
        $jobs[0]->{'file'} ? ( $text{'jobs_file'} ) : ( ),
        ], 100, 0, \@tds);
    foreach $j (@jobs) {
        local $ju = $j->{'user'};
        $ju =~ s/\!.*$//;
        local @cols;
        push(@cols, &html_escape($j->{'id'}));
        if ($j->{'printfile'} && &can_edit_jobs($in{'name'}, $ju)) {
            push(@cols,
                "<a href='view_job.cgi?name=$in{'name'}".
                "&id=$j->{'id'}'>".&nice_size($j->{'size'})."</a>");
            $printfile++;
            }
        else {
            push(@cols, &nice_size($j->{'size'}));
            }
        if ($j->{'user'} =~ /^(\S+)\!(\S+)$/) {
            push(@cols, &html_escape("$2\@$1"));
            }
        else {
            push(@cols, &html_escape($j->{'user'}));
            }
        if ($j->{'when'}) {
            push(@cols, $j->{'when'});
            }
        if ($j->{'file'}) {
            push(@cols, $j->{'file'});
            }
        if (&can_edit_jobs($in{'name'}, $ju) &&
            $access{'cancel'}) {
            # Can cancel this job
            print &ui_checked_columns_row(\@cols, \@tds,
                              "d", $j->{'id'});
            }
        elsif ($access{'cancel'}) {
            # Can cancel, but not this job
            print &ui_columns_row([ "", @cols ], \@tds);
            }
        else {
            # Cannot cancel at all
            print &ui_columns_row(\@cols, \@tds);
            }
        }
    print &ui_columns_end();
    if ($access{'cancel'}) {
        print &ui_links_row(\@links);
        print &ui_form_end([ [ undef, $text{'jobs_cancelsel'} ] ]);
        }
    }
else {
    print "<b>",&text('jobs_none', "<tt>$in{'name'}</tt>"),"</b><p>\n";
    }

# Test print button
print &ui_form_start("test_form.cgi");
print &ui_hidden("name", $in{'name'});
print &ui_form_end([ [ undef, $text{'jobs_test'} ] ]);

&ui_print_footer("", $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.0142 ]--