成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

獲取網站Web服務器類型的辦法

安全 網站安全
本文向大家介紹了獲取網站Web服務器類型的辦法,過程敘述還是比較詳細的,相信大家按照步驟做下去一定會實現你想要的結果。

獲取網站Web服務器類型的辦法如下:

有些同學老問怎么判斷Web服務器,問這個掃描器那個掃描器頓時月經來潮。如nmap nc nikto等好多可以的….要那么多掃描器干嘛 NMAP一個就夠了!方法N多,舉幾個例子吧!
 

  1. nmap  
  2.    
  3. pentest@yinyin:~$ nmap -sV -p 80 www.xxoo.com  
  4.    
  5. Starting Nmap 5.00 ( http://nmap.org ) at 2010-05-24 19:49 CST  
  6. Interesting ports on 203.xxx.xxx.1×1:  
  7. PORT STATE SERVICE VERSION  
  8. 80/tcp open http nginx web server 0.8.16  
  9.    
  10. Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .  
  11. Nmap done: 1 IP address (1 host up) scanned in 6.97 seconds  
  12. ———————————————————————————————————-  
  13.    
  14. nc  
  15.    
  16. pentest@yinyin:~$ nc -vv www.xxoo.com 80  
  17. Connection to www.xxoo.info 80 port [tcp/www] succeeded!  
  18. get http /1.1  
  19. HTTP/1.1 400 Bad Request  
  20. Date: Mon, 24 May 2010 11:54:35 GMT  
  21. Server: Apache  
  22. Connection: close  
  23. Content-Type: text/html; charset=iso-8859-1……..省略  
  24. ———————————————————————————————————-  
  25.    
  26. Curl 

lCurl是一款用于在網絡上傳輸數據的工具,支持HTTP, HTTPS, FTP, FTPS, TFTP, DICT,TELNET,LDAP等協議。通過curl你既可以將服務器的數據下載下來,也可以將本地的數據上傳到服務器。curl的選項很多,大家可以 參考curl 官方說明!
 

  1. pentest@yinyin:~$ curl –head http://www.artist-tc.com/  
  2. HTTP/1.1 200 OK  
  3. Server: nginx/0.8.16  
  4. Date: Mon, 24 May 2010 12:00:55 GMT  
  5. Content-Type: text/html  
  6. Connection: keep-alive  
  7. Keep-Alive: timeout=20 
  8. Vary: Accept-Encoding  
  9. ———————————————————————————————————- 

提供個可批量掃描的批處理!胡亂寫的 將就下吧!
 

  1. echo FOR /F ^%%a IN (1.txt) DO nmap -sV -PN -p 80 ^%%a -r > scan.bat  
  2. cmd.exe < scan.bat 
  3. del /q /f scan.bat  
  4. pause 

把需要掃描的網址 IP IP段寫進1.txt就可以了!需要安裝nmap 不保存以及過濾結果 自行修改吧!
 

在來個curl掃描腳本!首先創建一個site.txt文件,里面輸入相應的網站。
 

  1. pentest@ubuntu:~$ head site.txt  
  2. g.cn  
  3. baidu.com  
  4. qq.com  
  5. www.xxoo.com 

之后結合下面的curl.sh腳本,就可以獲知site.txt中網站的服務器類型了。
 

  1. #!/bin/sh  
  2. IIS=0 
  3. nginx=0 
  4. apache=0 
  5. other=0 
  6. if [ ! -f site.txt ]; then  
  7. echo “ERROR:site.txt NOT exists!”  
  8. exit 1  
  9. fi  
  10.    
  11. total=`wc -l site.txt|awk ‘{print $1}’`  
  12. for website in `cat site.txt`  
  13. do  
  14. server=`curl -Is –connect-timeout 15 $website|awk -F”:” ‘/^Server:/{print $2}’`  
  15. echo -e $website”:” $server  
  16. if echo $server|grep -i “IIS”>/dev/null  
  17. then IIS=`expr $IIS + 1`  
  18. elif echo $server|grep -i “Apache”>/dev/null  
  19. then Apache=`expr $Apache + 1`  
  20. elif echo $server|grep -i “nginx”>/dev/null  
  21. then nginx=`expr $nginx + 1`  
  22. else other=`expr $other + 1`  
  23. fi  
  24. done  
  25. echo “——————————————–”  
  26. echo -e “Total\tApache\tIIS\tnginx\tother”  
  27. echo -e “$total\t$Apache\t$IIS\t$nginx\t$other”  
  28. echo -e “100%\t”`echo “scale=5;$Apache/$total*100″|bc|cut -c1-5`”%\t”`echo “scale=5;$IIS/$total*100″|bc|cut -c1-5`”%\t”`echo “scale=5;$nginx/$total*100″|bc|cut -c1-5`”%\t”`echo “scale=5;$other/$total*100″|bc|cut -c1-5`”%\t”  
  29. echo “——————————————–”  
  30. exit 0 

輸出結果:
 

  1. pentest@ubuntu:~$ ./curl.sh  
  2. -e g.cn: gws  
  3. -e baidu.com: Apache  
  4. -e qq.com: nginx/0.6.39  
  5. -e www.artist-tc.com: nginx/0.8.16  
  6.  
  7.  
  8. ——————————————–  
  9. -e Total Apache IIS nginx other  
  10. -e 4 1 0 2 1  
  11. -e 100% 25.00% 0% 50.00% 25.00%  
  12. ——————————————– 

Web服務器類型是怎么獲取的?我想大家已經可以解答這個問題了吧。

【編輯推薦】

  1. WEB安全防護解決方案
  2. 加固服務器防網絡被掛馬
  3. 淺析新浪微博Web蠕蟲事件
  4. “應用”是王道 錦囊妙計謀安全之駐守WEB安全
  5. Websense穩坐Gartner Web安全網關魔力象限領導者地位
責任編輯:佚名 來源: 紅黑聯盟
相關推薦

2018-10-16 09:28:43

網站服務器故障

2018-10-24 10:56:59

網站服務器故障安全

2014-09-22 09:52:06

2018-05-18 09:43:37

服務器架構大型網站

2011-07-07 15:43:51

服務器安裝

2009-07-09 10:25:05

Servlet的Web

2017-12-29 09:47:11

Web服務器萬維網

2010-09-29 08:51:11

2017-11-10 08:58:49

Web服務器應用程序

2009-07-02 17:17:03

2019-02-26 16:20:52

FTP服務器

2010-05-13 18:32:52

2011-12-30 09:29:07

2012-01-12 10:22:51

2020-10-22 08:00:24

ApacheWeb服務器

2010-12-28 15:39:38

2014-06-04 09:46:16

NginxApacheWeb服務器

2012-02-23 10:02:08

Web服務器應用服務器

2009-01-16 14:37:57

TomcatWeb服務器應用服務器

2018-02-05 10:36:01

APP服務器WEB
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 青青草一区 | 亚洲欧美成人 | 亚洲男人网 | 日韩欧美亚洲 | 亚洲成人一区二区三区 | 伊人精品在线 | 亚洲男女视频在线观看 | 国产美女h视频 | 亚洲午夜视频 | 国产精品久久一区 | 每日在线更新av | 国产免费高清 | japanhd美女动| 亚洲国产精品视频 | 欧美精品v国产精品v日韩精品 | 日本久久精品视频 | 第一福利社区1024 | 亚洲精品一区二区久 | 成人午夜精品 | 久久精品网 | 四虎影音 | 日韩三区在线观看 | 日韩波多野结衣 | 欧美性吧 | 在线观看电影av | 精品久久久久久久 | 欧美黄色网络 | 97人人草 | www.日本国产 | 亚洲国产精品久久久久 | 日韩一区二区福利视频 | 久久久久久成人 | 精品亚洲永久免费精品 | 在线免费看91 | 久久久天堂 | 亚洲成人一区 | 久久99精品久久久久子伦 | 91精品久久久久 | 久久国产精品视频 | 91国自产 | 人人人人干 |