%global _empty_manifest_terminate_build 0 Name: python-webtech Version: 1.3.3 Release: 1 Summary: Identify technologies used on websites License: GPLv3 URL: https://github.com/ShielderSec/webtech Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ce/6b/068dd9e5baf482ec2aeda2e1dec6f79ad939206656d7bd76d1f851c3cb65/webtech-1.3.3.tar.gz BuildArch: noarch Requires: python3-requests %description # WebTech Identify technologies used on websites. [More info on the release's blogpost](https://www.shielder.it/blog/webtech-identify-technologies-used-on-websites/). ## CLI Installation WebTech is available on pip: ``` pip install webtech ``` It can be also installed via setup.py: ``` python setup.py install --user ``` ## Burp Integration Download Jython 2.7.0 standalone and install it into Burp. In "Extender" > "Options" > "Python Environment": - Select the Jython jar location Finally, in "Extender" > "Extension": - Click "Add" - Select "py" or "Python" as extension format - Select the `Burp-WebTech.py` file in this folder ## Usage Scan a website: ``` $ webtech -u https://example.com/ Target URL: https://example.com ... $ webtech -u file://response.txt Target URL: ... ``` Full usage: ``` $ webtech -h Usage: webtech [options] Options: -h, --help show this help message and exit -u URLS, --urls=URLS url(s) to scan --ul=URLS_FILE, --urls-file=URLS_FILE url(s) list file to scan --ua=USER_AGENT, --user-agent=USER_AGENT use this user agent --rua, --random-user-agent use a random user agent --db=DB_FILE, --database-file=DB_FILE custom database file --oj, --json output json-encoded report --og, --grep output grepable report --udb, --update-db force update of remote db files ``` ## Use WebTech as a library ``` import webtech # you can use options, same as from the command line wt = webtech.WebTech(options={'json': True}) # scan a single website try: report = wt.start_from_url('https://shielder.it') print(report) except webtech.utils.ConnectionException: print("Connection error") ``` For more examples see `webtech_example.py`. ## Resources for database matching HTTP Headers information - http://netinfo.link/http/headers.html Cookie names - https://webcookies.org/top-cookie-names %package -n python3-webtech Summary: Identify technologies used on websites Provides: python-webtech BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-webtech # WebTech Identify technologies used on websites. [More info on the release's blogpost](https://www.shielder.it/blog/webtech-identify-technologies-used-on-websites/). ## CLI Installation WebTech is available on pip: ``` pip install webtech ``` It can be also installed via setup.py: ``` python setup.py install --user ``` ## Burp Integration Download Jython 2.7.0 standalone and install it into Burp. In "Extender" > "Options" > "Python Environment": - Select the Jython jar location Finally, in "Extender" > "Extension": - Click "Add" - Select "py" or "Python" as extension format - Select the `Burp-WebTech.py` file in this folder ## Usage Scan a website: ``` $ webtech -u https://example.com/ Target URL: https://example.com ... $ webtech -u file://response.txt Target URL: ... ``` Full usage: ``` $ webtech -h Usage: webtech [options] Options: -h, --help show this help message and exit -u URLS, --urls=URLS url(s) to scan --ul=URLS_FILE, --urls-file=URLS_FILE url(s) list file to scan --ua=USER_AGENT, --user-agent=USER_AGENT use this user agent --rua, --random-user-agent use a random user agent --db=DB_FILE, --database-file=DB_FILE custom database file --oj, --json output json-encoded report --og, --grep output grepable report --udb, --update-db force update of remote db files ``` ## Use WebTech as a library ``` import webtech # you can use options, same as from the command line wt = webtech.WebTech(options={'json': True}) # scan a single website try: report = wt.start_from_url('https://shielder.it') print(report) except webtech.utils.ConnectionException: print("Connection error") ``` For more examples see `webtech_example.py`. ## Resources for database matching HTTP Headers information - http://netinfo.link/http/headers.html Cookie names - https://webcookies.org/top-cookie-names %package help Summary: Development documents and examples for webtech Provides: python3-webtech-doc %description help # WebTech Identify technologies used on websites. [More info on the release's blogpost](https://www.shielder.it/blog/webtech-identify-technologies-used-on-websites/). ## CLI Installation WebTech is available on pip: ``` pip install webtech ``` It can be also installed via setup.py: ``` python setup.py install --user ``` ## Burp Integration Download Jython 2.7.0 standalone and install it into Burp. In "Extender" > "Options" > "Python Environment": - Select the Jython jar location Finally, in "Extender" > "Extension": - Click "Add" - Select "py" or "Python" as extension format - Select the `Burp-WebTech.py` file in this folder ## Usage Scan a website: ``` $ webtech -u https://example.com/ Target URL: https://example.com ... $ webtech -u file://response.txt Target URL: ... ``` Full usage: ``` $ webtech -h Usage: webtech [options] Options: -h, --help show this help message and exit -u URLS, --urls=URLS url(s) to scan --ul=URLS_FILE, --urls-file=URLS_FILE url(s) list file to scan --ua=USER_AGENT, --user-agent=USER_AGENT use this user agent --rua, --random-user-agent use a random user agent --db=DB_FILE, --database-file=DB_FILE custom database file --oj, --json output json-encoded report --og, --grep output grepable report --udb, --update-db force update of remote db files ``` ## Use WebTech as a library ``` import webtech # you can use options, same as from the command line wt = webtech.WebTech(options={'json': True}) # scan a single website try: report = wt.start_from_url('https://shielder.it') print(report) except webtech.utils.ConnectionException: print("Connection error") ``` For more examples see `webtech_example.py`. ## Resources for database matching HTTP Headers information - http://netinfo.link/http/headers.html Cookie names - https://webcookies.org/top-cookie-names %prep %autosetup -n webtech-1.3.3 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-webtech -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Wed May 10 2023 Python_Bot - 1.3.3-1 - Package Spec generated