
OWASP Foundation Web Respository
WWWGrep एक तेज़ खोज “ग्रेपिंग” तंत्र है जो HTML तत्वों को प्रकार के अनुसार जांचता है और केंद्रित (एकल), बहु (फ़ाइल आधारित URLs) और पुनरावर्ती (रूट डोमेन के संबंध में या नहीं) खोजों को अनुमति देता है। हेडर नाम और मान भी इस प्रकार पुनरावर्ती रूप से खोजे जा सकते हैं। WWWGrep को दोनों ब्रेकर और बिल्डर की मदद के लिए डिज़ाइन किया गया था ताकि वे निरीक्षणाधीन कोड आधारों की त्वरित जांच कर सकें, कुछ उपयोग मामले और उदाहरण नीचे दिखाए गए हैं।
स्थापना
git clone
pip3 install -r requirements.txt
python3 wwwgrep.py <arguments and parameters>
निर्भरताएँ (pip3 install -r requirements.txt)
- Python 3.5+
- BeautifulSoup 4
- UrlLib.parse
- requests_html
- argparse
- requests
- re
- os.path
wwwgrep.py [target/file] [search_string] [search params/criteria/recursion etc]
Search Inputs
search_string Specify the string to search for or alternatively “”
for all objects of type specified in search parameters
-t --target Specify a single URL as a target for the search
-f --file Specify a file containing a list of URLs to search
Recursion
-rr --recurse-root Limits URL recursion to the domain provided in the target
-ra --recurse-any Allows recursion to extend beyond the domain of the target
Matching Criteria
-i --ignore-case Performs case insensitive matching (default is to respect case)
-d --dedupe Allow duplicate findings per page (default is to de-duplicate findings)
-r --no-redirects Do not allow redirects (default is to allow redirects)
-b --no-base-url Omit the URL of the match from the output (default is to include the URL)
-x --regex Allows the use of RegEX matches (search_string is treated as a RegEX, default is off)
-e --separator Specify and output specifier (default is : )
-j --java-render Turns on JavaScript rendering of page objects and text (default is off)
-p --linked-js-on Turns on searching of linked (script src tags) Java Script (default is off)
Request Parameters
-ps --https-proxy Specify a proxy for the HTTPS protocol in https://<ip>:<port> format
-pp --http-proxy Specify a proxy for the HTTP protocol in http://<ip>:<port> format
-hu --user-agent Specify a string to use as the user agent in the request
-ha --auth-header Specify a bearer token or other auth string to use in the request header
Search Parameters
-s --all Search all page HTML and scripts for terms that match the search specification
-sr --relative Search page links that match the search specification as relative URLs
-sa --absolute Search page links that match the search specification as absolute URLs
-si --input-fields Search page input fields that match the search specification
-ss --scripts Search scripts tags that match the search specification
-st --text Search visible text on the page that matches the search specification
-sc --comments Search comments on the page that match the search specification
-sm --meta Search in page metadata for matches to the search specification
-sf --hidden Search in hidden fields for specific matches to the search specification
-sh --header-name Search response headers for specific matches to the search specification
-sv --header-value Search response header values for specific matches to the search specification
सभी इनपुट फ़ील्ड खोजें जिनका नाम login है, एक साइट पर पुनरावर्ती रूप से, बिना रूट डोमेन छोड़े और मिलान में केस संवेदनशीलता के बिना
wwwgrep.py -t https://www.target.com -i -si “login” -rr
एक साइट के सभी पृष्ठों पर “to do” शब्द वाली सभी टिप्पणियाँ खोजें
wwwgrep.py -t https://www.target.com -i -sc “to do” -rr
एक विशिष्ट वेब पृष्ठ पर सभी टिप्पणियाँ खोजें
wwwgrep.py -t https://www.target.com/some_page -i -sc “”
फ़ाइल input.txt में निहित वेब अनुप्रयोगों की सूची के भीतर सभी छिपे हुए फ़ील्ड खोजें, साइट पुनरावर्तन का उपयोग करके
wwwgrep.py -f input.txt -sf “” -rr