首页 > Web开发 > 详细

查看web访问日志各url shell

时间:2015-03-10 16:59:04      阅读:316      评论:0      收藏:0      [点我收藏+]
root@debian:~/Workspace# awk ‘ { if(match($7,"/*\.php*")) { if(index($7,"?")) { print substr($7,0,index($7,"?")) } else { print $7; } } } ‘ access.log | sort -d | uniq -c
      8 /allinone_beta_02/dma_14/index.php
    641 /allinone_beta_02/dma_15/index.php
    357 /allinone_beta_02/dma_16/index.php
    358 /allinone_beta_02/dma_17/index.php
      1 /allinone_beta_02/dma/index.php
   2539 /allinone_beta_02/index.php
    229 /allinone_beta_02/wechat/index.php
    219 /corporate_beta_10/index.php
      2 /corporate_beta10/index.php
      4 /corporate/index.php
      2 /ecshop/activity.php
     53 /ecshop/api/cron.php
      2 /ecshop/article.php
     22 /ecshop/captcha.php
     10 /ecshop/category.php
      8 /ecshop/flow.php
      1 /ecshop/gallery.php
     37 /ecshop/goods.php
      2 /ecshop/group_buy.php
      6 /ecshop/user.php
   4033 /wechat_beta_22/index.php
      4 /wechat_beta_27/index.php
     47 /wechat_beta_28/index.php

  可能不准确,不过大致不会错

查看web访问日志各url shell

原文:http://www.cnblogs.com/luowen/p/4326173.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!