!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.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:     edit_fperm.cgi (1.78 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# edit_fperm.cgi
# Edit file permissions options

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

&error_setup("$text{'eacl_aviol'}ask_epass.cgi");
&error("$text{'eacl_np'} $text{'eacl_pvperm'}")
        unless &can('rp', \%access, $in{'share'});
# display
$s = $in{'share'};
if ($s eq "global") {
    &ui_print_header(undef, $text{'fperm_title1'}, "");
    }
else {
    &ui_print_header(undef, $text{'fperm_title2'}, "");
    print "<center><font size=+1>", &text('fmisc_for', $s), "</font></center>\n";
    }
&get_share($s);

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

print &ui_table_row($text{'fperm_filemode'},
    &ui_textbox("create_mode", &getval("create mode"), 5));

print &ui_table_row($text{'fperm_dirmode'},
    &ui_textbox("directory_mode", &getval("directory mode"), 5));

print &ui_table_row($text{'fperm_notlist'},
    &ui_textbox("dont_descend", &getval("dont descend"), 40));

print &ui_table_row($text{'fperm_forceuser'},
    &username_input("force user", "None"));

print &ui_table_row($text{'fperm_forcegrp'},
    &groupname_input("force group", "None"));

print &ui_table_row($text{'fperm_link'},
    &yesno_input("wide links"));

print &ui_table_row($text{'fperm_delro'},
    &yesno_input("delete readonly"));

print &ui_table_row($text{'fperm_forcefile'},
    &ui_textbox("force_create_mode", &getval("force create mode"), 5));

print &ui_table_row($text{'fperm_forcedir'},
    &ui_textbox("force_directory_mode", &getval("force directory mode"),5));

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

&ui_print_footer("edit_fshare.cgi?share=".&urlize($s), $text{'index_fileshare'},
    "", $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.0055 ]--