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


Viewing file:     save_progs.cgi (2.5 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# save_progs.cgi
# Save helper program options

use strict;
use warnings;
our (%text, %in, %access, $squid_version, %config);
require './squid-lib.pl';
$access{'hprogs'} || &error($text{'eprogs_ecannot'});
&ReadParse();
&lock_file($config{'squid_conf'});
my $conf = &get_config();
&error_setup($text{'sprog_ftshpo'});

if ($squid_version < 2) {
    &save_opt("ftpget_program", \&check_prog, $conf);
    &save_opt("ftpget_options", \&check_opts, $conf);
    }
else {
    &save_opt("ftp_list_width", \&check_width, $conf);
    }
&save_opt("ftp_user", \&check_ftpuser, $conf);
&save_opt("cache_dns_program", \&check_prog, $conf);
&save_opt("dns_children", \&check_children, $conf);
&save_choice("dns_defnames", "off", $conf);
if ($squid_version >= 2) {
    &save_opt("dns_nameservers", \&check_dnsservers, $conf);
    }
&save_opt("unlinkd_program", \&check_prog, $conf);
&save_choice("pinger_enable", "on", $conf);
&save_opt("pinger_program", \&check_prog, $conf);
if ($squid_version >= 2.6) {
    &save_opt("url_rewrite_program", \&check_prog, $conf);
    if ($in{'url_rewrite_children_def'}) {
        &save_directive($conf, 'url_rewrite_children', [ ]);
        }
    else {
        my @w;
        $in{'url_rewrite_children'} =~ /^\d+$/ ||
            &error(&text('sprog_emsg5', $in{'url_rewrite_children'}));
        push(@w, $in{'url_rewrite_children'});
        foreach my $o ("startup", "idle", "concurrency") {
            next if ($in{"url_rewrite_".$o."_def"});
            $in{"url_rewrite_".$o} =~ /^[1-9]\d*$/ ||
                &error($text{'sprog_echildren'});
            push(@w, $o."=".$in{"url_rewrite_".$o});
            }
        my $dir = { 'name' => 'url_rewrite_children', 'values' => \@w };
        &save_directive($conf, $dir->{'name'}, [ $dir ]);
        }
    }
else {
    &save_opt("redirect_program", \&check_prog, $conf);
    &save_opt("redirect_children", \&check_children, $conf);
    }

&flush_file_lines();
&unlock_file($config{'squid_conf'});
&webmin_log("progs", undef, undef, \%in);
&redirect("");

sub check_opts
{
return $_[0] =~ /\S/ ? undef : $text{'sprog_emsg1'};
}

sub check_prog
{
$_[0] =~ /^(\/\S+)/ || return &text('sprog_emsg2', $_[0]);
return -x $1 ? undef : &text('sprog_emsg3',$_[0]);
}

sub check_ftpuser
{
return $_[0] =~ /^\S+@\S*$/ ? undef : &text('sprog_emsg4',$_[0]);
}

sub check_width
{
return $_[0] =~ /^\d+$/ ? undef : &text('sprog_emsg6',$_[0]);
}

sub check_dnsservers
{
my @dns = split(/\s+/, $_[0]);
return $text{'sprog_emsg7'} if (!@dns);
foreach my $dns (@dns) {
    &check_ipaddress($dns) || return &text('sprog_emsg8',$dns);
    }
return undef;
}

sub check_children
{
return $_[0] =~ /^\d+$/ ? undef : &text('sprog_emsg5',$_[0]);
}

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