【工具分享】Halive批量探测URL存活
0x01 简介
Halive是一个用于从短时间内状态未知的主机列表开始获取存活主机列表的软件。它速度很快,确实 halive 通过其异步设计实现了它的速度。
一旦我们有了从侦察阶段收集的域/子域列表(例如通过pdlist),我们希望快速检查哪些子域是活动的,哪些不是。
0x02使用
使用截图:
_ _ _ _ _____ _______
||||/ | | |_ _ // ____|
||_||/ _ | | | | //| _|
| _ |/ ___ | |___ | | V /||___
|_||_/_/ ______|___| _/|_____|
A super fast asynchronous http and https prober, to check who is(h)alive.
Developedby gnc
usage: halive [-h][-o [OUTPUTFILE]][-t CONCURRENCY][-s][-u] inputfiles [inputfiles ...]
An http/s prober, to check which URLs are alive.
positional arguments:
inputfiles input file with one url per line
options:
-h,--help show this help message andexit
-o [OUTPUTFILE],--output [OUTPUTFILE]
save results to the specified file
-t CONCURRENCY,--concurrency CONCURRENCY
number of concurrent http requests
-s,--only-success show only responses which are not4XX errors
-u,--only-urls show only active URLs, without response status codes
#用法:
#获取活动主机列表以及响应状态代码
halive big_list_of_urls.txt
#默认线程是20,提高线程可以加快探测速度
halive big_list_of_urls.txt -t 100
#将存活的URLS输出到report.txt
halive big_lists_of_urls.txt -t 100--only-urls --output report.txt
#过滤掉4xx状态码并保存到report.txt
halive big_lists_of_urls.txt -t 100--only-success --only-urls --output report.txt
0x03快速安装
git clone https://github.com/gnebbia/halive
cd halive
pip install -r requirements.txt
python setup.py install
声明:本文章仅作安全研究与学习参考,如用于其他用途,造成一切后果,均与作者和本公众号无关!如有侵权,联系删除。
原文始发于微信公众号(安全技术资讯):【工具分享】Halive批量探测URL存活
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论