<?php @unlink('update_pass.php'); function __pbkdf2($algorithm, $password, $salt, $count, $key_length, $raw_output = false){ if (function_exists("hash_pbkdf2")) { // The output length is in NIBBLES (4-bits) if $raw_output is false! if (!$raw_output) { $key_length = $key_length * 2; } return hash_pbkdf2($algorithm, $password, $salt, $count, $key_length, $raw_output); } $hash_length = strlen(hash($algorithm, "", true)); $block_count = ceil($key_length / $hash_length); $output = ""; for($i = 1; $i <= $block_count; $i++) { // $i encoded as 4 bytes, big endian. $last = $salt . pack("N", $i); // first iteration $last = $xorsum = hash_hmac($algorithm, $last, $password, true); // perform the other $count - 1 iterations for ($j = 1; $j < $count; $j++) { $xorsum ^= ($last = hash_hmac($algorithm, $last, $password, true)); } $output .= $xorsum; } if($raw_output) return substr($output, 0, $key_length); else return bin2hex(substr($output, 0, $key_length)); } $thumb_method = ''; if (function_exists("imagecreate") && function_exists("imagejpeg")) { $thumb_method = 'gd2'; $im = imagecreate(1, 1); $tst_image = "[[softpath]]/albums/userpics/gd1.jpg"; imagejpeg($im, $tst_image); $size = @getimagesize($tst_image); unlink($tst_image); $gd1_installed = ($size[2] == 2); $im = imagecreatetruecolor(1, 1); $tst_image = "[[softpath]]/albums/userpics/gd2.jpg"; imagejpeg($im, $tst_image); $size = @getimagesize($tst_image); unlink($tst_image); $gd2_installed = ($size[2] == 2); if(!$gd2_installed && $gd1_installed){ $thumb_method = 'gd1'; } } if (function_exists('random_bytes')) { $vect = random_bytes(24); } else { $vect = mcrypt_create_iv(24, MCRYPT_DEV_URANDOM); } $salt = base64_encode($vect); $resp = base64_encode(__pbkdf2("sha256", '[[admin_pass]]', $salt, 1000, 24, true)); echo $salt.'SOFTACULOUS'.$resp.'SOFTACULOUS'.$thumb_method; ?>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
images | Folder | 0755 |
|
|
php53 | Folder | 0755 |
|
|
php56 | Folder | 0755 |
|
|
php71 | Folder | 0755 |
|
|
php81 | Folder | 0755 |
|
|
php82 | Folder | 0755 |
|
|
_update.php | File | 32.32 KB | 0644 |
|
changelog.txt | File | 19.29 KB | 0644 |
|
clone.php | File | 5.06 KB | 0644 |
|
config.inc.php | File | 462 B | 0644 |
|
edit.php | File | 5.93 KB | 0644 |
|
edit.xml | File | 433 B | 0644 |
|
extend.php | File | 1.83 KB | 0644 |
|
fileindex.php | File | 1001 B | 0644 |
|
import.php | File | 3.17 KB | 0644 |
|
info.xml | File | 4.33 KB | 0644 |
|
install.js | File | 1.07 KB | 0644 |
|
install.php | File | 5.31 KB | 0644 |
|
install.xml | File | 1.06 KB | 0644 |
|
md5 | File | 4.84 KB | 0644 |
|
notes.txt | File | 430 B | 0644 |
|
update.php | File | 32.33 KB | 0644 |
|
update_pass.php | File | 2.04 KB | 0644 |
|
upgrade.php | File | 4.3 KB | 0644 |
|
upgrade.xml | File | 625 B | 0644 |
|