欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費電子書(shū)等14項超值服

開(kāi)通VIP
PHP一句話(huà)木馬及查殺 | C1G軍火庫

常見(jiàn)的木馬基本上有如下特征
1.接收外部變量
常見(jiàn)如:$_GET,$_POST
更加隱蔽的$_FILES,$_REQUEST…

2.執行函數
獲取數據后還需執行它
常見(jiàn)如:eval,assert,preg_replace
隱藏變種:

  1. include($_POST['a']);
  1. $hh = "p"."r"."e"."g"."_"."r"."e"."p"."l"."a"."c"."e";
  2. $hh("/[discuz]/e",$_POST['h'],"Access");
  1. @preg_replace('/ad/e','@'.str_rot13('riny').'($b4dboy)', 'add');

使用urldecode,gzinflate,base64_decode等加密函數

3.寫(xiě)入文件
獲取更多的權限
如:copy,file_get_contents,exec

一般的建議是打開(kāi)safe_mode 或使用disable_functions 等來(lái)提升安全性;
可能有些程序無(wú)法正常運行,基本的安全設置
php.ini中

  1. expose_php = OFF
  2. register_globals = Off
  3. display_errors = Off
  4. cgi.fix_pathinfo=0
  5. magic_quotes_gpc = On
  6. allow_url_fopen = Off
  7. allow_url_include = Off
  8. 配置open_basedir

查找木馬腳本
查找隱藏特征碼及入口可以找出大部分的木馬.

  1. #!/bin/bash
  2.  
  3. findpath=./
  4. logfile=findtrojan.log
  5.  
  6. echo -e $(date +%Y-%m-%d_%H:%M:%S)" start\r" >>$logfile
  7. echo -e '============changetime list==========\r\n' >> ${logfile}
  8. find ${findpath} -name "*.php" -ctime -3 -type f -exec ls -l {} \; >> ${logfile}
  9.  
  10. echo -e '============nouser file list==========\r\n' >> ${logfile}
  11. find  ${findpath} -nouser -nogroup -type f -exec ls -l {} \; >> ${logfile}
  12.  
  13. echo -e '============php one word trojan ==========\r\n' >> ${logfile}
  14. find ${findpath} -name "*.php" -exec egrep -I -i -C1 -H  'exec\(|eval\(|assert\(|system\(|passthru\(|shell_exec\(|escapeshellcmd\(|pcntl_exec\(|gzuncompress\(|gzinflate\(|unserialize\(|base64_decode\(|file_get_contents\(|urldecode\(|str_rot13\(|\$_GET|\$_POST|\$_REQUEST|\$_FILES|\$GLOBALS' {} \; >> ${logfile}
  15. #使用使用-l 代替-C1 -H 可以只打印文件名
  16. echo -e $(date +%Y-%m-%d_%H:%M:%S)" end\r" >>$logfile
  17.  
  18. more $logfile
本站僅提供存儲服務(wù),所有內容均由用戶(hù)發(fā)布,如發(fā)現有害或侵權內容,請點(diǎn)擊舉報。
打開(kāi)APP,閱讀全文并永久保存 查看更多類(lèi)似文章
猜你喜歡
類(lèi)似文章
編程語(yǔ)言[]PHP執行系統命令失敗
一句話(huà)木馬(webshell)是如何執行命令的
php執行cmd/shell命令 木馬小后門(mén)
php模擬ping命令的方法
exec command
ImageMagick轉換在命令行中工作,但不能通過(guò)PHP exec()
更多類(lèi)似文章 >>
生活服務(wù)
分享 收藏 導長(cháng)圖 關(guān)注 下載文章
綁定賬號成功
后續可登錄賬號暢享VIP特權!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服

欧美性猛交XXXX免费看蜜桃,成人网18免费韩国,亚洲国产成人精品区综合,欧美日韩一区二区三区高清不卡,亚洲综合一区二区精品久久