diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-10 05:26:36 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-10 05:26:36 +0000 |
| commit | 1edc13ebb432906f8b79c61255c4d4ddb41169a1 (patch) | |
| tree | 84f47746c041797714620a32b73d4d83210ab47b | |
| parent | 26f16d6d3f6639943c1f9246617ef9685c7a7362 (diff) | |
automatic import of python-webtechopeneuler20.03
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | python-webtech.spec | 355 | ||||
| -rw-r--r-- | sources | 1 |
3 files changed, 357 insertions, 0 deletions
@@ -0,0 +1 @@ +/webtech-1.3.3.tar.gz diff --git a/python-webtech.spec b/python-webtech.spec new file mode 100644 index 0000000..c67bd53 --- /dev/null +++ b/python-webtech.spec @@ -0,0 +1,355 @@ +%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 <Python_Bot@openeuler.org> - 1.3.3-1 +- Package Spec generated @@ -0,0 +1 @@ +7a01bc3130fe783630cbbc6dc616d9d4 webtech-1.3.3.tar.gz |
