scopez 0.2.0__tar.gz → 0.2.1__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 (38) hide show
  1. {scopez-0.2.0/src/scopez.egg-info → scopez-0.2.1}/PKG-INFO +1 -1
  2. {scopez-0.2.0 → scopez-0.2.1}/pyproject.toml +1 -1
  3. scopez-0.2.1/src/__version__.py +1 -0
  4. {scopez-0.2.0 → scopez-0.2.1}/src/analysis.py +26 -21
  5. {scopez-0.2.0 → scopez-0.2.1/src/scopez.egg-info}/PKG-INFO +1 -1
  6. scopez-0.2.0/src/__version__.py +0 -1
  7. {scopez-0.2.0 → scopez-0.2.1}/.github/logo.svg +0 -0
  8. {scopez-0.2.0 → scopez-0.2.1}/.github/usage.png +0 -0
  9. {scopez-0.2.0 → scopez-0.2.1}/.github/workflows/publish.yml +0 -0
  10. {scopez-0.2.0 → scopez-0.2.1}/.github/workflows/ruff.yml +0 -0
  11. {scopez-0.2.0 → scopez-0.2.1}/.gitignore +0 -0
  12. {scopez-0.2.0 → scopez-0.2.1}/.pre-commit-config.yaml +0 -0
  13. {scopez-0.2.0 → scopez-0.2.1}/.scripts/build_macos.sh +0 -0
  14. {scopez-0.2.0 → scopez-0.2.1}/.scripts/change_version.sh +0 -0
  15. {scopez-0.2.0 → scopez-0.2.1}/LICENSE +0 -0
  16. {scopez-0.2.0 → scopez-0.2.1}/README.md +0 -0
  17. {scopez-0.2.0 → scopez-0.2.1}/SECURITY.md +0 -0
  18. {scopez-0.2.0 → scopez-0.2.1}/setup.cfg +0 -0
  19. {scopez-0.2.0 → scopez-0.2.1}/src/__init__.py +0 -0
  20. {scopez-0.2.0 → scopez-0.2.1}/src/icons/404.png +0 -0
  21. {scopez-0.2.0 → scopez-0.2.1}/src/icons/cidr.png +0 -0
  22. {scopez-0.2.0 → scopez-0.2.1}/src/icons/fqdn.png +0 -0
  23. {scopez-0.2.0 → scopez-0.2.1}/src/icons/ipv4.png +0 -0
  24. {scopez-0.2.0 → scopez-0.2.1}/src/icons/target.png +0 -0
  25. {scopez-0.2.0 → scopez-0.2.1}/src/icons/url.png +0 -0
  26. {scopez-0.2.0 → scopez-0.2.1}/src/main.py +0 -0
  27. {scopez-0.2.0 → scopez-0.2.1}/src/models.py +0 -0
  28. {scopez-0.2.0 → scopez-0.2.1}/src/print.py +0 -0
  29. {scopez-0.2.0 → scopez-0.2.1}/src/scopez.egg-info/SOURCES.txt +0 -0
  30. {scopez-0.2.0 → scopez-0.2.1}/src/scopez.egg-info/dependency_links.txt +0 -0
  31. {scopez-0.2.0 → scopez-0.2.1}/src/scopez.egg-info/entry_points.txt +0 -0
  32. {scopez-0.2.0 → scopez-0.2.1}/src/scopez.egg-info/requires.txt +0 -0
  33. {scopez-0.2.0 → scopez-0.2.1}/src/scopez.egg-info/top_level.txt +0 -0
  34. {scopez-0.2.0 → scopez-0.2.1}/src/targets.py +0 -0
  35. {scopez-0.2.0 → scopez-0.2.1}/src/utils.py +0 -0
  36. {scopez-0.2.0 → scopez-0.2.1}/src/validation.py +0 -0
  37. {scopez-0.2.0 → scopez-0.2.1}/src/verbose.py +0 -0
  38. {scopez-0.2.0 → scopez-0.2.1}/src/visualization.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scopez
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Scopez verifies connectivity to target servers, reveals CDN presence, and provides detailed target insights like reachability and RDAP.
5
5
  Author-email: Christos Kaltsas <christos@xcalts.co>
6
6
  Maintainer-email: Christos Kaltsas <christos@xcalts.co>
@@ -8,7 +8,7 @@ scopez = ["icons/*.png", "geoip2-ipv4.csv"]
8
8
  # --- Project Settings ---
9
9
  [project]
10
10
  name = "scopez"
11
- version = "v0.2.0"
11
+ version = "v0.2.1"
12
12
  description = "Scopez verifies connectivity to target servers, reveals CDN presence, and provides detailed target insights like reachability and RDAP."
13
13
  readme = "README.md"
14
14
  requires-python = ">3.11"
@@ -0,0 +1 @@
1
+ __version__ = 'v0.2.1'
@@ -261,27 +261,27 @@ class Analyzer(pydantic.BaseModel):
261
261
  cname_record = ''
262
262
  try:
263
263
  answer = dns.resolver.resolve_at(random.choice(DNS_SERVERS), f.dns_chain[-1], 'CNAME')
264
- time.sleep(1)
264
+
265
+ time.sleep(0.2)
265
266
 
266
267
  for rdap in answer:
267
268
  cname_record = str(rdap.target).rstrip('.') # Remove the trailing dot.
268
269
 
269
270
  except dns.resolver.NXDOMAIN:
270
- # NXDOMAIN stands for Non-Existent Domain.
271
+ verbose.debug(f'{f.dns_chain[-1]}: NXDOMAIN - domain does not exist')
271
272
  break
272
273
 
273
274
  except dns.resolver.NoAnswer:
274
- # The domain does exist, but the specific DNS record type you're asking for is missing.
275
+ verbose.debug(f'{f.dns_chain[-1]}: NoAnswer - no CNAME record found, move to A record lookup')
275
276
  break
276
277
 
277
- except dns.resolver.LifetimeTimeout:
278
- # The resolution lifetime expired.
279
- verbose.debug('dns.resolver.LifetimeTimeout')
280
- continue
281
-
282
278
  except dns.resolver.NoNameservers:
283
- # If no non-broken nameservers are available to answer the question.
284
- verbose.debug('dns.resolver.NoNameservers')
279
+ verbose.debug(f'{f.dns_chain[-1]}: NoNameservers - authoritative servers are unreachable')
280
+ break
281
+
282
+ except dns.resolver.LifetimeTimeout:
283
+ verbose.debug(f'{f.dns_chain[-1]}: LifetimeTimeout - wait a couple of seconds and repeat')
284
+ time.sleep(2)
285
285
  continue
286
286
 
287
287
  f.dns_chain.append(cname_record)
@@ -291,8 +291,14 @@ class Analyzer(pydantic.BaseModel):
291
291
  ############################################################
292
292
  while True:
293
293
  try:
294
- answer = dns.resolver.resolve_at(random.choice(DNS_SERVERS), f.dns_chain[-1], 'A')
295
- time.sleep(1)
294
+ answer = dns.resolver.resolve_at(
295
+ random.choice(DNS_SERVERS),
296
+ f.dns_chain[-1],
297
+ 'A',
298
+ lifetime=10,
299
+ )
300
+
301
+ time.sleep(0.2)
296
302
 
297
303
  resolved_ips = []
298
304
  for rdap in answer:
@@ -307,21 +313,20 @@ class Analyzer(pydantic.BaseModel):
307
313
  break
308
314
 
309
315
  except dns.resolver.NXDOMAIN:
310
- # NXDOMAIN stands for Non-Existent Domain.
316
+ verbose.debug(f'{f.dns_chain[-1]}: NXDOMAIN - domain does not exist')
311
317
  break
312
318
 
313
319
  except dns.resolver.NoAnswer:
314
- # The domain does exist, but the specific DNS record type you're asking for is missing.
320
+ verbose.debug(f'{f.dns_chain[-1]}: NoAnswer - no A record found')
315
321
  break
316
322
 
317
- except dns.resolver.LifetimeTimeout:
318
- # The resolution lifetime expired.
319
- verbose.debug('dns.resolver.LifetimeTimeout')
320
- continue
321
-
322
323
  except dns.resolver.NoNameservers:
323
- # If no non-broken nameservers are available to answer the question.
324
- verbose.debug('dns.resolver.NoNameservers')
324
+ verbose.debug(f'{f.dns_chain[-1]}: NoNameservers - authoritative servers are unreachable')
325
+ break
326
+
327
+ except dns.resolver.LifetimeTimeout:
328
+ verbose.debug(f'{f.dns_chain[-1]}: LifetimeTimeout - wait a couple of seconds and repeat')
329
+ time.sleep(2)
325
330
  continue
326
331
 
327
332
  return f
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: scopez
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Scopez verifies connectivity to target servers, reveals CDN presence, and provides detailed target insights like reachability and RDAP.
5
5
  Author-email: Christos Kaltsas <christos@xcalts.co>
6
6
  Maintainer-email: Christos Kaltsas <christos@xcalts.co>
@@ -1 +0,0 @@
1
- __version__ = 'v0.2.0'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes