1. Install
pip install -r requirement.txt
配置API及账号 ./config.py
python Searpy -h
2. Help
baidu Engine --google Using google Engine --so Using 360so Engine --bing Using bing Engine --shodan Using shodan Engine --fofa Using fofa Engine --zoomeye Using zoomeye Engine --goo Using goo Engine --yahoo Using yahoo Engine SCRIPT: --shodan_icon SHODAN_ICON Get ip list which using the same favicon.ico --fofa_icon FOFA_ICON Get ip list which using the same favicon.ico MISC: -s SEARCH Speciy Keyword -o OUTPUT Specify output file default output.txt -p PAGE Search page (default 1) -l LIMIT Maximum searching results (default:10) Only Shodan">
optional arguments:
-h, --help show this help message and exit
ENGINE:
--baidu Using baidu Engine
--google Using google Engine
--so Using 360so Engine
--bing Using bing Engine
--shodan Using shodan Engine
--fofa Using fofa Engine
--zoomeye Using zoomeye Engine
--goo Using goo Engine
--yahoo Using yahoo Engine
SCRIPT:
--shodan_icon SHODAN_ICON
Get ip list which using the same favicon.ico
--fofa_icon FOFA_ICON
Get ip list which using the same favicon.ico
MISC:
-s SEARCH Speciy Keyword
-o OUTPUT Specify output file default output.txt
-p P AGE Search page (default 1)
-l LIMIT Maximum searching results (default:10) Only Shodan
2.1 示例
python3 Searpy.py --shodan -s "weblogic" -l 10
python3 Searpy.py --google -s "inurl:login.action" -p 1
2.2 其他功能
利用favicon.icon图标hash来寻找使用相同图标的网站,可用于溯源真实IP和资产发现
python3 Searpy.py --fofa_icon https://www.qq.com
3. 模块调用
>>> s = Bing('inurl:php?id=1', 2)
>>> s.search()
>>> for i in s.result:
>>> print(i)