!C99Shell v. 1.0 pre-release build #16!

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/usr/libexec/webmin/htaccess-htpasswd/   drwxr-xr-x
Free 3.84 GB of 27.03 GB (14.2%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     search.cgi (1.81 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# search.cgi
# Find .htaccess files under some directory

require './htaccess-lib.pl';
&foreign_require($apachemod, "apache-lib.pl");

&ReadParse();
&error_setup($text{'search_err'});
if ($in{'search'} !~ /^\// && $accessdirs[0] ne "/") {
    # Make path absolute
    $in{'search'} = "$accessdirs[0]/$in{'dir'}";
    }
$in{'search'} =~ /^\// && $in{'search'} !~ /\.\./ ||
    &error($text{'search_edir'});
&can_access_dir($in{'search'}) || &error($text{'search_ecannot'});

&ui_print_unbuffered_header(undef, $text{'search_title'}, "");

@dirs = &list_directories();
%got = map { ( "$_->[0]/$config{'htaccess'}", 1 ) } @dirs;
print "<b>",&text('search_doing', "<tt>$in{'search'}</tt>"),"</b><p>\n";

# Use the find command
&switch_user();
open(FIND, "find ".quotemeta($in{'search'})." -name ".
       quotemeta($config{'htaccess'})." -print 2>/dev/null |");
while($f = <FIND>) {
    chop($f);
    if ($got{$f}) {
        print &text('search_already', "<tt>$f</tt>"),"<br>\n";
        }
    elsif (!open(TEST, $f)) {
        print &text('search_open', "<tt>$f</tt>", $!),"<br>\n";
        }
    else {
        $conf = &foreign_call($apachemod, "get_htaccess_config", $f);
        $currfile = &foreign_call($apachemod, "find_directive",
                      "AuthUserFile", $conf, 1);
        $require = &foreign_call($apachemod, "find_directive",
                     "require", $conf, 1);
        if ($currfile && $require) {
            print &text('search_found', "<tt>$f</tt>",
                    "<tt>$currfile</tt>"),"<br>\n";
            local $d = $f;
            $d =~ s/\/$config{'htaccess'}$//;
            push(@dirs, [ $d, $currfile ]);
            }
        else {
            print &text('search_noprot', "<tt>$f</tt>"),"<br>\n";
            }
        }
    }
close(FIND);
print "<p><b>$text{'search_done'}</b><p>\n";
&switch_back();

&lock_file($directories_file);
&save_directories(\@dirs);
&unlock_file($directories_file);
&webmin_log("search", $in{'search'});

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



:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0029 ]--