phantomprobe 0.9.1__tar.gz → 0.9.2__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.
Files changed (45) hide show
  1. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/CHANGELOG.md +14 -0
  2. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/PKG-INFO +1 -1
  3. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/src/phantomprobe/cli.py +20 -1
  4. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/src/phantomprobe/constants.py +1 -1
  5. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/tests/test_cli.py +29 -0
  6. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/.gitignore +0 -0
  7. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/CONTRIBUTING.md +0 -0
  8. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/LICENSE +0 -0
  9. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/README.md +0 -0
  10. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/pyproject.toml +0 -0
  11. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/scripts/audit_cpe_mapping.py +0 -0
  12. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/src/phantomprobe/__init__.py +0 -0
  13. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/src/phantomprobe/__main__.py +0 -0
  14. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/src/phantomprobe/active.py +0 -0
  15. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/src/phantomprobe/aggressive.py +0 -0
  16. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/src/phantomprobe/asgi.py +0 -0
  17. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/src/phantomprobe/burp.py +0 -0
  18. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/src/phantomprobe/cookies.py +0 -0
  19. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/src/phantomprobe/cve.py +0 -0
  20. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/src/phantomprobe/dashboard.py +0 -0
  21. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/src/phantomprobe/dns_security.py +0 -0
  22. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/src/phantomprobe/doh.py +0 -0
  23. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/src/phantomprobe/http_checks.py +0 -0
  24. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/src/phantomprobe/http_client.py +0 -0
  25. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/src/phantomprobe/js.py +0 -0
  26. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/src/phantomprobe/models.py +0 -0
  27. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/src/phantomprobe/passive.py +0 -0
  28. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/src/phantomprobe/report.py +0 -0
  29. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/src/phantomprobe/screenshot.py +0 -0
  30. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/src/phantomprobe/takeover.py +0 -0
  31. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/src/phantomprobe/waf.py +0 -0
  32. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/tests/__init__.py +0 -0
  33. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/tests/conftest.py +0 -0
  34. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/tests/test_active.py +0 -0
  35. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/tests/test_aggressive.py +0 -0
  36. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/tests/test_audit_script.py +0 -0
  37. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/tests/test_burp.py +0 -0
  38. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/tests/test_cookies.py +0 -0
  39. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/tests/test_cve.py +0 -0
  40. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/tests/test_dashboard.py +0 -0
  41. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/tests/test_dns_security.py +0 -0
  42. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/tests/test_http_checks.py +0 -0
  43. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/tests/test_http_client.py +0 -0
  44. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/tests/test_takeover.py +0 -0
  45. {phantomprobe-0.9.1 → phantomprobe-0.9.2}/tests/test_waf.py +0 -0
@@ -4,6 +4,19 @@ All notable changes to PhantomProbe are recorded here. The format follows
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and the project
5
5
  follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.9.2] - 2026-09-11
8
+
9
+ ### Fixed
10
+
11
+ - **A skipped dashboard was silent.** On a plain `pip install phantomprobe`
12
+ without the `[dashboard]` extra, `--dashboard` correctly skipped the web UI,
13
+ but the only notice printed once at the start and scrolled away during the
14
+ scan, so the run looked like it did nothing. The scan always wrote its reports
15
+ to the current directory, where a user expecting a dashboard would not look.
16
+ The end-of-run summary now always states where the reports were written, and
17
+ says plainly when `--dashboard` was requested without its dependencies, with
18
+ the one command that installs them.
19
+
7
20
  ## [0.9.1] - 2026-09-04
8
21
 
9
22
  ### Fixed
@@ -90,5 +103,6 @@ against its live source before shipping.
90
103
  - All outbound fetches go through a helper enforcing an **http/https scheme
91
104
  allowlist**, so a hostile page cannot point the scanner at `file://`.
92
105
 
106
+ [0.9.2]: https://github.com/Ravel226/PhantomProbe/releases/tag/v0.9.2
93
107
  [0.9.1]: https://github.com/Ravel226/PhantomProbe/releases/tag/v0.9.1
94
108
  [0.9.0]: https://github.com/Ravel226/PhantomProbe/releases/tag/v0.9.0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: phantomprobe
3
- Version: 0.9.1
3
+ Version: 0.9.2
4
4
  Summary: Passive-first reconnaissance scanner for penetration testers and bug bounty hunters
5
5
  Project-URL: Homepage, https://github.com/Ravel226/PhantomProbe
6
6
  Project-URL: Repository, https://github.com/Ravel226/PhantomProbe
@@ -253,6 +253,7 @@ def main(argv: Optional[List[str]] = None) -> int:
253
253
 
254
254
  # Initialize dashboard server first so scan progress can stream to it.
255
255
  dashboard_server = None
256
+ dashboard_unavailable = False
256
257
  if args.dashboard:
257
258
  try:
258
259
  from .dashboard import DashboardServer, FASTAPI_AVAILABLE
@@ -266,7 +267,13 @@ def main(argv: Optional[List[str]] = None) -> int:
266
267
  )
267
268
  print("[*] Dashboard will update with scan progress")
268
269
  else:
269
- print("[!] Dashboard requires: pip install \"phantomprobe[dashboard]\"")
270
+ # The scan still runs and writes reports; only the dashboard is
271
+ # skipped. Remembered so the end-of-run summary can say so, since
272
+ # this line scrolls out of view during a long scan.
273
+ dashboard_unavailable = True
274
+ print("[!] Dashboard requires the optional dependencies, and the "
275
+ "scan will run without it.")
276
+ print(" Install them with: pip install \"phantomprobe[dashboard]\"")
270
277
 
271
278
  def broadcast_progress(phase: str, message: str = ""):
272
279
  if dashboard_server:
@@ -352,6 +359,18 @@ def main(argv: Optional[List[str]] = None) -> int:
352
359
  print(f"Total findings: {len(findings)}")
353
360
  if cve_results:
354
361
  print(f"CVE matches: {len(cve_results)}")
362
+ # Always state where the reports landed: the default is the current
363
+ # directory, and a user who expected a dashboard may not think to look.
364
+ print("Reports written to:")
365
+ print(f" {md_filename}")
366
+ print(f" {json_filename}")
367
+ if dashboard_unavailable:
368
+ print()
369
+ print("[!] --dashboard was requested but its dependencies are not "
370
+ "installed, so no dashboard was served.")
371
+ print(" Your findings are in the reports above. To use the "
372
+ "dashboard next time:")
373
+ print(" pip install \"phantomprobe[dashboard]\"")
355
374
  print()
356
375
 
357
376
  # Launch Dashboard (optional) - blocks until interrupted.
@@ -7,7 +7,7 @@ outbound request. Keep this module dependency-free so any other module can
7
7
  import it without risking a circular import.
8
8
  """
9
9
 
10
- __version__ = "0.9.1"
10
+ __version__ = "0.9.2"
11
11
 
12
12
  # Sent on every request PhantomProbe makes. Identifying the scanner honestly is
13
13
  # deliberate: it lets target owners attribute traffic during authorized tests.
@@ -150,3 +150,32 @@ class TestConsoleEncoding:
150
150
  capturer.playwright_available = True
151
151
  # Must return None rather than propagating the encode error.
152
152
  assert capturer.capture("example.com") is None
153
+
154
+
155
+ class TestDashboardUnavailable:
156
+ """
157
+ Requesting --dashboard without the optional deps must not look like a
158
+ silent failure: the scan still writes its reports, and the run says both
159
+ where they went and why no dashboard appeared. This mirrors a real user
160
+ report after a plain `pip install phantomprobe`.
161
+ """
162
+
163
+ def test_scan_completes_and_explains_the_missing_dashboard(self, tmp_path, capsys):
164
+ import phantomprobe.dashboard as dashboard_module
165
+
166
+ with mock.patch.object(cli.ReconEngine, "run", return_value=[]), \
167
+ mock.patch.object(dashboard_module, "FASTAPI_AVAILABLE", False):
168
+ code = cli.main([
169
+ "example.com", "--dashboard", "--no-browser",
170
+ "--output-dir", str(tmp_path),
171
+ ])
172
+
173
+ assert code == 0
174
+ # The reports are the fallback deliverable, so they must exist.
175
+ assert (tmp_path / "report-example.com.md").exists()
176
+ assert (tmp_path / "report-example.com.json").exists()
177
+
178
+ out = capsys.readouterr().out
179
+ # The user is told where to find them and how to get the dashboard.
180
+ assert "Reports written to:" in out
181
+ assert 'pip install "phantomprobe[dashboard]"' in out
File without changes
File without changes
File without changes