I'am開發bash腳本可以從頭標記檢測Web應用程序防火牆,但是我可以找到像我的想法那樣的示例?如何從HTTP響應中檢測出某些東西
-4
A
回答
1
要從bash中找到請求標題,你可以簡單地使用curl
。如果你在windows上,你會希望新的windows bash shell或者cygwin來運行它。
還有幾十個技巧,你可以用任何你想要的格式來獲得任何想要的東西,大量的SO問題來回答你提出的任何問題。
curl --head www.google.com
HTTP/1.1 200 OK
Date: Thu, 06 Apr 2017 02:07:00 GMT
Expires: -1
Cache-Control: private, max-age=0
Content-Type: text/html; charset=ISO-8859-1
P3P: CP="This is not a P3P policy! See https://www.google.com/support/accounts/answer/151657?hl=en for more info."
Server: gws
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Set-Cookie: NID=100=IoNzfnVsz_oaEwIQE182ysgVSHoZYRVKjTqSQ5GqKrz1ewxwav2ae5GPo_bx0apr39Pnn4yvM5RfsmQnJ_QFmllVwS34ts-bNrvkzDFIfaokkDTo1BXHDDI69duBn1f9kx4sXJ_rcCK28og6; expires=Fri, 06-Oct-2017 02:07:00 GMT; path=/; domain=.google.com; HttpOnly
Transfer-Encoding: chunked
Accept-Ranges: none
Vary: Accept-Encoding
下面是使用curl
得到響應頭的例子:
curl -D - www.google.com
HTTP/1.1 200 OK
Date: Thu, 06 Apr 2017 02:11:26 GMT
Expires: -1
Cache-Control: private, max-age=0
Content-Type: text/html; charset=ISO-8859-1
P3P: CP="This is not a P3P policy! See https://www.google.com/support/accounts/answer/151657?hl=en for more info."
Server: gws
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Set-Cookie: NID=100=DrUalBDiHKiZkX0yETtowdWhEfjJy7ioPU0Fe7Wch9pbbYI8MeSbg8M42dHmwu-hKZmYUlnE7VIgLhJ_Zi6byG_PYpTu5s2KYUv9XjPeH-GfSOTSq22I2GnEqXZwhJv-Bdn0aYzCUugF9FHb3Q; expires=Fri, 06-Oct-2017 02:11:26 GMT; path=/; domain=.google.com; HttpOnly
Accept-Ranges: none
Vary: Accept-Encoding
Transfer-Encoding: chunked
<!doctype html><html itemscope="" itemtype="http://schema.org/WebPage" lang="en"><head><meta content="Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for." name="description"><meta content="noodp" name="robots"><meta content="text/html; charset=UTF-8" http-equiv="Content-Type"><meta content="/images/branding/googleg/1x/googleg_standard_color_128dp.png" itemprop=<cut the rest of the HTTP request>
+0
不,我要檢測什麼像X-XSS-Protection使用bash腳本從請求中找到或沒有找到 –
+0
你能稍微詳細解釋一下你正在尋找什麼,目前尚不清楚。 –
相關問題
- 1. 如何從rspec控制器測試中省略某些東西?
- 2. 如何檢測到某些東西將被刪除
- 3. 如何檢測VBA excel是否發現了某些東西?
- 4. 從列表中刪除某些東西
- 5. 變量檢查,某些東西不對
- 6. 如何從表中選擇某些東西等於變量的東西
- 7. 如何在nsthread中測試某些東西
- 8. 如何確保某些http標題出現在響應中
- 9. 從棱鏡中的演示中如何改變某些東西?
- 10. 如何從mongo中的數組中找到某些東西
- 11. Xcode - 某些東西可能不會響應
- 12. [Android] min3d -collision檢測和一些東西
- 13. 如何從POST中獲得某些東西
- 14. 如何從jar中明確排除某些東西
- 15. 如何從這個mssql/php查詢中排除某些東西?
- 16. 如何從文件中刪除某些東西?
- 17. 如何測試某些東西是不是整數?
- 18. 如何檢查某些東西是否支持通用接口?
- 19. 在HTML C中搜索某些東西#
- 20. 如何檢測http響應代碼?
- 21. c#http在web響應中沒有得到任何東西
- 22. 如何讓一些東西不以響應形式包裝?
- 23. React Native:如何從屏幕上彈出某些東西並彈跳?
- 24. 如何在測試廚房中查看Log.info(「某些東西」)等日誌?
- 25. 如何測試某些東西是否在我創建的緩存中?
- 26. 如何檢查表單變量是否等於Perl中的某些東西?
- 27. 你如何在Python中調用某些東西?
- 28. 如何在Emacs中對某些東西着色?
- 29. 如何在自己的對象中訪問某些東西?
- 30. 在CUP中:如何使某些東西可選來解析?
那麼你的腳本至今呢? – odradek