Created
November 5, 2015 08:03
-
-
Save ts0818/10c0d490904c9dd5a764 to your computer and use it in GitHub Desktop.
パーフェクトPHP eval攻撃
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* このプログラムは脆弱性のサンプルです。 | |
* 公開サーバに設置しないでください | |
*/ | |
$string = 'こたんたにたちたわた、世界!'; | |
eval("echo htmlspecialchars(str_replace('" . $_GET['keyword']. | |
"','', '".$string."'), ENT_QUOTES, 'UTF-8');"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment