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


Viewing file:     backup.cgi (2.25 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# backup.cgi
# Run a filesystem backup, either in the background or foreground (and show
# the results)

require './fsdump-lib.pl';
&ReadParse();
$dump = &get_dump($in{'id'});
$dump->{'id'} || &error($text{'backup_egone'});
&can_edit_dir($dump) || &error($text{'backup_ecannot'});

if ($config{'run_mode'}) {
    # Background
    &ui_print_header(undef, $text{'backup_title'}, "");

    print "<p>$text{'backup_bg'}<p>\n";
    &clean_environment();
    &system_logged("$cron_cmd ".quotemeta($dump->{'id'}).
           " >/dev/null 2>&1 </dev/null &");
    &reset_environment();
    &webmin_log("bgbackup", undef, undef, $dump);
    }
else {
    # Foreground
    &ui_print_unbuffered_header(undef, $text{'backup_title'}, "");

    # Setup command to be called upon tape change (which is not
    # supported in this mode)
    $nfile = "$module_config_directory/$dump->{'id'}.notape";
    unlink($nfile);
    &create_wrappers();

    print "<b>",&text('backup_desc',
                 "<tt>".&html_escape($dump->{'dir'})."</tt>",
                 &dump_dest($dump)),"</b><p>\n";
    print "<pre>";
    $bok = &execute_before($dump, STDOUT, 1);
    if (!$bok && !$dump->{'beforefok'}) {
        # Before command failed
        print "</pre>\n";
        print "<b>$text{'backup_beforefailed'}</b><p>\n";
        }
    else {
        # Do the dump
        $now = time();
        $ok = &execute_dump($dump, STDOUT, 1, 0, $now);
        print "</pre>\n";
        if (!$bok) {
            print "<b>$text{'backup_afterfailed'}</b><p>\n";
            }
        elsif ($ok) {
            # Worked .. but verify if asked
            if ($dump->{'reverify'}) {
                print "<b>$text{'backup_reverify'}</b><p>\n";
                print "<pre>";
                $ok = &verify_dump($dump, STDOUT, 1, 0, $now);
                print "</pre>";
                }
            if ($ok) {
                print "<b>$text{'backup_done'}</b><br>\n";
                }
            else {
                print "<b>$text{'backup_noverify'}</b><br>\n";
                }
            }
        else {
            if (-r $nfile) {
                print "<b>$text{'backup_notape'}</b><br>\n";
                }
            else {
                print "<b>$text{'backup_failed'}</b><br>\n";
                }
            }

        # Execute the post-backup command, if any
        if ($ok) {
            print "<pre>";
            $bok = &execute_after($dump, STDOUT, 1);
            print "</pre>\n";
            }
        }
    unlink($nfile);
    delete($dump->{'pass'});
    &webmin_log("backup", undef, undef, $dump);
    }

&ui_print_footer($access{'edit'} ? ( "edit_dump.cgi?id=$in{'id'}",
                 $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.0114 ]--