!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/bacula-backup/   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:     gbackup.cgi (1.59 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Execute multiple backup jobs, one for each client

require './bacula-backup-lib.pl';
&ui_print_unbuffered_header(undef,  $text{'gbackup_title'}, "");
&ReadParse();

# Get the backup job def and real jobs
$conf = &get_director_config();
@jobdefs = &find("JobDefs", $conf);
$jobdef = &find_by("Name", "ocjob_".$in{'job'}, \@jobdefs);
foreach $job (&get_bacula_jobs()) {
    ($j, $c) = &is_oc_object($job);
    if ($j eq $in{'job'} && $c) {
        push(@jobs, $job);
        }
    }

print "<b>",&text('gbackup_run', "<tt>$in{'job'}</tt>",
                 scalar(@jobs)),"</b>\n";

# Clear messages
$h = &open_console();
&console_cmd($h, "messages");

# Run the real jobs
print "<dl>\n";
foreach $job (@jobs) {
    ($j, $c) = &is_oc_object($job);
    print "<dt>",&text('gbackup_on', "<tt>$c</tt>"),"\n"; 
    print "<dd><pre>";

    # Select the job to run
    &sysprint($h->{'infh'}, "run\n");
    &wait_for($h->{'outfh'}, 'run\\n');
    $rv = &wait_for($h->{'outfh'}, 'Select Job.*:');
    print $wait_for_input;
    if ($rv == 0 && $wait_for_input =~ /(\d+):\s+\Q$job->{'name'}\E/) {
        &sysprint($h->{'infh'}, "$1\n");
        }
    else {
        &job_error($text{'backup_ejob'});
        }

    # Say that it is OK
    $rv = &wait_for($h->{'outfh'}, 'OK to run.*:');
    print $wait_for_input;
    if ($rv == 0) {
        &sysprint($h->{'infh'}, "yes\n");
        }
    else {
        &job_error($text{'backup_eok'});
        }

    print "</pre>";
    }
print "</dl>\n";
&close_console($h);
&webmin_log("gbackup", $in{'job'});

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

sub job_error
{
print "</pre>\n";
print "<b>",@_,"</b><p>\n";
&close_console($h);
&ui_print_footer("backup_form.cgi", $text{'backup_return'});
exit;
}


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