Bing-ip2hosts是Bing.com Web刮板,可通過IP地址發現主機名。

Bing-ip2hosts是Bing.com Web刮板,通過IP地址發現主機名。 Bing是Microsoft搜索引擎,以前稱為MSN搜索和實時搜索。
它提供了搜索引擎獨特的功能 - 允許通過IP地址進行搜索。 Bing-ip2hosts使用此功能。
它可用於發現子域和其他相關域。它還有助於識別在共享託管環境中託管的網站。該技術遵循滲透測試或漏洞賞金的偵察階段的最佳實踐,以擴大目標的攻擊表面。
與Web刮擦Bing的其他許多其他偵察工具不同,此工具具有智能刮擦行為,可以最大程度地發現主機名。

Bing提供了搜索引擎獨特的功能 - 它允許通過IP地址進行搜索。要嘗試一下,請訪問bing.com並蒐索IP:40.113.200.201 。它應該向您顯示Microsoft.com的結果。如果顯示空的結果,請添加一個點。
與其他刮擦10頁後停止的Bing Web刮板不同,Bing-ip2hosts可以刮擦數千個結果。它繼續刮擦搜索結果頁面,直到不再找到新的結果為止。
當滿足以下任何條件時,刮擦完成:
當Bing報告已刪除某些結果時,它還提醒用戶。
如果通過IP地址搜索返回空的搜索結果,請添加一個點。 bing-ip2host總是將一個點(%2E)附加到查詢中,以避免此問題。
默認情況下,此工具將搜索語言指定為“ en-us”。市場是不安的,因為這似乎可以最大程度地提高結果。
可以配置以下URL參數:
這兩個參數都可以影響返回多少結果。
可以在docs.microsoft.com/en-us/azure/cognitive-services/bing-web-search/language-support上找到市場代碼的完整列表。
有時,Bing不允許用戶到達搜索結果頁面的末尾。
例如,在顯示3頁結果的搜索中,它並不總是允許用戶到達第三頁。相反,它將返回結果的第一頁。可以通過搜索ip:8.8.8.8 . 。請注意,它並不總是返回到的第一頁。

使用以下命令獲取使用信息。
bing-ip2hosts is a Bing.com web scraper that discovers websites by IP address.
Use for OSINT and discovering attack-surface of penetration test targets.
Usage: ./bing-ip2hosts [OPTIONS] IP|hostname
OPTIONS are:
-o FILE Output hostnames to FILE.
-i FILE Input list of IP addresses or hostnames from FILE.
-n NUM Stop after NUM scraped pages return no new results (Default: 5).
-l Select the language for use in the setlang parameter (Default: en-us).
-m Select the market for use in the setmkt parameter (Default is unset).
-u Only display hostnames. Default is to include URL prefixes.
-c CSV output. Outputs the IP and hostname on each line, separated by a comma.
-q Quiet. Disable output except for final results.
-t DIR Use this directory instead of /tmp.
-V Display the version number of bing-ip2hosts and exit.
bing-ip2hosts需要wget。默認情況下,在Ubuntu Linux和Kali Linux中安裝了這一點。
它可以與自製的Macos一起安裝。
homebrew install wget它可以使用APT安裝在Debian和Ubuntu Linux中。
sudo apt install wget將bing-ip2hosts複製到您的$路徑中的文件夾中。
sudo cp ./bing-ip2hosts /usr/local/bin/Bing-ip2hosts使用bash腳本語言。
眾所周知,它可以與以下系統一起使用。
GNU bash, version 4.4.20(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Bash與MacOS捆綁的版本於2007年發布,是獲得GPLV2許可的最新版本。最近的版本已獲得GPLV3的許可,其許可條款阻止了Apple將其捆綁在MacOS中。
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin19)
Copyright (C) 2007 Free Software Foundation, Inc.
以下是通過IP地址搜索Bing的項目列表。
這是用於使用Bing偵察的其他相關項目的列表。請注意,這些不會通過IP地址搜索Bing。
版權所有Andrew Horton,又名UrbanAdventurer。
該項目是根據GPL版本3進行許可的。請參閱附件的LICENSE.txt 。
⚒️如果您有任何想法,只需打開一個問題,告訴我您的想法。
如果您想做出貢獻,請分配存儲庫並根據需要進行更改。拉力請求非常歡迎。
該項目使用以下OpenSource軟件包。