!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/mysql/   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:     table_form.cgi (1.99 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# table_form.cgi
# Display a form for creating a table

require './mysql-lib.pl';
&ReadParse();
&can_edit_db($in{'db'}) || &error($text{'dbase_ecannot'});

# Redirect to other pages depending on button
if ($in{'addview'}) {
    &redirect("edit_view.cgi?new=1&db=".&urlize($in{'db'}));
    return;
    }
elsif ($in{'dropdb'}) {
    &redirect("drop_dbase.cgi?db=".&urlize($in{'db'}));
    return;
    }
elsif ($in{'backupdb'}) {
    &redirect("backup_form.cgi?db=".&urlize($in{'db'}));
    return;
    }
elsif ($in{'exec'}) {
    &redirect("exec_form.cgi?db=".&urlize($in{'db'}));
    return;
    }

$access{'edonly'} && &error($text{'dbase_ecannot'});
$desc = "<tt>$in{'db'}</tt>";
&ui_print_header($desc, $text{'table_title2'}, "", "table_form");

print &ui_form_start("create_table.cgi", "post");
print &ui_hidden("db", $in{'db'}),"\n";
print &ui_table_start($text{'table_header2'}, undef, 2);

print &ui_table_row($text{'table_name'},
            &ui_textbox("name", undef, 30));

@dbs = grep { &can_edit_db($_) } &list_databases();
if (@dbs > $max_dbs) {
    # Enter source table name manually
    print &ui_table_row($text{'table_copy2'},
        &ui_select("copydb", $in{'db'}, \@dbs).
        " $text{'table_copy2t'} ".
        &ui_textbox("copytable", undef, 20));
    }
else {
    # Show all tables in all DBs
    foreach $d (@dbs) {
        foreach $t (&list_tables($d, 1)) {
            push(@tables, [ "$d.$t" ]);
            }
        }
    print &ui_table_row($text{'table_copy'},
                &ui_select("copy", undef,
                       [ [ "", $text{'table_copynone'} ],
                     @tables ]));
    }

print &ui_table_row($text{'table_type'},
            &ui_select("type", "",
              [ [ "", $text{'default'} ], [ "isam" ], [ "myisam" ],
            [ "heap" ], [ "merge" ], [ "innodb" ], [ "ndbcluster" ]
              ]));

$out = &capture_function_output(\&show_table_form, $in{"fields"} || 4);
print &ui_table_row(undef, $out, 2);

print &ui_table_end();
print &ui_form_end([ [ "create", $text{'create'} ] ]);

&ui_print_footer("edit_dbase.cgi?db=$in{'db'}", $text{'dbase_return'},
         &get_databases_return_link($in{'db'}), $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.0061 ]--