web-scanner 2.0.1__tar.gz → 2.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- web_scanner-2.1.0/LICENSE +21 -0
- web_scanner-2.1.0/PKG-INFO +151 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/README.md +1 -1
- {web_scanner-2.0.1 → web_scanner-2.1.0}/pyproject.toml +2 -1
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/__init__.py +1 -1
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/core/context.py +1 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/core/scanner.py +1 -0
- web_scanner-2.1.0/webscanner/net/data/public_suffix_list.dat +16417 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/net/http.py +34 -1
- web_scanner-2.1.0/webscanner/net/psl.py +105 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/ui/app.py +16 -6
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/ui/app.tcss +8 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/ui/tables.py +20 -7
- web_scanner-2.0.1/LICENSE +0 -674
- web_scanner-2.0.1/PKG-INFO +0 -804
- {web_scanner-2.0.1 → web_scanner-2.1.0}/.gitignore +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/app.py +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/requirements.txt +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/__main__.py +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/cli.py +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/colors.py +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/core/__init__.py +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/core/models.py +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/core/module.py +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/helpers.py +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/modules/__init__.py +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/modules/dns.py +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/modules/headers.py +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/modules/links.py +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/modules/security.py +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/modules/seo.py +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/modules/ssl.py +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/modules/subdomains.py +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/modules/tech.py +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/modules/whois.py +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/net/__init__.py +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/ui/__init__.py +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/ui/data/countries.json +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/ui/export.py +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/ui/widgets.py +0 -0
- {web_scanner-2.0.1 → web_scanner-2.1.0}/webscanner/ui/worldmap.py +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 iamramizk
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: web-scanner
|
|
3
|
+
Version: 2.1.0
|
|
4
|
+
Summary: An async Textual TUI for website reconnaissance — DNS, WHOIS, TLS, security, tech-stack and SEO, with no paid APIs.
|
|
5
|
+
Project-URL: Homepage, https://github.com/iamramizk/web-scanner
|
|
6
|
+
Project-URL: Repository, https://github.com/iamramizk/web-scanner
|
|
7
|
+
Project-URL: Issues, https://github.com/iamramizk/web-scanner/issues
|
|
8
|
+
Author-email: iamramizk <59407701+iamramizk@users.noreply.github.com>
|
|
9
|
+
License: MIT License
|
|
10
|
+
|
|
11
|
+
Copyright (c) 2026 iamramizk
|
|
12
|
+
|
|
13
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
14
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
15
|
+
in the Software without restriction, including without limitation the rights
|
|
16
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
17
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
18
|
+
furnished to do so, subject to the following conditions:
|
|
19
|
+
|
|
20
|
+
The above copyright notice and this permission notice shall be included in all
|
|
21
|
+
copies or substantial portions of the Software.
|
|
22
|
+
|
|
23
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
24
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
25
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
26
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
27
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
28
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
29
|
+
SOFTWARE.
|
|
30
|
+
License-File: LICENSE
|
|
31
|
+
Keywords: dns,osint,recon,security,textual,tui,website,whois
|
|
32
|
+
Classifier: Development Status :: 4 - Beta
|
|
33
|
+
Classifier: Environment :: Console
|
|
34
|
+
Classifier: Intended Audience :: Information Technology
|
|
35
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
36
|
+
Classifier: Programming Language :: Python :: 3
|
|
37
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
38
|
+
Classifier: Topic :: Internet :: WWW/HTTP
|
|
39
|
+
Classifier: Topic :: Security
|
|
40
|
+
Requires-Python: >=3.11
|
|
41
|
+
Requires-Dist: beautifulsoup4>=4.12.2
|
|
42
|
+
Requires-Dist: pydig>=0.4.0
|
|
43
|
+
Requires-Dist: requests>=2.28.2
|
|
44
|
+
Requires-Dist: rich>=15.0.0
|
|
45
|
+
Requires-Dist: textual>=8.2.8
|
|
46
|
+
Requires-Dist: wappalyzer>=2.0.2
|
|
47
|
+
Description-Content-Type: text/markdown
|
|
48
|
+
|
|
49
|
+
# WebScanner
|
|
50
|
+
|
|
51
|
+
An async [Textual](https://textual.textualize.io/) TUI for website reconnaissance. Point it
|
|
52
|
+
at a domain and it concurrently gathers DNS, WHOIS, TLS, security, tech-stack and SEO
|
|
53
|
+
intelligence, then lays it out across tabs — with a live country map and a server-status
|
|
54
|
+
panel that stay pinned in place.
|
|
55
|
+
|
|
56
|
+
**No paid APIs.** Everything runs off free, public endpoints and the standard library:
|
|
57
|
+
`ip-api.com` for geolocation, Cloudflare/Google DoH and `dig` against public filtering
|
|
58
|
+
resolvers for blocklist checks, the system `whois`, and stdlib `ssl`/`socket`. Country
|
|
59
|
+
borders are embedded (Natural Earth), so even the map needs no tile service.
|
|
60
|
+
|
|
61
|
+

|
|
62
|
+
|
|
63
|
+
## Features
|
|
64
|
+
|
|
65
|
+
Nine tabs, scanned concurrently and rendered live as each module finishes:
|
|
66
|
+
|
|
67
|
+
- **DNS** — A / AAAA / NS / CNAME / SOA / MX / TXT / CAA / DS / DNSKEY records, plus email
|
|
68
|
+
authentication folded in: DMARC (`_dmarc`) and DKIM (probes ~40 common selectors).
|
|
69
|
+
- **Whois** — parsed system `whois`, with rich gTLD and ccTLD field support (registrar,
|
|
70
|
+
dates, nameservers, per-contact details).
|
|
71
|
+
- **Subdomains** — discovered natively from TLS certificate SANs and `socket` probes of
|
|
72
|
+
common subdomains — no third-party enumeration services.
|
|
73
|
+
- **SSL** — certificate issuer, subject, SANs, validity window, trust and expiry, parsed
|
|
74
|
+
from the live TLS handshake.
|
|
75
|
+
- **Security** — TCP connect port scan, presence of HTTP security headers (CSP, HSTS,
|
|
76
|
+
X-Frame-Options, …), and blocklist status across public filtering resolvers
|
|
77
|
+
(AdGuard, CleanBrowsing, Cloudflare, Google, OpenDNS, Quad9).
|
|
78
|
+
- **Headers** — the full set of HTTP response headers.
|
|
79
|
+
- **Tech** — technology-stack detection via [Wappalyzer](https://github.com/tunetheweb/wappalyzer):
|
|
80
|
+
name, category, confidence, groups and version.
|
|
81
|
+
- **SEO** — page content (title/description with length hints, H1–H3, social links), top
|
|
82
|
+
keyword n-grams, `robots.txt` and sitemaps, and JSON-LD structured data.
|
|
83
|
+
- **Links** — internal and external links, with their anchor text.
|
|
84
|
+
|
|
85
|
+
Alongside the tabs, two fixed panels:
|
|
86
|
+
|
|
87
|
+
- **Country map** — real country outlines auto-framed around the server's location, drawn
|
|
88
|
+
with braille characters (`+` / `-` to zoom).
|
|
89
|
+
- **Server** — online status and response time, IP, geolocation, ISP, AS, hosting provider
|
|
90
|
+
and detected tech.
|
|
91
|
+
|
|
92
|
+
## Installation
|
|
93
|
+
|
|
94
|
+
Requires Python 3.11+.
|
|
95
|
+
|
|
96
|
+
The easiest way is with [pipx](https://pipx.pypa.io/) (or [uv](https://docs.astral.sh/uv/)),
|
|
97
|
+
which installs `webscan` into its own isolated environment:
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
pipx install web-scanner
|
|
101
|
+
# or
|
|
102
|
+
uv tool install web-scanner
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
To install the latest unreleased code, point either tool at the repo instead:
|
|
106
|
+
`pipx install git+https://github.com/iamramizk/web-scanner`.
|
|
107
|
+
|
|
108
|
+
### From source (development)
|
|
109
|
+
|
|
110
|
+
```bash
|
|
111
|
+
git clone https://github.com/iamramizk/web-scanner.git
|
|
112
|
+
cd web-scanner
|
|
113
|
+
python3 -m venv .venv
|
|
114
|
+
source .venv/bin/activate # Unix/macOS (.venv\Scripts\activate on Windows)
|
|
115
|
+
pip install -e .
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## Usage
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
webscan example.com
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
You can also run it as a module (`python -m webscanner example.com`), or from a source
|
|
125
|
+
checkout without installing (`python app.py example.com`).
|
|
126
|
+
|
|
127
|
+
Press `s` inside the app to save every tab to CSV. When installed, results are written to a
|
|
128
|
+
`./<domain>_<timestamp>/` folder in your current directory.
|
|
129
|
+
|
|
130
|
+
## Updating
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
pipx upgrade web-scanner
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
If you installed from Git, `pipx upgrade` won't see new commits (the version is unchanged),
|
|
137
|
+
so reinstall from source instead:
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
pipx install --force git+https://github.com/iamramizk/web-scanner
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
### Keys
|
|
144
|
+
|
|
145
|
+
| Key | Action |
|
|
146
|
+
| --------------- | ------------------------------------------------------------------- |
|
|
147
|
+
| `←` / `→` `Tab` | Switch tabs |
|
|
148
|
+
| `r` | Rescan |
|
|
149
|
+
| `s` | Save — export every tab to CSV under `output/<domain>_<timestamp>/` |
|
|
150
|
+
| `esc` | Edit the domain and scan a new one |
|
|
151
|
+
| `q` | Quit |
|
|
@@ -10,7 +10,7 @@ panel that stay pinned in place.
|
|
|
10
10
|
resolvers for blocklist checks, the system `whois`, and stdlib `ssl`/`socket`. Country
|
|
11
11
|
borders are embedded (Natural Earth), so even the map needs no tile service.
|
|
12
12
|
|
|
13
|
-

|
|
13
|
+

|
|
14
14
|
|
|
15
15
|
## Features
|
|
16
16
|
|
|
@@ -17,7 +17,7 @@ classifiers = [
|
|
|
17
17
|
"Development Status :: 4 - Beta",
|
|
18
18
|
"Environment :: Console",
|
|
19
19
|
"Intended Audience :: Information Technology",
|
|
20
|
-
"License :: OSI Approved ::
|
|
20
|
+
"License :: OSI Approved :: MIT License",
|
|
21
21
|
"Programming Language :: Python :: 3",
|
|
22
22
|
"Programming Language :: Python :: 3 :: Only",
|
|
23
23
|
"Topic :: Internet :: WWW/HTTP",
|
|
@@ -49,6 +49,7 @@ packages = ["webscanner"]
|
|
|
49
49
|
[tool.hatch.build.targets.wheel.force-include]
|
|
50
50
|
"webscanner/ui/app.tcss" = "webscanner/ui/app.tcss"
|
|
51
51
|
"webscanner/ui/data/countries.json" = "webscanner/ui/data/countries.json"
|
|
52
|
+
"webscanner/net/data/public_suffix_list.dat" = "webscanner/net/data/public_suffix_list.dat"
|
|
52
53
|
|
|
53
54
|
[tool.hatch.build.targets.sdist]
|
|
54
55
|
include = [
|
|
@@ -26,6 +26,7 @@ class ScanContext:
|
|
|
26
26
|
status_code: int | None = None
|
|
27
27
|
response_time_ms: float | None = None
|
|
28
28
|
final_url: str | None = None
|
|
29
|
+
redirect_status: str | None = None # e.g. "301 Moved Permanently" for cross-domain redirects
|
|
29
30
|
tls_cert: dict[str, Any] | None = None
|
|
30
31
|
geo: dict[str, Any] | None = None
|
|
31
32
|
fetch_error: str | None = None
|
|
@@ -62,6 +62,7 @@ class AsyncScanner:
|
|
|
62
62
|
self.ctx.html = r["html"]
|
|
63
63
|
self.ctx.response_time_ms = r["elapsed_ms"]
|
|
64
64
|
self.ctx.final_url = r["final_url"]
|
|
65
|
+
self.ctx.redirect_status = r["redirect"]
|
|
65
66
|
except Exception as exc: # noqa: BLE001 - surfaced, not raised
|
|
66
67
|
self.ctx.fetch_error = repr(exc)
|
|
67
68
|
|