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软件包。