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


Viewing file:     delete_all.cgi (2.02 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# delete_all.cgi
# Delete a subnet, shared network or host

require './dhcpd-lib.pl';
require './params-lib.pl';
&ReadParse();
if ($in{'cancel'}) {
    &redirect("");
    exit;
    }
&lock_all_files();
$par = &get_parent_config();
foreach $i ($in{'sidx'}, $in{'uidx'}) {
    if ($i ne "") {
        $par = $par->{'members'}->[$i];
        }
    }
$parconf = $par->{'members'};
$to_del = $parconf->[$in{'idx'}];
@host = &find("host", $to_del->{'members'});
@group = &find("group", $to_del->{'members'});
@subn = &find("subnet", $to_del->{'members'});

# check acls
%access = &get_module_acl();
&error_setup($text{'eacl_aviol'});
if ($to_del->{'name'} eq "group") {
    &error("$text{'eacl_np'} $text{'eacl_pdg'}")
        if !&can('rw', \%access, $to_del, 1);
    }
elsif ($to_del->{'name'} eq "subnet") {
    $type = 'sub';
    &error("$text{'eacl_np'} $text{'eacl_pds'}")
        if !&can('rw', \%access, $to_del, 1);
    foreach $g (@group) {
        &error("$text{'eacl_np'} $text{'eacl_pdg'}")
            if !&can('rw', \%access, $g, 1);
        }
    }
elsif ($to_del->{'name'} eq "shared-network") {
    &error("$text{'eacl_np'} $text{'eacl_pdn'}")
        if !&can('rw', \%access, $to_del, 1);
    foreach $s (@subn) {
        &error("$text{'eacl_np'} $text{'eacl_pds'}")
            if !&can('rw', \%access, $s, 1);
        }
    foreach $g (@group) {
        &error("$text{'eacl_np'} $text{'eacl_pdg'}")
            if !&can('rw', \%access, $g, 1);
        }
    }
else {
    &error($text{'cdel_eunknown'});
    }

foreach $h (@host) {
    &error("$text{'eacl_np'} $text{'eacl_pdh'}")
        if !&can('rw', \%access, $h, 1);
    }

if ($type) {
    &drop_dhcpd_acl($type, \%access, $to_del);
    }
&save_directive($par, [ $to_del ], [ ], 0);
&flush_file_lines();
&unlock_all_files();
if ($to_del->{'name'} eq "group") {
    @count = &find("host", $group->{'members'});
    &webmin_log('delete', 'group', join(",", map { $_->{'values'}->[0] } @count), \%in);
    }
elsif ($to_del->{'name'} eq "subnet") {
    &webmin_log('delete', 'subnet', "$sub->{'values'}->[0]/$sub->{'values'}->[2]", \%in);
    }
elsif ($to_del->{'name'} eq "shared") {
    &webmin_log('delete', 'shared', $sha->{'values'}->[0], \%in);
    }

&redirect("");

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