!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)

/home/mnnews/public_html/cgi-bin/news/   drwxr-xr-x
Free 3.94 GB of 27.03 GB (14.56%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     vna_category.pl (2 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
# News Categories addon for viewnews.cgi - 1.0

push(@Addons_ViewNews_Handler, 'ProfHandler');

sub ProfHandler {
    if (query_string() =~ /^profile(\S+)/) {
        &BuildProfile($1);
        exit;
    }
}
sub BuildProfile {
    my $profilename = shift;
    &loadND;
    print header();
    @newscategories = sort(split(/\|x\|/, $NPConfig{'NewsCategories'}));
    @nprof = split(/\|x\|/, $NPConfig{'NewsProfiles'});
    foreach $i (@nprof) {
            @nprof2 = split(/\~/, $i);
            my $j = shift(@nprof2);
            if ($j) {
                $newsprofiles{$j} = [];
                @{$newsprofiles{$j}} = @nprof2;
        }
    }
    my $prof = $newsprofiles{$profilename};
    unless ($prof) {&NPdie("No such profile.");}
    # Filter by category and date.
    my $filtsub;
    if ($prof->[8]) {$filtsub = $prof->[8];}
    else {$filtsub = 'NewsCatFilter';}
    my @FilteredND = &$filtsub(split(/\!/, $prof->[2]), $prof->[3]);
    # Filter by maximum number.
    if (@FilteredND > $prof->[4]) {
        my $maxnum = @FilteredND - 1;
        my $minnum = $maxnum - $prof->[4];
        $minnum++;
        @FilteredND = @FilteredND[$minnum..$maxnum];
    }
    # Filtered! Build news.
    $newsnum = @FilteredND - 1;
    my $content = "";
    while ($newsnum >= 0) {
        my $ff;
        foreach $ff (keys %{$FilteredND[$newsnum]}) {
            ${$ff} = $FilteredND[$newsnum]->{$ff};
        }
        $newsdate = GetTheDate($newstime);
        &{$prof->[5]};
        if ($NPConfig{'CreateAnchors'}) {$content .= qq~<a name="newsitem$newsid"></a>~;}
        $content .= $newshtml;
        $newsnum--;
    }
    &GenPage($prof->[7], $content);
}
sub NewsCatFilter {
    my $mintime = pop;
    $mintime = $mintime * 86400;
    my @filtcats = @_;
    my %filtcats;
    my $nd;
    undef @NewNewsData;
    my @NewNewsData;
    foreach $i (@filtcats) {
        $filtcats{$i} = 1;
    }
    foreach $nd (@NewsData) {
        # First, check if it matches the category.
        if ($filtcats{$nd->{'newscat'}} || $filtcats{'AllCategories'}) {
            # It matches. Now check the time.
            if ($nd->{'newstime'} >= (time - $mintime)) {
                # It's good. Add to the new array.
                push(@NewNewsData, $nd);
            }
        }
    }
    return @NewNewsData;
}

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