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


Viewing file:     cert_issue.cgi (1.64 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#!/usr/bin/perl
# cert_issue.cgi

use strict;
use warnings;
require './acl-lib.pl';
our (%in, %text, %config, %access, $module_config_directory, $base_remote_user);
&ReadParse();

&error_setup($text{'cert_err'});
$in{'key'} || &error($text{'cert_ekey'});

my %miniserv;
&get_miniserv_config(\%miniserv);

# Create the new key
my $temp1 = &transname();
my $temp2 = &tempname();
my $fh = "IN";
&open_tempfile($fh, ">$temp1");
foreach my $k ("emailAddress", "organizationalUnitName", "organizationName",
           "stateOrProvinceName", "countryName", "commonName") {
    &print_tempfile($fh, "$k = $in{$k}\n");
    }
$in{'key'} =~ s/\s//g;
&print_tempfile($fh, "SPKAC = $in{'key'}\n");
&close_tempfile($fh);
my $cmd = &get_ssleay();
my $ssleay = &backquote_logged("$cmd ca -spkac $temp1 -out $temp2 -config $module_config_directory/openssl.cnf -days 1095 2>&1");
&unlink_file($temp1);
if ($?) {
    &error("<pre>$ssleay</pre>");
    }
else {
    # Display status and redirect to actual cert file
    &ui_print_unbuffered_header(undef, $text{'cert_title'}, "");
    print &text('cert_done', $in{'commonName'}),"<p>\n";
    print &text('cert_pickup', "cert_output.cgi?file=$temp2"),"<p>\n";
    &ui_print_footer("", $text{'index_return'});

    # Update the Webmin user
    my ($me) = grep { $_->{'name'} eq $base_remote_user } &list_users();
    $me || &error($text{'edit_egone'});
    $me->{'cert'} = "/C=$in{'countryName'}".
            "/ST=$in{'stateOrProvinceName'}".
            "/O=$in{'organizationName'}".
            "/OU=$in{'organizationalUnitName'}".
            "/CN=$in{'commonName'}".
            "/Email=$in{'emailAddress'}";
    &modify_user($me->{'name'}, $me);

    sleep(1);
    &restart_miniserv();
    &webmin_log("cert", undef, $base_remote_user, \%in);
    }


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