Library to parse wappalyzer technologies.json and extracts matches from HTTP responses
Project description
wap
Library to parse Wappalyzer technologies.json and use its rules to discover web technologies by looking in the HTTP responses.
Functionality is similar to the wappalyzer core module, but in python.
Installation
From pypi:
pip3 install wap
From repo:
git clone https://github.com/blackarrowsec/wap
cd wap/
python3 setup.py install
Example
Here is a little example that uses almost all functionalities of wap with regex to retrieve the technologies of github:
import requests
import wap
technologies, categories = wap.load_file("technologies.json")
resp = requests.get("https://www.github.com")
techno_matches = wap.discover_requests_technologies(technologies, resp)
for t in techno_matches:
fields = [t.technology.name]
fields.append(t.version)
fields.append(str(t.confidence))
fields.append(",".join(
[c.name for c in t.technology.categories]
))
print(" ".join(fields))
More examples in examples folder.
Documentation
Documentation can be found in https://wap.readthedocs.io.
Adding new technologies
If you want that wap detects a new technology, you can add your rules to the technologies.json file and load it with wap.
Please, consider to do a pull request to Wappalyzer repo and share your rules with the community. Follow the rules in Adding a new technology.
Please do not submit pull requests related to technologies.json, since this repository is not related with Wappalyzer.
Author
Eloy Pérez (@Zer1t0) [ www.blackarrow.net - www.tarlogic.com ]
License
All the code included in this project is licensed under the terms of the GNU LGPLv3 license.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.