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


Viewing file:     Utils.php (2.53 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
* AUTHOR: Samuel Muñoz Hidalgo
* EMAIL: samuel.mh@gmail.com
* LAST REVISION: 16-DEC-08
* DESCRIPTION: some useful functions.
*/

class sspmod_InfoCard_Utils {
    
    
/*
    *INPUT:  a PEM-encoded certificate
    *OUTPUT: a PEM-encoded certificate without the BEGIN and END headers
    */
    
static public function takeCert($cert) {
        
$begin "CERTIFICATE-----";
        
$end "-----END";
        
$pem file_get_contents($cert);
        
$pem substr($pemstrpos($pem$begin)+strlen($begin));
        
$pem substr($pem0strpos($pem$end));
        return 
str_replace("\n"""$pem);
    }
    
    
    
/*
    *INPUT:  a XML document
    *OUTPUT: a canonicalized XML document
    */
    
static public function canonicalize($XMLdoc){
        
$dom = new DOMDocument();
        
$dom->loadXML($XMLdoc);
        return (
$dom->C14N(truefalse));
    }
    
    
    static public function 
thumbcert($cert){
        return 
base64_encode(sha1(base64_decode($cert), true));
    }
    

    
/*
    *INPUT:  a x509 certificate
    *OUTPUT: Common Name or a self issued value if no input is given
    *EXTRA: The output is used as issuer
    */
    
static public function getIssuer($cert){
        if (
$cert==NULL){
            return 
'http://schemas.xmlsoap.org/ws/2005/05/identity/issuer/self';
        }else{
            
$resource file_get_contents($cert);
            
$check_cert openssl_x509_read($resource);
            
$array openssl_x509_parse($check_cert);
            
openssl_x509_free($check_cert);
            
$schema $array['name'];
            
$pattern='/.*CN=/';
            
$replacement='';
            
$CN=preg_replace($pattern,$replacement,$schema);
            return 
$CN;
        }
    }


    

    
    
/*
    * INPUT: claims schema (string) and a DOMNodelist with the requested claims in uri style
    * OUTPUT: array of requested claims
    * 
    */
    
static public function extractClaims($ICschema$nodeList){
        
//Returns the Uri attribute from an attribute list
        
function getUri($attrList){
            
$uri null;
            
$end=false;    
            
$i=0;
            do{
                if (
$i $attrList->length){
                    
$end true;
                } else if (
strcmp($attrList->item($i)->name,'Uri')==0){
                    
$end true;
                    
$uri $attrList->item($i)->value;
                } else {
                    
$i++;
                }
            } while (!
$end);
            return 
$uri;
        }
    
$requiredClaims = array();
    
$schema $ICschema."/claims/";
    
SimpleSAML_Logger::debug("schema:   ".$schema);
    
$pattern='/\//';
    
$replacement='\/';
    
$schema'/'.preg_replace($pattern,$replacement,$schema).'/';
    for (
$i=0;$i<($nodeList->length);$i++) {
        
$replacement='';
        
$uri getUri($nodeList->item($i)->attributes);
        
$claim preg_replace($schema,$replacement,$uri);
        
$requiredClaims[$i]=$claim;
        
SimpleSAML_Logger::debug("uri:   ".$uri);
        
SimpleSAML_Logger::debug("claim: ".$claim);
    }
    return 
$requiredClaims;
}


}
?>

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