
एक थ्रेडेड, रिकर्सिव, HTTP/2 पर वेब डायरेक्ट्री ब्रूट-फोर्स स्कैनर।
एक तेज़, थ्रेडेड, पुनरावर्ती, वेब निर्देशिका ब्रूट-फोर्स स्कैनर HTTP/2 पर hyper का उपयोग करते हुए, Gobuster से प्रेरित।
Python 3.6 आवश्यक है।
आपको केवल एक डिपेंडेंसी इंस्टॉल करनी होगी। यदि आपके पास hyper नहीं है, तो चलाएं:
pip3 install -r requirements.txt
usage: h2buster.py [-h] -w wordlist -u target [-c connections=8]
[-t threads=20] [-m http_method=HEAD]
[-r directory_depth=2] [-hd header_list]
[-x extension_list] [-b http_code_list] [-l] [-vr] [-wc]
[-rb] [-nc]
h2buster: an HTTP/2 web directory brute-force scanner.
arguments:
-h, --help show this help message and exit
-w wordlist Directory wordlist
-u target Target URL/IP address ([scheme://]host[:port]).
Default port is 443 and HTTPS enabled. To specify
otherwise, use ':port' and/or 'http://' (port will
default to 80 then).
-c connections=8 Number of HTTP/2 connections.
-t threads=20 Number of threads per connection.
-m http_method=HEAD HTTP request method. Allowed values are GET, HEAD.
-r directory_depth=2 Maximum recursive directory depth. Minimum is 1,
unlimited is 0.
-hd header_list List of headers in the format
'header->value|header->value...'. For example: -hd
'user-agent->Mozilla/5.0|accept-encoding->gzip,
deflate, br'.
-x extension_list List of file extensions to check separated by a
vertical bar (|). For example, -x '.php|.js|blank|/'.
The 'blank' keyword signifies no file extension.
Default extensions are '/', 'blank', '.html', '.php'
-b http_code_list List of blacklisted response codes separated by a
vertical bar (|). Directories with these response
codes will not be shown in the output. Default is 404.
-l Flag: show response length in output. This overrides
the request method to GET.
-vr Flag: force TLS certificate verification.
-wc Flag: request a random path and analyze response to
detect false positives (wildcard processing).
-rb Flag: scan for a robots.txt file. If found, a prompt
will be displayed asking whether to use the results.
-nc Flag: disable colored output text.
$ python3 h2buster.py -w test/small.txt -u www.google.com -c4 -t15 -m GET -x 'blank|/' -r1 -hd 'user-agent->h2buster' -b '404|301'
यह www.google.com को स्कैन करेगा, 4 कनेक्शनों पर प्रत्येक में 15 थ्रेड्स के साथ, इनपुट वर्डलिस्ट small.txt पर GET अनुरोध करते हुए। वर्डलिस्ट के प्रत्येक एंट्री को ज्यों-का-त्यों भेजा जाएगा, साथ ही इसमें एक स्लैश (/) जोड़कर भी। मिली निर्देशिकाओं को पुनरावर्ती रूप से स्कैन नहीं किया जाएगा (गहराई 1 है)। स्ट्रिंग h2buster को यूज़र एजेंट के रूप में भेजा जाएगा। रिस्पॉन्स कोड 404 और 301 आउटपुट में नहीं दिखाए जाएंगे।
उन विशेषताओं की सूची के लिए TODO फ़ाइल देखें जिन पर काम करने की आवश्यकता है।