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


Viewing file:     edit_popts.cgi (1.82 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# edit_popts.cgi
# Edit print-share specific options

require './samba-lib.pl';
&ReadParse();
# check acls

&error_setup("$text{'eacl_aviol'}ask_epass.cgi");
&error("$text{'eacl_np'} $text{'eacl_pvpopt'}")
        unless &can('ro', \%access, $in{'share'});
# display
$s = $in{'share'};
if ($s eq "global") {
    &ui_print_header(undef, $text{'print_title1'}, "");
    }
else {
    &ui_print_header(undef, $text{'print_title2'}, "");
    }
&get_share($s);

print &ui_form_start("save_popts.cgi", "post");
print &ui_hidden("old_name", $s);
print &ui_table_start($text{'print_option'}, undef, 2);

print &ui_table_row($text{'print_minspace'},
    &ui_textbox("min_print_space", &getval("min print space"), 6)." kB");

print &ui_table_row($text{'print_postscript'},
    &yesno_input("postscript"));

print &ui_table_row($text{'print_command'},
    &ui_opt_textbox("print_command", &getval("print command"), 40,
            $text{'default'}));

print &ui_table_row($text{'print_queue'},
    &ui_opt_textbox("lpq_command", &getval("lpq command"), 40,
            $text{'default'}));

print &ui_table_row($text{'print_delete'},
    &ui_opt_textbox("lprm_command", &getval("lprm command"), 40,
            $text{'default'}));

print &ui_table_row($text{'print_pause'},
    &ui_opt_textbox("lppause_command", &getval("lppause command"), 40,
            $text{'default'}));

print &ui_table_row($text{'print_unresume'},
    &ui_opt_textbox("lpresume_command", &getval("lpresume command"), 40,
            $text{'default'}));

print &ui_table_row($text{'print_driver'},
    &ui_opt_textbox("printer_driver", &getval("printer driver"), 40,
            $text{'config_none'}));

print &ui_table_end();
if (&can('wO', \%access, $in{'share'})) {
    print &ui_form_end([ [ undef, $text{'save'} ] ]);
    }
else {
    print &ui_form_end();
    }

&ui_print_footer("edit_pshare.cgi?share=".&urlize($s), $text{'index_printershare'},
    "", $text{'index_sharelist'});


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