hyper-sdk 0.8.0__tar.gz → 0.9.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.
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/PKG-INFO +1 -1
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/hyper_sdk/akamai_input.py +6 -6
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/hyper_sdk/datadome/parse.py +1 -0
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/hyper_sdk/datadome_input.py +9 -9
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/hyper_sdk/incapsula_input.py +2 -2
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/hyper_sdk/kasada_input.py +8 -6
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/hyper_sdk/session.py +4 -4
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/hyper_sdk.egg-info/PKG-INFO +1 -1
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/pyproject.toml +1 -1
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/LICENSE +0 -0
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/README.md +0 -0
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/hyper_sdk/__init__.py +0 -0
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/hyper_sdk/akamai/__init__.py +0 -0
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/hyper_sdk/akamai/pixel.py +0 -0
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/hyper_sdk/akamai/script_path.py +0 -0
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/hyper_sdk/akamai/sec_cpt.py +0 -0
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/hyper_sdk/akamai/stop_signal.py +0 -0
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/hyper_sdk/datadome/__init__.py +0 -0
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/hyper_sdk/incapsula/__init__.py +0 -0
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/hyper_sdk/incapsula/utmvc.py +0 -0
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/hyper_sdk/kasada/__init__.py +0 -0
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/hyper_sdk/kasada/parse.py +0 -0
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/hyper_sdk.egg-info/SOURCES.txt +0 -0
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/hyper_sdk.egg-info/dependency_links.txt +0 -0
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/hyper_sdk.egg-info/requires.txt +0 -0
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/hyper_sdk.egg-info/top_level.txt +0 -0
- {hyper_sdk-0.8.0 → hyper_sdk-0.9.1}/setup.cfg +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
class SensorInput:
|
|
2
|
-
def __init__(self, abck: str, bmsz: str, version: str, page_url: str, user_agent: str, ip: str,
|
|
2
|
+
def __init__(self, abck: str, bmsz: str, version: str, page_url: str, user_agent: str, ip: str, acceptLanguage: str, script_hash="", dynamic_values=""):
|
|
3
3
|
self.abck = abck
|
|
4
4
|
self.bmsz = bmsz
|
|
5
5
|
self.version = version
|
|
@@ -8,15 +8,15 @@ class SensorInput:
|
|
|
8
8
|
self.script_hash = script_hash
|
|
9
9
|
self.dynamic_values = dynamic_values
|
|
10
10
|
self.ip = ip
|
|
11
|
-
self.
|
|
11
|
+
self.acceptLanguage = acceptLanguage
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
class PixelInput:
|
|
15
|
-
def __init__(self, user_agent: str, html_var: str, script_var: str,
|
|
15
|
+
def __init__(self, user_agent: str, html_var: str, script_var: str, acceptLanguage: str, ip: str):
|
|
16
16
|
self.user_agent = user_agent
|
|
17
17
|
self.html_var = html_var
|
|
18
18
|
self.script_var = script_var
|
|
19
|
-
self.
|
|
19
|
+
self.acceptLanguage = acceptLanguage
|
|
20
20
|
self.ip = ip
|
|
21
21
|
|
|
22
22
|
|
|
@@ -26,11 +26,11 @@ class DynamicInput:
|
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
class SbsdInput:
|
|
29
|
-
def __init__(self, user_agent: str, uuid: str, page_url: str, o_cookie: str, script: str,
|
|
29
|
+
def __init__(self, user_agent: str, uuid: str, page_url: str, o_cookie: str, script: str, acceptLanguage: str, ip: str):
|
|
30
30
|
self.user_agent = user_agent
|
|
31
31
|
self.uuid = uuid
|
|
32
32
|
self.page_url = page_url
|
|
33
33
|
self.o_cookie = o_cookie
|
|
34
34
|
self.script = script
|
|
35
|
-
self.
|
|
35
|
+
self.acceptLanguage = acceptLanguage
|
|
36
36
|
self.ip = ip
|
|
@@ -77,6 +77,7 @@ def parse_interstitial_device_check_link(src: str, datadome_cookie: str, referer
|
|
|
77
77
|
"referer": referer,
|
|
78
78
|
"s": str(dd_object_parsed.get("s")),
|
|
79
79
|
"b": str(dd_object_parsed.get("b")),
|
|
80
|
+
"dm": "cd",
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
return f"https://geo.captcha-delivery.com/interstitial/?{urlencode(params)}"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
class DataDomeSliderInput:
|
|
3
|
-
def __init__(self, user_agent: str, device_link: str, html: str, puzzle: str, piece: str, parent_url: str,
|
|
3
|
+
def __init__(self, user_agent: str, device_link: str, html: str, puzzle: str, piece: str, parent_url: str, acceptLanguage: str, ip: str):
|
|
4
4
|
# UserAgent must be a Chrome Windows User-Agent.
|
|
5
5
|
self.user_agent = user_agent
|
|
6
6
|
|
|
@@ -22,7 +22,7 @@ class DataDomeSliderInput:
|
|
|
22
22
|
self.piece = piece
|
|
23
23
|
|
|
24
24
|
self.parent_url = parent_url
|
|
25
|
-
self.
|
|
25
|
+
self.acceptLanguage = acceptLanguage
|
|
26
26
|
self.ip = ip
|
|
27
27
|
|
|
28
28
|
def to_dict(self):
|
|
@@ -33,13 +33,13 @@ class DataDomeSliderInput:
|
|
|
33
33
|
"puzzle": self.puzzle,
|
|
34
34
|
"piece": self.piece,
|
|
35
35
|
"parentUrl": self.parent_url,
|
|
36
|
-
"
|
|
36
|
+
"acceptLanguage": self.acceptLanguage,
|
|
37
37
|
"ip": self.ip,
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
class DataDomeInterstitialInput:
|
|
42
|
-
def __init__(self, user_agent: str, device_link: str, html: str,
|
|
42
|
+
def __init__(self, user_agent: str, device_link: str, html: str, acceptLanguage: str, ip: str):
|
|
43
43
|
# UserAgent must be a Chrome Windows User-Agent.
|
|
44
44
|
self.user_agent = user_agent
|
|
45
45
|
|
|
@@ -50,7 +50,7 @@ class DataDomeInterstitialInput:
|
|
|
50
50
|
# Html is the response body of the GET request to the DeviceLink
|
|
51
51
|
self.html = html
|
|
52
52
|
|
|
53
|
-
self.
|
|
53
|
+
self.acceptLanguage = acceptLanguage
|
|
54
54
|
self.ip = ip
|
|
55
55
|
|
|
56
56
|
def to_dict(self):
|
|
@@ -58,13 +58,13 @@ class DataDomeInterstitialInput:
|
|
|
58
58
|
"userAgent": self.user_agent,
|
|
59
59
|
"deviceLink": self.device_link,
|
|
60
60
|
"html": self.html,
|
|
61
|
-
"
|
|
61
|
+
"acceptLanguage": self.acceptLanguage,
|
|
62
62
|
"ip": self.ip,
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
|
|
66
66
|
class DataDomeTagsInput:
|
|
67
|
-
def __init__(self, user_agent: str, cid: str, ddk: str, referer: str, tags_type: str, version: str,
|
|
67
|
+
def __init__(self, user_agent: str, cid: str, ddk: str, referer: str, tags_type: str, version: str, acceptLanguage: str, ip: str):
|
|
68
68
|
# UserAgent must be a Chrome Windows User-Agent.
|
|
69
69
|
self.user_agent = user_agent
|
|
70
70
|
self.cid = cid
|
|
@@ -72,7 +72,7 @@ class DataDomeTagsInput:
|
|
|
72
72
|
self.referer = referer
|
|
73
73
|
self.tags_type = tags_type
|
|
74
74
|
self.version = version
|
|
75
|
-
self.
|
|
75
|
+
self.acceptLanguage = acceptLanguage
|
|
76
76
|
self.ip = ip
|
|
77
77
|
|
|
78
78
|
def to_dict(self):
|
|
@@ -82,7 +82,7 @@ class DataDomeTagsInput:
|
|
|
82
82
|
"ddk": self.ddk,
|
|
83
83
|
"referer": self.referer,
|
|
84
84
|
"type": self.tags_type,
|
|
85
|
-
"
|
|
85
|
+
"acceptLanguage": self.acceptLanguage,
|
|
86
86
|
"ip": self.ip,
|
|
87
87
|
"version": self.version,
|
|
88
88
|
}
|
|
@@ -8,8 +8,8 @@ class UtmvcInput:
|
|
|
8
8
|
self.script = script
|
|
9
9
|
|
|
10
10
|
class ReeseInput:
|
|
11
|
-
def __init__(self, user_agent: str,
|
|
11
|
+
def __init__(self, user_agent: str, acceptLanguage: str, ip: str, scriptUrl: str = ""):
|
|
12
12
|
self.user_agent = user_agent
|
|
13
|
-
self.
|
|
13
|
+
self.acceptLanguage = acceptLanguage
|
|
14
14
|
self.ip = ip
|
|
15
15
|
self.scriptUrl = scriptUrl
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
class KasadaPowInput:
|
|
2
|
-
def __init__(self, st: int, work_time: int = None):
|
|
2
|
+
def __init__(self, st: int, ct: str, work_time: int = None):
|
|
3
3
|
# St is the x-kpsdk-st value returned by the /tl POST request
|
|
4
4
|
self.st = st
|
|
5
|
+
# Ct is the x-kpsdk-ct value returned by the /tl POST request
|
|
6
|
+
self.ct = ct
|
|
5
7
|
# WorkTime can be used to pre-generate POW strings
|
|
6
8
|
self.work_time = work_time
|
|
7
9
|
|
|
8
10
|
def to_dict(self):
|
|
9
|
-
result = {"st": self.st}
|
|
11
|
+
result = {"st": self.st, "ct": self.ct}
|
|
10
12
|
if self.work_time is not None:
|
|
11
13
|
result["workTime"] = self.work_time
|
|
12
14
|
return result
|
|
13
15
|
|
|
14
16
|
|
|
15
17
|
class KasadaPayloadInput:
|
|
16
|
-
def __init__(self, user_agent: str, ips_link: str, script: str,
|
|
18
|
+
def __init__(self, user_agent: str, ips_link: str, script: str, acceptLanguage: str, ip: str):
|
|
17
19
|
# UserAgent must be a Chrome Windows User-Agent.
|
|
18
20
|
self.user_agent = user_agent
|
|
19
21
|
|
|
@@ -23,8 +25,8 @@ class KasadaPayloadInput:
|
|
|
23
25
|
# Script is the ips.js script retrieved using the IpsLink url
|
|
24
26
|
self.script = script
|
|
25
27
|
|
|
26
|
-
#
|
|
27
|
-
self.
|
|
28
|
+
# Your accept-language header
|
|
29
|
+
self.acceptLanguage = acceptLanguage
|
|
28
30
|
self.ip = ip
|
|
29
31
|
|
|
30
32
|
def to_dict(self):
|
|
@@ -32,7 +34,7 @@ class KasadaPayloadInput:
|
|
|
32
34
|
"userAgent": self.user_agent,
|
|
33
35
|
"ipsLink": self.ips_link,
|
|
34
36
|
"script": self.script,
|
|
35
|
-
"
|
|
37
|
+
"acceptLanguage": self.acceptLanguage,
|
|
36
38
|
"ip": self.ip,
|
|
37
39
|
}
|
|
38
40
|
return result
|
|
@@ -37,7 +37,7 @@ class Session:
|
|
|
37
37
|
'scriptHash': input_data.script_hash,
|
|
38
38
|
'dynamicValues': input_data.dynamic_values,
|
|
39
39
|
'ip': input_data.ip,
|
|
40
|
-
'
|
|
40
|
+
'acceptLanguage': input_data.acceptLanguage,
|
|
41
41
|
})
|
|
42
42
|
|
|
43
43
|
def generate_sbsd_data(self, input_data: SbsdInput) -> str:
|
|
@@ -57,7 +57,7 @@ class Session:
|
|
|
57
57
|
'pageUrl': input_data.page_url,
|
|
58
58
|
'o': input_data.o_cookie,
|
|
59
59
|
'script': input_data.script,
|
|
60
|
-
'
|
|
60
|
+
'acceptLanguage': input_data.acceptLanguage,
|
|
61
61
|
'ip': input_data.ip,
|
|
62
62
|
})
|
|
63
63
|
|
|
@@ -93,7 +93,7 @@ class Session:
|
|
|
93
93
|
'htmlVar': input_data.html_var,
|
|
94
94
|
'scriptVar': input_data.script_var,
|
|
95
95
|
'ip': input_data.ip,
|
|
96
|
-
'
|
|
96
|
+
'acceptLanguage': input_data.acceptLanguage,
|
|
97
97
|
})
|
|
98
98
|
|
|
99
99
|
def generate_reese84_sensor(self, site: str, input_data: ReeseInput) -> str:
|
|
@@ -115,7 +115,7 @@ class Session:
|
|
|
115
115
|
return self._send_request("https://incapsula.justhyped.dev/reese84/" + quote(site),
|
|
116
116
|
{
|
|
117
117
|
'userAgent': input_data.user_agent,
|
|
118
|
-
'
|
|
118
|
+
'acceptLanguage': input_data.acceptLanguage,
|
|
119
119
|
'ip': input_data.ip,
|
|
120
120
|
'scriptUrl': input_data.scriptUrl,
|
|
121
121
|
})
|
|
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
|