I hereby claim:
- I am grebenschikov on github.
- I am package (https://keybase.io/package) on keybase.
- I have a public key whose fingerprint is 52E8 140D D951 9094 DB76 CE48 B965 4373 7D96 085C
To claim this, I am signing this object:
❯ php -r "filter_var(str_repeat(1, 2), FILTER_VALIDATE_FLOAT, ['options' => ['max_range' => 1]]); new PDO('mysql:');" | |
zsh: segmentation fault php -r | |
❯ php -r "filter_var(\$v = str_repeat(1, 8), FILTER_VALIDATE_FLOAT, ['options' => ['max_range' => 1]]); echo \$v;" | |
charset% |
I hereby claim:
To claim this, I am signing this object:
<?php | |
/* | |
* Author: Alexander Grebenschikov <me@package.su> | |
* Versions: 3.4.4 through 3.6.3 | |
* Exploit type: Account Creation, Elevated Privileges | |
* CVE Number: CVE-2016-8869, CVE-2016-8870 | |
* Fixed Date: 2016-October-25 | |
*/ |
<?php | |
echo base_encode('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ', 100500) . PHP_EOL; | |
function base_encode($alphabet, $number, $suffix = '') { | |
$base = strlen($alphabet); | |
if ($number >= $base) { | |
$div = intval($number / $base); // For php7: intdiv($number, $base); | |
$mod = $number % $base; | |
return base_encode($alphabet, $div, $alphabet[$mod] . $suffix); |
/* | |
* Simple dom framework | |
* | |
* For extending C, use | |
* C.node.prototype.someFunc = function() { return 'Value: ' + this.value(); } | |
*/ | |
(function (w, d) { | |
function event(node, action, cb) { | |
if (node.addEventListener) { |