## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-FIERCEOJ-SHONYDANZA
# ShonyDanza
一个可定制、易于导航的工具,利用Shodan的力量进行侦察、渗透测试和防御。

使用ShonyDanza,你可以:
* 基于搜索条件获取IP
* 根据预先配置的阈值自动从结果中排除蜜罐
* 预配置所有IP搜索以根据指定的网络范围过滤
* 预配置搜索限制
* 使用“构建搜索”功能通过简单的构建块来制作搜索
* 使用预设搜索并预配置你自己的预设搜索
* 检查IP是否已知的恶意软件C2
* 获取主机和域名配置文件
* 按需扫描
* 查找漏洞利用
* 获取搜索和漏洞利用的总计数
* 自动将漏洞利用代码、IP列表、主机配置文件、域名配置文件和扫描结果保存到ShonyDanza中的目录
## 安装
`git clone https://github.com/fierceoj/ShonyDanza.git`
> 依赖
* python3
* shodan库
`cd ShonyDanza`
`pip3 install -r requirements.txt`
## 用法
> 编辑config.py以包含你想要的配置
> `cd configs`
> `sudo nano config.py`
>
root@kitploit:~
#config file for shonydanza searches
#REQUIRED
#maximum number of results that will be returned per search
#default is 100
SEARCH_LIMIT = 100
#REQUIRED
#IPs exceeding the honeyscore limit will not show up in IP results
#scale is 0.0 to 1.0
#adjust to desired probability to restrict results by threshold, or keep at 1.0 to include all results
HONEYSCORE_LIMIT = 1.0
#REQUIRED - at least one key: value pair
#add a shodan dork to the dictionary below to add it to your shonydanza stock searches menu
#see https://github.com/jakejarvis/awesome-shodan-queries for a great source of queries
#check into "vuln:" filter if you have Small Business Plan or higher (e.g., vuln:cve-2019-11510)
STOCK_SEARCHES = {
'ANONYMOUS_FTP':'ftp anonymous ok',
'RDP':'port:3389 has_screenshot:true',
'OPEN_TELNET':'port:23 console gateway -password',
'APACHE_DIR_LIST':'http.title:"Index of /"',
'SPRING_BOOT':'http.favicon.hash:116323821',
'HP_PRINTERS':'"Serial Number:" "Built:" "Server: HP HTTP"',
'DOCKER_API':'"Docker Containers:" port:2375',
'ANDROID_ROOT_BRIDGE':'"Android Debug Bridge" "Device" port:5555',
'MONGO_EXPRESS_GUI':'"Set-Cookie: mongo-express=" "200 OK"',
'CVE-2019-11510_PULSE_VPN':'http.html:/dana-na/',
'CVE-2019-19781_CITRIX_NETSCALER':'http.waf:"Citrix NetScaler"',
'CVE-2020-5902_F5_BIGIP':'http.favicon.hash:-335242539 "3992"',
'CVE-2020-3452_CISCO_ASA_FTD':'200 "Set-Cookie: webvpn;"'
}
#OPTIONAL
#IP or cidr range constraint for searches that return list of IP addresses
#use comma-separated list to designate multiple (e.g. 1.1.1.1,2.2.0.0/16,3.3.3.3,3.3.3.4)
#NET_RANGE = '0.0.0.0/0'
> 运行
> `cd ../`
> `python3 shonydanza.py`
>
请参阅这篇如何操作的文章以获取额外的使用说明。
注意:这篇文章中的API密钥配置信息已不再准确,因为不久前它已从配置文件中作为一个可硬编码的属性被移除,脚本改为使用getpass()来获取它。除此之外,这篇教程仍然有用。正在努力更新博客,但目前博客平台不允许我更新。
## 法律声明
本项目仅用于教育和道德测试目的。未经事先双方同意,使用ShonyDanza攻击目标是违法的。最终用户有责任遵守所有适用的地方、州和联邦法律。开发者不承担任何责任,也不对因使用本程序而造成的任何误用或损害负责。