隐藏IIS版本信息
漏洞現象:
[root@]# curl -I -X GET http://www.xxx.com
HTTP/1.1 200 OK
Content-Type: text/html
Last-Modified: Mon, 09 Nov 2015 08:45:05 GMT
Accept-Ranges: bytes
ETag: "be665eeeca1ad11:0"
Server: Microsoft-IIS/7.5 --顯示web版本信息
Date: Tue, 14 May 2019 09:09:50 GMT
Content-Length: 1307
?
處理方法:
下載安裝url rewrite組件。
https://www.iis.net/downloads/microsoft/url-rewrite
選擇簡體中文64位的下載即可。
然后直接右鍵點安裝,
找到: C:\Windows\System32\inetsrv\config下applicationHost.config文件用記事本打開添加如下內容:
<rewrite><allowedServerVariables><add name="REMOTE_ADDR" /></allowedServerVariables> <outboundRules><rule name="REMOVE_RESPONSE_SERVER"><match serverVariable="RESPONSE_SERVER" pattern=".*" /><action type="Rewrite" /></rule></outboundRules></rewrite>保存后,重啟IIS服務:
再測試版本信息已經隱藏,問題解決:curl -I -X GET http://www.xxx.com
?
相關參考文檔:
http://www.cnblogs.com/kowloon/p/9071872.html
https://blogs.msdn.microsoft.com/varunm/2013/04/23/remove-unwanted-http-response-headers/
https://forums.iis.net/t/1207503.aspx
https://hackercool.com/2013/09/how-to-configure-urlscan-in-iis-7-5-and-iis-8-2/
?
總結
- 上一篇: Linux内核 之 GDT LDT与分段
- 下一篇: NVIDIA TX2---Tegra架构