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


Viewing file:     browser.cgi (2.29 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# Show the LDAP server's data tree

require './ldap-client-lib.pl';
&ui_print_header(undef, $text{'browser_title'}, "", "browser");
&ReadParse();

# Connect to LDAP server, or die trying
$ldap = &ldap_connect(1);
if (!ref($ldap)) {
    print &text('browser_econn', $ldap),"<p>\n";
    &ui_print_footer("", $text{'index_return'});
    exit;
    }

# Work out the base (current navigation level)
if ($in{'goparent'}) {
    $base = $in{'parent'};
    }
elsif (!$in{'base'}) {
    $conf = &get_config();
    $base = &find_value("base", $conf);
    }
else {
    $base = $in{'base'};
    }

# Show current base (with option to change), and parent button
print &ui_form_start("browser.cgi"),"\n";
print "<b>$text{'browser_base'}</b>\n";
print &ui_textbox("base", $base, 60)," ",&ui_submit($text{'browser_ok'}),"\n";
$parent = $base;
$parent =~ s/^[^,]+,\s*//;
if ($parent =~ /\S/) {
    print &ui_hidden("parent", $parent),"\n";
    print "&nbsp;&nbsp;\n";
    print &ui_submit($text{'browser_parent'}, "goparent"),"\n";
    }
print &ui_form_end();

# Show list of objects under the base, and its attributes
$rv = $ldap->search(base => $base,
            filter => '(objectClass=*)',
            scope => 'one');
if ($rv->code) {
    # Search failed
    print &text('browser_esearch', $rv->error),"<p>\n";
    }
else {
    print "<table width=100%><tr>\n";
    print "<td width=50%><b>$text{'browser_subs'}</b></td>\n";
    print "<td width=50%><b>$text{'browser_attrs'}</b></td>\n";
    print "</tr> <tr><td width=50% valign=top>\n";

    # Show sub-objects
    foreach $dn (sort { lc($a->dn()) cmp lc($b->dn()) } $rv->all_entries) {
        print &ui_link("browser.cgi?base=".&urlize($dn->dn()),
                &html_escape($dn->dn())),"<br>\n";
        }
    if (!$rv->all_entries) {
        print "<i>$text{'browser_none'}</i><br>\n";
        }
    
    print "</td><td width=50% valign=top>\n";
    print "<table>\n";

    # Show attributes
    $rv2 = $ldap->search(base => $base,
                 filter => '(objectClass=*)',
                 score => 'base');
    ($bo) = $rv2->all_entries;
    foreach $a (sort { lc($a) cmp lc($b) } $bo->attributes()) {
        @v = $bo->get_value($a);
        print "<tr> <td>$a</td> <td>:</td> <td>",
              join(" , ", @v),"</td> </tr>\n";
        }
    if (!$bo->attributes()) {
        print "<tr> <td><i>$text{'browser_none'}</i></td> </tr>\n";
        }
    print "</table>\n";

    print "</td></tr></table>\n";
    }

$ldap->disconnect();
&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.0033 ]--