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.
- {scopez-0.2.0/src/scopez.egg-info → scopez-0.2.1}/PKG-INFO +1 -1
- {scopez-0.2.0 → scopez-0.2.1}/pyproject.toml +1 -1
- scopez-0.2.1/src/__version__.py +1 -0
- {scopez-0.2.0 → scopez-0.2.1}/src/analysis.py +26 -21
- {scopez-0.2.0 → scopez-0.2.1/src/scopez.egg-info}/PKG-INFO +1 -1
- scopez-0.2.0/src/__version__.py +0 -1
- {scopez-0.2.0 → scopez-0.2.1}/.github/logo.svg +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/.github/usage.png +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/.github/workflows/publish.yml +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/.github/workflows/ruff.yml +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/.gitignore +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/.pre-commit-config.yaml +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/.scripts/build_macos.sh +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/.scripts/change_version.sh +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/LICENSE +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/README.md +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/SECURITY.md +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/setup.cfg +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/src/__init__.py +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/src/icons/404.png +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/src/icons/cidr.png +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/src/icons/fqdn.png +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/src/icons/ipv4.png +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/src/icons/target.png +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/src/icons/url.png +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/src/main.py +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/src/models.py +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/src/print.py +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/src/scopez.egg-info/SOURCES.txt +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/src/scopez.egg-info/dependency_links.txt +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/src/scopez.egg-info/entry_points.txt +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/src/scopez.egg-info/requires.txt +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/src/scopez.egg-info/top_level.txt +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/src/targets.py +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/src/utils.py +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/src/validation.py +0 -0
- {scopez-0.2.0 → scopez-0.2.1}/src/verbose.py +0 -0
- {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.
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
284
|
-
|
|
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(
|
|
295
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
324
|
-
|
|
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.
|
|
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>
|
scopez-0.2.0/src/__version__.py
DELETED
|
@@ -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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|