@pawmaskrelease/psecure 1.1.0 → 1.1.1
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.
- package/CHANGELOG.md +51 -0
- package/README.md +122 -19
- package/dist/adapters/desktop.js +1 -1
- package/dist/adapters/index.js +1 -1
- package/dist/adapters/mobile-bridge.js +1 -1
- package/dist/adapters/react-native.js +1 -1
- package/dist/adapters/web-shield.js +1 -1
- package/dist/adapters/web-vault.js +1 -1
- package/dist/cli/doctor.js +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/psecure-client.js +1 -1
- package/dist/crypto/block-ciphers.js +1 -1
- package/dist/crypto/chacha-cfb.js +1 -1
- package/dist/crypto/index.js +1 -1
- package/dist/crypto/mba.js +1 -1
- package/dist/crypto/primitives.js +1 -1
- package/dist/crypto/threefish.js +1 -1
- package/dist/crypto/wasm-coprocessor.js +1 -1
- package/dist/crypto/whitebox-aes.js +1 -1
- package/dist/dist-manifest.json +64 -64
- package/dist/errors.js +1 -1
- package/dist/fetch/index.js +12 -11
- package/dist/fetch/load-client.js +1 -1
- package/dist/index.js +1 -1
- package/dist/protocol/canonical.js +1 -1
- package/dist/protocol/codecs.js +1 -1
- package/dist/protocol/constants.js +1 -1
- package/dist/protocol/dvp-probes.js +1 -1
- package/dist/protocol/ed25519.js +1 -1
- package/dist/protocol/index.js +1 -1
- package/dist/protocol/types.js +1 -1
- package/dist/protocol/wire.js +1 -1
- package/dist/rasp/auto-collector.js +1 -1
- package/dist/rasp/behavior-stream.js +1 -1
- package/dist/rasp/dvp-consistency.js +1 -1
- package/dist/rasp/hardware-binding.js +1 -1
- package/dist/rasp/index.js +1 -1
- package/dist/rasp/klepto-seal.js +1 -1
- package/dist/rasp/mobile-native-probes.js +1 -1
- package/dist/rasp/probes.js +1 -1
- package/dist/rasp/web-integrity-probes.js +43 -44
- package/dist/server/authority-types.js +1 -1
- package/dist/server/edge.d.ts +3 -3
- package/dist/server/edge.js +2 -2
- package/dist/server/express.d.ts +4 -3
- package/dist/server/express.js +8 -8
- package/dist/server/fastify.d.ts +13 -4
- package/dist/server/fastify.js +11 -12
- package/dist/server/guard.d.ts +8 -5
- package/dist/server/guard.js +62 -56
- package/dist/server/index.js +1 -1
- package/dist/server/middleware.js +1 -1
- package/dist/server/remote-authority-client.js +1 -1
- package/dist/server/verdicts.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +2 -2
- package/dist/vm/dynamic-ob.js +1 -1
- package/dist/vm/env-key.js +1 -1
- package/dist/vm/iabc-isa.js +1 -1
- package/dist/vm/index.js +1 -1
- package/dist/vm/psecure-vm.js +1 -1
- package/dist/web/psecure-polymorphic-loader.obf.js +1 -1
- package/dist/web/psecure-vm-kernel.js +1 -1
- package/dist/web/psecure-web-shield.bundle.js +1 -1
- package/package.json +7 -1
- package/types/fastify-augment.d.ts +14 -0
- package/types/fastify-augment.js +2 -0
package/dist/dist-manifest.json
CHANGED
|
@@ -1,287 +1,287 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "psec-0.1.0-beta",
|
|
3
|
-
"manifestSha256": "
|
|
4
|
-
"manifestFnv1aHex": "
|
|
3
|
+
"manifestSha256": "ff4ffd90841653cb8fa15c662b94a9bcf9fcde83f2c5855cd894d3dacd868f98",
|
|
4
|
+
"manifestFnv1aHex": "dd197b03",
|
|
5
5
|
"fileCount": 56,
|
|
6
6
|
"files": [
|
|
7
7
|
{
|
|
8
8
|
"path": "adapters/desktop.js",
|
|
9
|
-
"sha256": "
|
|
9
|
+
"sha256": "2a8c0aa9c667aa603e5f3b3a4cf29077637dc0fb7a64c87c5edf46e6766b9daf",
|
|
10
10
|
"bytes": 13219
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
"path": "adapters/index.js",
|
|
14
|
-
"sha256": "
|
|
14
|
+
"sha256": "6711c3a559952f6bcf55039df4e99df9f78f11aa2db94ff9d53f19950930e50c",
|
|
15
15
|
"bytes": 244
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"path": "adapters/mobile-bridge.js",
|
|
19
|
-
"sha256": "
|
|
19
|
+
"sha256": "4515ad549f59476dfb8fca019b54a1b205734b6112b067ea6eaa8d041c6bc8af",
|
|
20
20
|
"bytes": 11582
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"path": "adapters/react-native.js",
|
|
24
|
-
"sha256": "
|
|
24
|
+
"sha256": "2ba3a484fdf1b03616607acecee1b1da2d21a7127676c0a5188a4ef814901727",
|
|
25
25
|
"bytes": 8376
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
"path": "adapters/web-shield.js",
|
|
29
|
-
"sha256": "
|
|
29
|
+
"sha256": "4d1ad4a9f3a42a09c88458d8b580fd0de9dbf5117546402736259e45d954f4ac",
|
|
30
30
|
"bytes": 12887
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"path": "adapters/web-vault.js",
|
|
34
|
-
"sha256": "
|
|
34
|
+
"sha256": "e6add63495a52a16fb9fe77bd728e7e755745a4a80e6f7e9d6f0dd7c5366da87",
|
|
35
35
|
"bytes": 34157
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"path": "cli/doctor.js",
|
|
39
|
-
"sha256": "
|
|
39
|
+
"sha256": "6eebabdc16f03292df4612a2b6d8c121f44ce4ad5b5dff1f304268e3b9a987b3",
|
|
40
40
|
"bytes": 37358
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"path": "client/index.js",
|
|
44
|
-
"sha256": "
|
|
44
|
+
"sha256": "214583390c6cb45c82f9b240f054d31e9c8eb266ea5bf4ceb754d286acd1db9b",
|
|
45
45
|
"bytes": 147
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
48
|
"path": "client/psecure-client.js",
|
|
49
|
-
"sha256": "
|
|
49
|
+
"sha256": "7499b01d86e14b8aeaf7c03d5e2386d1da8fd8d4b28255c93b7641ce3bf39407",
|
|
50
50
|
"bytes": 57375
|
|
51
51
|
},
|
|
52
52
|
{
|
|
53
53
|
"path": "crypto/block-ciphers.js",
|
|
54
|
-
"sha256": "
|
|
54
|
+
"sha256": "d29d0d97e30379b7d4cceeab7fb384e67e098ad4d574f51a604ef9bcb504d07c",
|
|
55
55
|
"bytes": 15522
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
"path": "crypto/chacha-cfb.js",
|
|
59
|
-
"sha256": "
|
|
59
|
+
"sha256": "80682afdca54cbba95139df34b8da67632c30157630ddfb44b74b41a43dc23b7",
|
|
60
60
|
"bytes": 22347
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
"path": "crypto/index.js",
|
|
64
|
-
"sha256": "
|
|
64
|
+
"sha256": "c87e64f28c142c7eb9a8b49838ad2a0db486de5156ec318eddc0849aea818745",
|
|
65
65
|
"bytes": 182
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
"path": "crypto/mba.js",
|
|
69
|
-
"sha256": "
|
|
69
|
+
"sha256": "78c1c39df52a9ad0060c96deeb7504ffc5171fdf2ef11490892c603ad768311a",
|
|
70
70
|
"bytes": 12788
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"path": "crypto/primitives.js",
|
|
74
|
-
"sha256": "
|
|
74
|
+
"sha256": "b38f5b6360fc33e062cf1690db0fe19f7f92a976f3fcdb72ca45c783d50d0d16",
|
|
75
75
|
"bytes": 329
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
"path": "crypto/threefish.js",
|
|
79
|
-
"sha256": "
|
|
79
|
+
"sha256": "983452beb61a131b1ecffd47b3b09f9cbd7738447a0aeb9a8432e53b471401ed",
|
|
80
80
|
"bytes": 10172
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"path": "crypto/wasm-coprocessor.js",
|
|
84
|
-
"sha256": "
|
|
84
|
+
"sha256": "54b10c4ad080252a34d8a910a245d6864872dc15cb325730b0a3642a93710d78",
|
|
85
85
|
"bytes": 24189
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
88
|
"path": "crypto/whitebox-aes.js",
|
|
89
|
-
"sha256": "
|
|
89
|
+
"sha256": "28414b1ed793bc8584be5bc0e8b94342880e68023bc843f6aec5a1c5e7abe27f",
|
|
90
90
|
"bytes": 24182
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
"path": "errors.js",
|
|
94
|
-
"sha256": "
|
|
94
|
+
"sha256": "d3679aa4e6a1e7b04e26c9a4ac1ebfc9d780171cbaf1b0d52c846f9d238ff1df",
|
|
95
95
|
"bytes": 25708
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
"path": "fetch/index.js",
|
|
99
|
-
"sha256": "
|
|
100
|
-
"bytes":
|
|
99
|
+
"sha256": "ac8e31a934841b96bc862c97d2637b17692ab45b67be75dfd212a486329ee76b",
|
|
100
|
+
"bytes": 21927
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
103
|
"path": "fetch/load-client.js",
|
|
104
|
-
"sha256": "
|
|
104
|
+
"sha256": "0411a488a6f7314c8b5ebcb9adb5df6dfee393d0459ff23384713d5c885cacb1",
|
|
105
105
|
"bytes": 194
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
"path": "index.js",
|
|
109
|
-
"sha256": "
|
|
109
|
+
"sha256": "5d7cfab9bdf27b7444d5da20d47a448c6b26204bdfcb6899e12dd22a5cb208b8",
|
|
110
110
|
"bytes": 411
|
|
111
111
|
},
|
|
112
112
|
{
|
|
113
113
|
"path": "protocol/canonical.js",
|
|
114
|
-
"sha256": "
|
|
114
|
+
"sha256": "b34e60b25a88ce4365dea998cf177d0635bef6fb7c1e7333e1919aef5eb520d6",
|
|
115
115
|
"bytes": 15464
|
|
116
116
|
},
|
|
117
117
|
{
|
|
118
118
|
"path": "protocol/codecs.js",
|
|
119
|
-
"sha256": "
|
|
119
|
+
"sha256": "55d5607b17892d2e7bea28d230c008f7e725f1e7d7398e5a5426be80658a951a",
|
|
120
120
|
"bytes": 27074
|
|
121
121
|
},
|
|
122
122
|
{
|
|
123
123
|
"path": "protocol/constants.js",
|
|
124
|
-
"sha256": "
|
|
124
|
+
"sha256": "6a4c5b19e9bfe4b521c13c83b267fa0c27ead0015bd9b538f2a93489b804a8fa",
|
|
125
125
|
"bytes": 9169
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
"path": "protocol/dvp-probes.js",
|
|
129
|
-
"sha256": "
|
|
129
|
+
"sha256": "0bcbd16f6161f8095fad2ee629c0f9867126ff809d6a4c497dd1d9371440b102",
|
|
130
130
|
"bytes": 16638
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
"path": "protocol/ed25519.js",
|
|
134
|
-
"sha256": "
|
|
134
|
+
"sha256": "c502127e85af9bdc0be643cea2bfef46506f19abea98ee1ae99a513f763d1eed",
|
|
135
135
|
"bytes": 20457
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
138
|
"path": "protocol/index.js",
|
|
139
|
-
"sha256": "
|
|
139
|
+
"sha256": "5f56d699eb326aed1d3434abcb532766687c5813609b1ed2dd4c8b63a834d6dc",
|
|
140
140
|
"bytes": 197
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
"path": "protocol/types.js",
|
|
144
|
-
"sha256": "
|
|
144
|
+
"sha256": "ef53d1b4504eea4dad233623731240b57ccd40c96e60ca8be89145d5d7621638",
|
|
145
145
|
"bytes": 121
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
"path": "protocol/wire.js",
|
|
149
|
-
"sha256": "
|
|
149
|
+
"sha256": "537c3fb4472a0222a10c90c1e7b7ce4f674206c14c0f863101ce066d663deea9",
|
|
150
150
|
"bytes": 35850
|
|
151
151
|
},
|
|
152
152
|
{
|
|
153
153
|
"path": "rasp/auto-collector.js",
|
|
154
|
-
"sha256": "
|
|
154
|
+
"sha256": "1edec9c9538e3dc8bec7076c5d822bc9b1724b563aa260c652406b5a0184ca6e",
|
|
155
155
|
"bytes": 17561
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
"path": "rasp/behavior-stream.js",
|
|
159
|
-
"sha256": "
|
|
159
|
+
"sha256": "ca60bb5423e8186096e8726f1b7685095f3fbe41898483e13626c44d78ed844d",
|
|
160
160
|
"bytes": 33796
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
"path": "rasp/dvp-consistency.js",
|
|
164
|
-
"sha256": "
|
|
164
|
+
"sha256": "997b58461cdd842f9061ef7e8049e9b08d9489ea248ad5fa999bf08c02be9504",
|
|
165
165
|
"bytes": 8780
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
"path": "rasp/hardware-binding.js",
|
|
169
|
-
"sha256": "
|
|
169
|
+
"sha256": "3aa9f260703a59b433deb083b642896f24ae8641c467862e8c25956de36af780",
|
|
170
170
|
"bytes": 8987
|
|
171
171
|
},
|
|
172
172
|
{
|
|
173
173
|
"path": "rasp/index.js",
|
|
174
|
-
"sha256": "
|
|
174
|
+
"sha256": "befe1166edbef8b73526e45c438e957e2cfb02c60271425cc4be3979400a6f3b",
|
|
175
175
|
"bytes": 178
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
178
|
"path": "rasp/klepto-seal.js",
|
|
179
|
-
"sha256": "
|
|
179
|
+
"sha256": "b6d497d9d475500c5c27052308e0c328ec53ac8bd153033ab6289bcd8445360c",
|
|
180
180
|
"bytes": 7508
|
|
181
181
|
},
|
|
182
182
|
{
|
|
183
183
|
"path": "rasp/mobile-native-probes.js",
|
|
184
|
-
"sha256": "
|
|
184
|
+
"sha256": "ad4509cba78a5b2a984120324508170e87ba10de59d43ee77ff3b1b49aae3cfd",
|
|
185
185
|
"bytes": 13198
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
"path": "rasp/probes.js",
|
|
189
|
-
"sha256": "
|
|
189
|
+
"sha256": "4b4b0c45fccc64b3075e2293f00eb40f0ead7d93fa6d5fbaacc15780f95b8a0e",
|
|
190
190
|
"bytes": 10602
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
"path": "rasp/web-integrity-probes.js",
|
|
194
|
-
"sha256": "
|
|
195
|
-
"bytes":
|
|
194
|
+
"sha256": "3f5522ebf508a37a44bd2835cda6714bac0a3a023a282d24c5e495cdf9896cac",
|
|
195
|
+
"bytes": 31108
|
|
196
196
|
},
|
|
197
197
|
{
|
|
198
198
|
"path": "server/authority-types.js",
|
|
199
|
-
"sha256": "
|
|
199
|
+
"sha256": "9736365e75457361714c46c013c74b26afb524ba4faffccd623a9f56d87b4d6d",
|
|
200
200
|
"bytes": 701
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
"path": "server/edge.js",
|
|
204
|
-
"sha256": "
|
|
205
|
-
"bytes":
|
|
204
|
+
"sha256": "df2157cc76302108d9e27a75a4629d5d15f46f267c92cc3c1b3732ca140382c8",
|
|
205
|
+
"bytes": 10228
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
"path": "server/express.js",
|
|
209
|
-
"sha256": "
|
|
210
|
-
"bytes":
|
|
209
|
+
"sha256": "ee30563f28187c8eb1400733774285831c84c9b80cd8f700ece743644a76e225",
|
|
210
|
+
"bytes": 11280
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
213
|
"path": "server/fastify.js",
|
|
214
|
-
"sha256": "
|
|
215
|
-
"bytes":
|
|
214
|
+
"sha256": "001841122f8c485f42c01483756d0f4d2c252831cdcbc3bea6271b974da1a229",
|
|
215
|
+
"bytes": 10150
|
|
216
216
|
},
|
|
217
217
|
{
|
|
218
218
|
"path": "server/guard.js",
|
|
219
|
-
"sha256": "
|
|
220
|
-
"bytes":
|
|
219
|
+
"sha256": "ac6dbe60e4f688fb7bf018d5e7fd1bd674508eacf76a71c93d89bfbf04f37ae0",
|
|
220
|
+
"bytes": 36432
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
223
|
"path": "server/index.js",
|
|
224
|
-
"sha256": "
|
|
224
|
+
"sha256": "288066ea1295cb4caedb417c8df03050b0ec8a63b996335131c43ccfc37f377d",
|
|
225
225
|
"bytes": 662
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
228
|
"path": "server/middleware.js",
|
|
229
|
-
"sha256": "
|
|
229
|
+
"sha256": "ccbaf2e461e618754f12f6e4dba26179a3e64bc90001955abc54a20659ccf295",
|
|
230
230
|
"bytes": 17457
|
|
231
231
|
},
|
|
232
232
|
{
|
|
233
233
|
"path": "server/remote-authority-client.js",
|
|
234
|
-
"sha256": "
|
|
234
|
+
"sha256": "fad642729509c53d03e5fb2377a07bcf1e9b2f7c575c7972e1b90c41e2d0066e",
|
|
235
235
|
"bytes": 23920
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
"path": "server/verdicts.js",
|
|
239
|
-
"sha256": "
|
|
239
|
+
"sha256": "ae764c946c74f06c19263f8cf9a3d9dc4a1f7b7a53dd3b15c825e16240d47839",
|
|
240
240
|
"bytes": 8981
|
|
241
241
|
},
|
|
242
242
|
{
|
|
243
243
|
"path": "version.js",
|
|
244
|
-
"sha256": "
|
|
244
|
+
"sha256": "0ead70419ef4479cf905fff8c37d84a1a14fa0568e75933742dede7f7f20d2a2",
|
|
245
245
|
"bytes": 154
|
|
246
246
|
},
|
|
247
247
|
{
|
|
248
248
|
"path": "vm/dynamic-ob.js",
|
|
249
|
-
"sha256": "
|
|
249
|
+
"sha256": "1f5a6c77a640133a4c86a8a7647c1a82ceb471e6cbe341c8023c21fbb5466697",
|
|
250
250
|
"bytes": 37069
|
|
251
251
|
},
|
|
252
252
|
{
|
|
253
253
|
"path": "vm/env-key.js",
|
|
254
|
-
"sha256": "
|
|
254
|
+
"sha256": "318cf875962bb66cdb3d975ae1bbf8c810fdeda7264e6926f5172ead23b9057c",
|
|
255
255
|
"bytes": 10497
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
258
|
"path": "vm/iabc-isa.js",
|
|
259
|
-
"sha256": "
|
|
259
|
+
"sha256": "c4a12f21dd5f87d3766681ee82a323c3fb3dcd21dd07dec94a4deda85d5efc43",
|
|
260
260
|
"bytes": 11493
|
|
261
261
|
},
|
|
262
262
|
{
|
|
263
263
|
"path": "vm/index.js",
|
|
264
|
-
"sha256": "
|
|
264
|
+
"sha256": "195c22b77d37d3f61d0e62e787c5c016c98da9179df51c0cb7ea8b8095324d76",
|
|
265
265
|
"bytes": 176
|
|
266
266
|
},
|
|
267
267
|
{
|
|
268
268
|
"path": "vm/psecure-vm.js",
|
|
269
|
-
"sha256": "
|
|
269
|
+
"sha256": "cb50de6b3dc41d96ea764bb46fb8a9d4ba070a4e031a4c1ed0f2ecaf22b7c186",
|
|
270
270
|
"bytes": 31139
|
|
271
271
|
},
|
|
272
272
|
{
|
|
273
273
|
"path": "web/psecure-polymorphic-loader.obf.js",
|
|
274
|
-
"sha256": "
|
|
274
|
+
"sha256": "b5de4d54eb5ec2959f4c21ea454f97437c7440ee8b13448a055bee666c440599",
|
|
275
275
|
"bytes": 14408
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
278
|
"path": "web/psecure-vm-kernel.js",
|
|
279
|
-
"sha256": "
|
|
279
|
+
"sha256": "2e3ea5a7ac302cf6730a46f87c26f6ef5b6d39ac070ab1ac5847d2b38713185b",
|
|
280
280
|
"bytes": 55813
|
|
281
281
|
},
|
|
282
282
|
{
|
|
283
283
|
"path": "web/psecure-web-shield.bundle.js",
|
|
284
|
-
"sha256": "
|
|
284
|
+
"sha256": "891b5191442cb8e7a8445db251e7e1d85bd8a3c52c281fadffcb8971590a0e28",
|
|
285
285
|
"bytes": 87313
|
|
286
286
|
}
|
|
287
287
|
]
|
package/dist/errors.js
CHANGED
|
@@ -50,4 +50,4 @@ catch{throw new PSecureConfigError(_0x106fbe_S((0x31273f78^0x31273f5a)),`authori
|
|
|
50
50
|
if((u.protocol!==_0x106fbe_S((0x5d0cc547^0x5d0cc55a))&&u.protocol!==_0x106fbe_S((0x25afe044^0x25afe05a)))||u.username||u.password){throw new PSecureConfigError(_0x106fbe_S((0x10aea478^0x10aea45a)),`authorityUrl "${u.origin}" must be an http(s) URL without credentials.`);}
|
|
51
51
|
if(u.protocol===_0x106fbe_S((0x553ff944^0x553ff95a))&&!isLoopbackHost(u.hostname)&&!_0x36baff){throw new PSecureConfigError(_0x106fbe_S((0x2793097e^0x2793095a)),`authorityUrl ${u.origin} uses plain http.`);}
|
|
52
52
|
return u;}
|
|
53
|
-
/* @psec-self-seal sha256=
|
|
53
|
+
/* @psec-self-seal sha256=d3679aa4e6a1e7b04e26c9a4ac1ebfc9d780171cbaf1b0d52c846f9d238ff1df fnv1a=dd197b03 */
|
package/dist/fetch/index.js
CHANGED
|
@@ -65,20 +65,20 @@ _0x9343ea=true;};_0x84f4c0?.addEventListener?.(_0x45f592_S((0x1d44f67f^0x1d44f65
|
|
|
65
65
|
const _0x9d06c5=_0xf1e874;_0xf1e874=c;status=_0x45f592_S((0x4cafce7d^0x4cafce5a));_0x7ab358=0;lastError=null;if(_0x9d06c5&&_0x9d06c5!==c){const t=setTimeout(()=>_0x9d06c5.dispose(),_0x6df024);t.unref?.();}},async(err)=>{if(_0xd1ab26!==_0xc71dc8||disposed)
|
|
66
66
|
return;await new Promise((r)=>setTimeout(r,0));let _0xc4aa8b=diagnosePSecureConnectError(err,{[_0x45f592_S(59)]:authorityOrigin,[_0x45f592_S(60)]:_0x9343ea});if(!isPSecureConfigError(_0xc4aa8b))
|
|
67
67
|
_0xc4aa8b=(await _0x0bc031())??_0xc4aa8b;if(_0xd1ab26!==_0xc71dc8||disposed)
|
|
68
|
-
return;status=
|
|
68
|
+
return;status=_0x45f592_S((0x5a6ec372^0x5a6ec35a));_0x7ab358+=1;_0x9a7bf8=now()+Math.min(_0x01bcf3*2**(_0x7ab358-1),_0x3b55f0);_0xdeb6d3(_0xc4aa8b);});_0x78936b=p.finally(()=>{_0x84f4c0?.removeEventListener?.(_0x45f592_S((0x6d0f037f^0x6d0f035a)),_0x5980a2);if(_0xd1ab26===_0xc71dc8)
|
|
69
69
|
_0x78936b=null;});return _0x78936b;};const _0xf2821d=()=>{if(!_0xf689b6||disposed)
|
|
70
|
-
return;if(status===_0x45f592_S((
|
|
71
|
-
return;if(status===_0x45f592_S((
|
|
70
|
+
return;if(status===_0x45f592_S((0x2e53c97d^0x2e53c95a))||status===_0x45f592_S((0xde73c7e^0xde73c5a)))
|
|
71
|
+
return;if(status===_0x45f592_S((0x61e40272^0x61e4025a))&&now()<_0x9a7bf8)
|
|
72
72
|
return;void _0xaed5c3();};const _0x17e0e0=()=>{if(!_0xf689b6||disposed)
|
|
73
|
-
return;const _0x0ce2fe=_0xf1e874;_0xf1e874=null;_0x0ce2fe?.dispose();void _0xaed5c3();};let refreshQueued=false;const _0x4433c3=()=>{if(refreshQueued||status===_0x45f592_S((
|
|
74
|
-
return;refreshQueued=true;queueMicrotask(()=>{refreshQueued=false;if(status!==_0x45f592_S((
|
|
73
|
+
return;const _0x0ce2fe=_0xf1e874;_0xf1e874=null;_0x0ce2fe?.dispose();void _0xaed5c3();};let refreshQueued=false;const _0x4433c3=()=>{if(refreshQueued||status===_0x45f592_S((0x3566e37e^0x3566e35a))||disposed||(_0x7ab358>0&&now()<_0x9a7bf8))
|
|
74
|
+
return;refreshQueued=true;queueMicrotask(()=>{refreshQueued=false;if(status!==_0x45f592_S((0x354bdd7e^0x354bdd5a))&&!disposed)
|
|
75
75
|
void _0xaed5c3();});};const _0x0e9f8f=async(_0x2fe6eb)=>{if(!_0x78936b)
|
|
76
76
|
return;let _0xb832ea;await Promise.race([_0x78936b,new Promise((r)=>(_0xb832ea=setTimeout(r,_0x2fe6eb)))]);if(_0xb832ea)
|
|
77
|
-
clearTimeout(_0xb832ea);};const _0x6b7c63=(_0x7379b4)=>{if(_0x7379b4.status!==(
|
|
77
|
+
clearTimeout(_0xb832ea);};const _0x6b7c63=(_0x7379b4)=>{if(_0x7379b4.status!==(0x6d916fcb^0x6d916e5a)&&_0x7379b4.status!==(0x14ee97c9^0x14ee965a))
|
|
78
78
|
return;_0x7379b4
|
|
79
79
|
.clone()
|
|
80
80
|
.json()
|
|
81
|
-
.then((body)=>{if(body?.error===_0x45f592_S((
|
|
81
|
+
.then((body)=>{if(body?.error===_0x45f592_S((0x25714c73^0x25714c5a)))
|
|
82
82
|
_0x4433c3();})
|
|
83
83
|
.catch(()=>undefined);};const _0xfc8812=async(_0x2394a2,_0x939dd0)=>{if(!_0xf689b6||disposed)
|
|
84
84
|
return _0x2b7ca6(_0x2394a2,_0x939dd0);if(!apiOrigins.includes(_0x4d04fb(_0x2394a2)??''))
|
|
@@ -87,7 +87,8 @@ const c=_0xf1e874;if(!c)
|
|
|
87
87
|
return _0x2b7ca6(_0x2394a2,_0x939dd0);if(c.isLeaseExpired())
|
|
88
88
|
_0x4433c3();const _0xe013ab={[_0x45f592_S(61)]:false};const _0xfaa1ac={...(_0x939dd0??{}),[_0x5526d6]:_0xe013ab};try{const _0x7379b4=await c.protectFetch(_0x2394a2,_0xfaa1ac);_0x6b7c63(_0x7379b4);return _0x7379b4;}
|
|
89
89
|
catch(err){if(_0xe013ab.sent)
|
|
90
|
-
throw err;_0xdeb6d3(err instanceof Error?err:new Error(String(err)),_0x45f592_S((
|
|
91
|
-
return;_0x5613db=_0x2a0a6e;if(status===_0x45f592_S((
|
|
92
|
-
_0x17e0e0();},[_0x45f592_S(39)]:async(_0xb79eb8=10_000)=>{
|
|
93
|
-
|
|
90
|
+
throw err;_0xdeb6d3(err instanceof Error?err:new Error(String(err)),_0x45f592_S((0x2495de70^0x2495de5a)));_0x4433c3();return _0x2b7ca6(_0x2394a2,_0x939dd0);}};return{[_0x45f592_S(62)]:_0xfc8812,[_0x45f592_S(63)]:_0xf2821d,[_0x45f592_S(64)]:()=>status,[_0x45f592_S(65)]:()=>lastError,[_0x45f592_S(66)]:(_0xacd851)=>{const _0x2a0a6e=typeof _0xacd851===_0x45f592_S(2)&&_0xacd851.trim()?_0xacd851.trim():null;if(_0x2a0a6e===_0x5613db)
|
|
91
|
+
return;_0x5613db=_0x2a0a6e;if(status===_0x45f592_S((0x54ed147d^0x54ed145a))||status===_0x45f592_S((0x29addf7e^0x29addf5a))||status===_0x45f592_S((0x37390b72^0x37390b5a)))
|
|
92
|
+
_0x17e0e0();},[_0x45f592_S(39)]:async(_0xb79eb8=10_000)=>{if(refreshQueued)
|
|
93
|
+
await Promise.resolve();_0xf2821d();await _0x0e9f8f(_0xb79eb8);return status;},[_0x45f592_S(67)]:()=>{disposed=true;_0xc71dc8+=1;_0xf1e874?.dispose();_0xf1e874=null;status=!_0x7ba340?_0x45f592_S((0x50e33a44^0x50e33a5a)):_0xf689b6?_0x45f592_S((0x43d3e045^0x43d3e05a)):_0x45f592_S((0x3ebf287a^0x3ebf285a));},};}
|
|
94
|
+
/* @psec-self-seal sha256=ac8e31a934841b96bc862c97d2637b17692ab45b67be75dfd212a486329ee76b fnv1a=dd197b03 */
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export const loadPSecureClientModule = () => import("../client/psecure-client.js");
|
|
2
2
|
|
|
3
|
-
/* @psec-self-seal sha256=
|
|
3
|
+
/* @psec-self-seal sha256=0411a488a6f7314c8b5ebcb9adb5df6dfee393d0459ff23384713d5c885cacb1 fnv1a=dd197b03 */
|
package/dist/index.js
CHANGED
|
@@ -8,4 +8,4 @@ export * from "./errors.js";
|
|
|
8
8
|
export * from "./fetch/index.js";
|
|
9
9
|
export * from "./version.js";
|
|
10
10
|
|
|
11
|
-
/* @psec-self-seal sha256=
|
|
11
|
+
/* @psec-self-seal sha256=5d7cfab9bdf27b7444d5da20d47a448c6b26204bdfcb6899e12dd22a5cb208b8 fnv1a=dd197b03 */
|
|
@@ -70,4 +70,4 @@ export function buildClientPopMessageBytes(f){return new TextEncoder().encode(fo
|
|
|
70
70
|
export function computeHwidBanKeyHex(_0xd8dc9a,_0xa55c8e){const _0xa806cb=encodeCanonicalFieldsBytes([PSECURE_HWID_CANONICAL_LABEL,...canonicalAnchorFields(_0xa55c8e)]);return bytesToHex(psecHmacSha256Bytes(_0xd8dc9a,_0xa806cb).subarray(0,(0x78ea424a^0x78ea425a)));}
|
|
71
71
|
export function computeBodySha256Hex(body){if(body===undefined||body===null)
|
|
72
72
|
return EMPTY_BODY_SHA256_HEX;const _0x42070e=typeof body===_0x81d3d2_S(5)?new TextEncoder().encode(body):body;return psecSha256Hex(_0x42070e);}
|
|
73
|
-
/* @psec-self-seal sha256=
|
|
73
|
+
/* @psec-self-seal sha256=b34e60b25a88ce4365dea998cf177d0635bef6fb7c1e7333e1919aef5eb520d6 fnv1a=dd197b03 */
|
package/dist/protocol/codecs.js
CHANGED
|
@@ -121,4 +121,4 @@ return new Uint8Array(_0x3d081e);}
|
|
|
121
121
|
export function computeDynamicSliceCanary(path,_0x78c0a6,seqCounter){const _0x14919b=path.padEnd((0x5652dc56^0x5652dc5a),'/');const _0x19d130=_0x78c0a6.padEnd((0x2ff29356^0x2ff2935a),'0');const _0xe8161c=(Math.abs(seqCounter)%5)+1;const sliceA=_0x14919b.slice(_0xe8161c,_0xe8161c+2);const sliceB=_0x19d130.slice(_0xe8161c+1,_0xe8161c+4);const _0x0e97bd=`${sliceA}:${sliceB}:${seqCounter}`;let acc=((0x56f3e719^0x6a0a25a)^(seqCounter>>>0))>>>0;for(let i=0;i<_0x0e97bd.length;i++){acc=psecMba32.affineMix(acc^_0x0e97bd.charCodeAt(i),(((0x4b6ef02a^0xd5598993)>>>0)+i*((0xf8d29774^0x7d395d1f)>>>0))>>>0);}
|
|
122
122
|
return(acc>>>0).toString((0x60caef4a^0x60caef5a)).padStart(8,'0');}
|
|
123
123
|
export function computeDynamicPolyCanaryHex(_0x9c7fa5,_0xc28ff0){const _0xb2966e=new DataView(_0x9c7fa5.buffer,_0x9c7fa5.byteOffset,(0x431c537a^0x431c535a));const _0x64cc69=_0xb2966e.getUint32(0,true)|1;const _0xf0967f=_0xb2966e.getUint32(8,true)|1;const _0x9fa29e=_0xb2966e.getUint32((0x5e127e4a^0x5e127e5a),true);const _0x2368bb=_0xb2966e.getUint32((0x1325f042^0x1325f05a),true);const x=(_0xc28ff0.seqCounter>>>0)+1;const y=Math.floor(_0xc28ff0.clientTimestampMs/(0x6c46c2b2^0x6c46c15a))>>>0;const sliceCanaryHex=computeDynamicSliceCanary(_0xc28ff0.path,_0xc28ff0.installId,_0xc28ff0.seqCounter);const z=Number.parseInt(sliceCanaryHex,(0x59227d4a^0x59227d5a))>>>0;const w=Number.parseInt(_0xc28ff0.bodySha256Hex.slice(0,8)||'0',(0x16d8bc4a^0x16d8bc5a))>>>0;const _0x22e4c5=Math.imul(x,x)>>>0;const _0x845ae6=Math.imul(x,y)>>>0;const _0x9a6333=Math.imul(y,y)>>>0;const _0xdb1754=psecMba32.add(psecMba32.add(Math.imul(_0x64cc69,_0x22e4c5)>>>0,Math.imul(_0xf0967f,_0x845ae6)>>>0),psecMba32.add(Math.imul(_0x9fa29e,_0x9a6333)>>>0,_0x2368bb));const _0x6909db=Math.imul(z,z)>>>0;const _0x65f659=Math.imul(z,w)>>>0;const _0xb58b36=Math.imul(w,w)>>>0;const _0x72da56=psecMba32.add(psecMba32.add(Math.imul(_0xf0967f^z,_0x6909db)>>>0,Math.imul(_0x64cc69^w,_0x65f659)>>>0),Math.imul(_0x2368bb|1,_0xb58b36)>>>0);const coupled=psecMba32.wasmArxMix(_0xdb1754,_0x72da56,z^w);return`${sliceCanaryHex}${(coupled >>> 0).toString(16).padStart(8, '0')}`;}
|
|
124
|
-
/* @psec-self-seal sha256=
|
|
124
|
+
/* @psec-self-seal sha256=55d5607b17892d2e7bea28d230c008f7e725f1e7d7398e5a5426be80658a951a fnv1a=dd197b03 */
|
|
@@ -31,4 +31,4 @@ function _0x69f7f9_RB(_f){
|
|
|
31
31
|
s+=String.fromCharCode((c^m)&0xffff);
|
|
32
32
|
} return(_0x69f7f9_C[i]=s);}
|
|
33
33
|
export const PSECURE_VERSION=_0x69f7f9_S(0);export const PSECURE_PROTOCOL_VERSION=_0x69f7f9_S(1);export const PSECURE_WIRE_HEADERS={[_0x69f7f9_S(6)]:_0x69f7f9_S(2),[_0x69f7f9_S(7)]:_0x69f7f9_S(3),[_0x69f7f9_S(8)]:_0x69f7f9_S(4),[_0x69f7f9_S(9)]:_0x69f7f9_S(5),};export const PSecureRaspBit={[_0x69f7f9_S(10)]:0,[_0x69f7f9_S(11)]:1<<0,[_0x69f7f9_S(12)]:1<<1,[_0x69f7f9_S(13)]:1<<2,[_0x69f7f9_S(14)]:1<<3,[_0x69f7f9_S(15)]:1<<4,[_0x69f7f9_S(16)]:1<<5,[_0x69f7f9_S(17)]:1<<6,[_0x69f7f9_S(18)]:1<<7,};export const PSecureNativeCommand={[_0x69f7f9_S(19)]:(0x170b4b5b^0x170b4b5a),[_0x69f7f9_S(20)]:(0x6aea6c58^0x6aea6c5a),[_0x69f7f9_S(21)]:(0x5f520659^0x5f52065a),[_0x69f7f9_S(22)]:(0x7559a15e^0x7559a15a),};export const PSecureNativeRatchetOpcode={[_0x69f7f9_S(23)]:(0x15d8642f^0x15d8435a),[_0x69f7f9_S(24)]:(0x3f4af2d^0x3f4885a),[_0x69f7f9_S(25)]:(0x3598b222^0x3598955a),[_0x69f7f9_S(26)]:(0x5a577d8f^0x5a566c5a),[_0x69f7f9_S(27)]:(0x59deef8c^0x59dffe5a),[_0x69f7f9_S(28)]:0x7a91_c3e5,[_0x69f7f9_S(29)]:0x2d84_b6f1,[_0x69f7f9_S(30)]:0xe419_5a0c,[_0x69f7f9_S(31)]:0x9b37_d248,[_0x69f7f9_S(32)]:0x5c8e_41d2,};
|
|
34
|
-
/* @psec-self-seal sha256=
|
|
34
|
+
/* @psec-self-seal sha256=6a4c5b19e9bfe4b521c13c83b267fa0c27ead0015bd9b538f2a93489b804a8fa fnv1a=dd197b03 */
|
|
@@ -82,4 +82,4 @@ export function verifyWasmMod99999Probe9Digits(_0x175774,_0xfbdd2d,_0x88be1f=DEF
|
|
|
82
82
|
return false;const _0x0978bc=Number.parseInt(_0x175774.slice(0,4),(0x1859750^0x185975a));const _0x29d14f=executeWasmMod99999ProbeVm(_0xfbdd2d,_0x0978bc,_0x88be1f);if(_0x29d14f.digits9.length!==_0x175774.length)
|
|
83
83
|
return false;let _0xecdca7=0;for(let i=0;i<9;i++){_0xecdca7|=_0x29d14f.digits9.charCodeAt(i)^_0x175774.charCodeAt(i);}
|
|
84
84
|
return _0xecdca7===0;}
|
|
85
|
-
/* @psec-self-seal sha256=
|
|
85
|
+
/* @psec-self-seal sha256=0bcbd16f6161f8095fad2ee629c0f9867126ff809d6a4c497dd1d9371440b102 fnv1a=dd197b03 */
|
package/dist/protocol/ed25519.js
CHANGED
|
@@ -107,4 +107,4 @@ if(typeof _0xfb64f4===_0xa894d1_S(1)){return bytesToHex(psecEd25519SignSync(hexT
|
|
|
107
107
|
const _0x28edd5=_0xa894d1_S(8)in _0xfb64f4?_0xfb64f4.privateKey:_0xfb64f4;if(!_0xf7493a){throw new Error(_0xa894d1_S(9));}
|
|
108
108
|
const _0xe0b94e=new Uint8Array(await _0xf7493a({[_0xa894d1_S(14)]:_0xa894d1_S((0x65507050^0x6550705a))},_0x28edd5,_0x91f3b8));if(_0xe0b94e.length!==(0x69e7a81a^0x69e7a85a)){throw new Error(_0xa894d1_S((0x1a892a51^0x1a892a5a)));}
|
|
109
109
|
return bytesToHex(_0xe0b94e);}
|
|
110
|
-
/* @psec-self-seal sha256=
|
|
110
|
+
/* @psec-self-seal sha256=c502127e85af9bdc0be643cea2bfef46506f19abea98ee1ae99a513f763d1eed fnv1a=dd197b03 */
|
package/dist/protocol/index.js
CHANGED
|
@@ -2,4 +2,4 @@ export * from "./constants.js";
|
|
|
2
2
|
export * from "./types.js";
|
|
3
3
|
export * from "./wire.js";
|
|
4
4
|
|
|
5
|
-
/* @psec-self-seal sha256=
|
|
5
|
+
/* @psec-self-seal sha256=5f56d699eb326aed1d3434abcb532766687c5813609b1ed2dd4c8b63a834d6dc fnv1a=dd197b03 */
|
package/dist/protocol/types.js
CHANGED
package/dist/protocol/wire.js
CHANGED
|
@@ -129,4 +129,4 @@ return false;if(p.rootIssuedAtMs!==undefined&&(!_0x506206(p.rootIssuedAtMs)||p.r
|
|
|
129
129
|
if(p.contextHashHex!==undefined&&(typeof p.contextHashHex!==_0xbbaa68_S(1)||!/^[0-9a-f]{32}$/.test(p.contextHashHex))){return false;}
|
|
130
130
|
if(p.clientPopPubKeyHex!==undefined&&(typeof p.clientPopPubKeyHex!==_0xbbaa68_S(1)||!/^[0-9a-f]{64}$/.test(p.clientPopPubKeyHex))){return false;}
|
|
131
131
|
return validateHardwareAnchorsSchema(p.enrolledAnchors);}
|
|
132
|
-
/* @psec-self-seal sha256=
|
|
132
|
+
/* @psec-self-seal sha256=537c3fb4472a0222a10c90c1e7b7ce4f674206c14c0f863101ce066d663deea9 fnv1a=dd197b03 */
|
|
@@ -68,4 +68,4 @@ const _0x7a8e3b=_0xc5a182.length===0||!Number.isFinite(sum)||sum<1e-6||Math.abs(
|
|
|
68
68
|
?{[_0x73372f_S(39)]:_0x73372f_S((0x2e19f7a^0x2e19f5a)),[_0x73372f_S(40)]:_0x73372f_S((0x62b20d4e^0x62b20d5a)),[_0x73372f_S(41)]:PSecureRaspBit.WEBDRIVER_OR_CDP,[_0x73372f_S(42)]:`Muted or constant OfflineAudioContext DSP buffer detected (sum=${sum})`,}
|
|
69
69
|
:{[_0x73372f_S(39)]:_0x73372f_S((0x214f317a^0x214f315a)),[_0x73372f_S(40)]:_0x73372f_S((0x3b407a4f^0x3b407a5a)),[_0x73372f_S(41)]:PSecureRaspBit.NONE,[_0x73372f_S(42)]:`Audio DSP compressor sum verified (${sum.toFixed(4)})`,},};}
|
|
70
70
|
export{PSecureBehaviorStreamCollector,}from"./behavior-stream.js";
|
|
71
|
-
/* @psec-self-seal sha256=
|
|
71
|
+
/* @psec-self-seal sha256=1edec9c9538e3dc8bec7076c5d822bc9b1724b563aa260c652406b5a0184ca6e fnv1a=dd197b03 */
|
|
@@ -83,4 +83,4 @@ _0x6af441.push(_0x719be2_S((0x1040eac5^0x1040ea5a)));for(const _0x67fb13 of uaCo
|
|
|
83
83
|
const _0x17fa85=_0x6af441.length>0;_0x7c2d61[_0x719be2_S((0x493be9fa^0x493be95a))]=String(_0x17fa85);_0x7c2d61[_0x719be2_S((0x57a83fb^0x57a835a))]=_0x6af441.join(',');const anchors=uaContradictions.length>0
|
|
84
84
|
?{...base.anchors,[_0x719be2_S(186)]:`${base.anchors.platformAnchor}:${uaContradictions.join(',')}`,}
|
|
85
85
|
:base.anchors;return{[_0x719be2_S(190)]:Object.keys(_0x7c2d61).length,[_0x719be2_S(191)]:_0x7c2d61,[_0x719be2_S(181)]:anchors,[_0x719be2_S(154)]:uaContradictions,[_0x719be2_S(192)]:_0x17fa85,[_0x719be2_S(193)]:_0x6af441,};}}
|
|
86
|
-
/* @psec-self-seal sha256=
|
|
86
|
+
/* @psec-self-seal sha256=ca60bb5423e8186096e8726f1b7685095f3fbe41898483e13626c44d78ed844d fnv1a=dd197b03 */
|
|
@@ -41,4 +41,4 @@ return`${k1Str}${mid}${k2Str}`;}
|
|
|
41
41
|
export function decodeMasked9DigitProbe(_0x827041){if(!/^\d{9}$/.test(_0x827041)){throw new Error(_0xe9fca9_S(0));}
|
|
42
42
|
let _0x1eb91a='';for(let i=0;i<3;i++){const _0xab4893=_0x827041.charCodeAt(i)-(0x6070e36a^0x6070e35a);const m=_0x827041.charCodeAt(i+3)-(0x5f14436a^0x5f14435a);const _0x17a3bd=_0x827041.charCodeAt(i+6)-(0x374b366a^0x374b365a);const v=(m-_0xab4893-_0x17a3bd+(0x188d994e^0x188d995a))%(0x1822cd50^0x1822cd5a);_0x1eb91a+=String(v);}
|
|
43
43
|
return Number.parseInt(_0x1eb91a,(0x7bb04a50^0x7bb04a5a));}
|
|
44
|
-
/* @psec-self-seal sha256=
|
|
44
|
+
/* @psec-self-seal sha256=997b58461cdd842f9061ef7e8049e9b08d9489ea248ad5fa999bf08c02be9504 fnv1a=dd197b03 */
|
|
@@ -39,4 +39,4 @@ const _0xdb0e94=new Uint8Array(_0xd039ff.buffer);const _0x7fbebe=psecPolyHash32(
|
|
|
39
39
|
export function verifyFuzzyHardwareBinding(_0x92c052,_0xc6cc57,_0x06d0bd=3){const keys=[_0xd63c10_S(1),_0xd63c10_S(2),_0xd63c10_S(3),_0xd63c10_S(4),_0xd63c10_S(5),];const _0x8f7d0b=[];for(const k of keys){if(_0x92c052[k]&&_0xc6cc57[k]&&_0x92c052[k]===_0xc6cc57[k]){_0x8f7d0b.push(k);}}
|
|
40
40
|
return{[_0xd63c10_S(8)]:_0x8f7d0b.length,[_0xd63c10_S(9)]:5,[_0xd63c10_S(10)]:_0x8f7d0b.length>=3&&_0x8f7d0b.length>=_0x06d0bd,[_0xd63c10_S(11)]:_0x8f7d0b,};}
|
|
41
41
|
export function hashHardwareAnchorsToWord(anchors){const _0x4668bf=`${anchors.cpuAnchor}|${anchors.gpuAnchor}|${anchors.aluAudioAnchor}|${anchors.displayAnchor}|${anchors.platformAnchor}`;const _0x1ab9fd=new TextEncoder().encode(_0x4668bf);return psecPolyHash32(_0x1ab9fd,(0x22e95c39^0x529a395a));}
|
|
42
|
-
/* @psec-self-seal sha256=
|
|
42
|
+
/* @psec-self-seal sha256=3aa9f260703a59b433deb083b642896f24ae8641c467862e8c25956de36af780 fnv1a=dd197b03 */
|
package/dist/rasp/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from "./hardware-binding.js";
|
|
2
2
|
export * from "./probes.js";
|
|
3
3
|
|
|
4
|
-
/* @psec-self-seal sha256=
|
|
4
|
+
/* @psec-self-seal sha256=befe1166edbef8b73526e45c438e957e2cfb02c60271425cc4be3979400a6f3b fnv1a=dd197b03 */
|
package/dist/rasp/klepto-seal.js
CHANGED
|
@@ -36,4 +36,4 @@ const _0x138245=(~crc)>>>0;return _0x138245===0?1:_0x138245;}
|
|
|
36
36
|
export function psecMorton16Interleave(_0xf37388){let x=(_0xf37388>>>0)&(0x7ec25fa5^0x7ec2a05a);x=((x|(x<<8))&(0x454055a5^0x45bf555a))>>>0;x=((x|(x<<4))&(0x314b7055^0x3e447f5a))>>>0;x=((x|(x<<2))&(0x7948b569^0x4a7b865a))>>>0;x=((x|(x<<1))&(0x3af4fd0f^0x6fa1a85a))>>>0;return x>>>0;}
|
|
37
37
|
export function psecMorton32Interleave(_0xf37388){const s=_0xf37388>>>0;const _0x25a968=psecMorton16Interleave(s&(0x6a4d5ea5^0x6a4da15a));const _0x6c1b24=psecMorton16Interleave((s>>>(0x410a2f4a^0x410a2f5a))&(0x658fffa5^0x658f005a));return(_0x25a968|((_0x6c1b24<<1)>>>0))>>>0;}
|
|
38
38
|
export function psecKleptoWeaveProbeStep(_0xf37388,_0x6cf5e2,_0x75e68e){const r=_0x75e68e>>>0;const _0xd4c31c=(-r)>>>0;const _0x12c864=((r|_0xd4c31c)>>(0x32896745^0x3289675a))>>>0;const _0xbd8ab3=(_0x12c864&(0x3634214a^0x3634215a))>>>0;let _0x6e9e43=(_0xf37388+_0xbd8ab3)>>>0;_0x6e9e43=psecXorshift32Step(_0x6e9e43);const _0x2df22a=(Math.imul((_0x6e9e43+1)>>>0,_0x6e9e43)&1)>>>0;_0x6e9e43=(_0x6e9e43^_0x2df22a)>>>0;const _0xc7915c=psecCrc32CustomD5714649(_0x6cf5e2);return(_0x6e9e43^_0xc7915c)>>>0;}
|
|
39
|
-
/* @psec-self-seal sha256=
|
|
39
|
+
/* @psec-self-seal sha256=b6d497d9d475500c5c27052308e0c328ec53ac8bd153033ab6289bcd8445360c fnv1a=dd197b03 */
|
|
@@ -37,4 +37,4 @@ if(_0xe7a019.aarch64PrologueBytes&&_0xe7a019.aarch64PrologueBytes.length>=8){con
|
|
|
37
37
|
if(_0x36e62d===((0xdd9c127f^0xbc311bf)>>>0)&&(insn0===(0x7ee04f5a^0x2c604f5a)||insn0===(0x25b8437a^0x7738435a)||insn0===(0x2779feba^0xd66fd5a)||insn0===((0x6d87f5dd^0xbf07f5dd)>>>0)||insn0===((0xdfb91577^0xd391557)>>>0))){return{[_0x71773f_S(50)]:_0x71773f_S((0x31861370^0x3186135a)),[_0x71773f_S(51)]:_0x71773f_S((0x493a2e77^0x493a2e5a)),[_0x71773f_S(52)]:PSecureRaspBit.PROTOTYPE_OR_TOSTRING_HOOK,[_0x71773f_S(53)]:_0x71773f_S((0x35bf2f74^0x35bf2f5a)),};}
|
|
38
38
|
if((insn0===(0x8b2e10a^0x50b2e15a)&&_0x36e62d===((0x3b0cdb13^0xed13d913)>>>0))||(insn0===(0x6f7f820b^0x377f825a)&&_0x36e62d===((0xafcedfbf^0x79d1dd9f)>>>0))||insn0>>>(0x3d5e1840^0x3d5e185a)===0b000101||(insn0&((0x18510506^0xe7b10519)>>>0))>>>0===((0xc7313b01^0x13113b01)>>>0)){return{[_0x71773f_S(50)]:_0x71773f_S((0x1ea32370^0x1ea3235a)),[_0x71773f_S(51)]:_0x71773f_S((0x391fc377^0x391fc35a)),[_0x71773f_S(52)]:PSecureRaspBit.ROOT_OR_JAILBREAK_OR_FRIDA,[_0x71773f_S(53)]:_0x71773f_S((0x77805a75^0x77805a5a)),};}}
|
|
39
39
|
return{[_0x71773f_S(50)]:_0x71773f_S((0x30b89270^0x30b8925a)),[_0x71773f_S(51)]:_0x71773f_S((0x3806336a^0x3806335a)),[_0x71773f_S(52)]:PSecureRaspBit.NONE,[_0x71773f_S(53)]:_0x71773f_S((0x15f9de6b^0x15f9de5a)),};}
|
|
40
|
-
/* @psec-self-seal sha256=
|
|
40
|
+
/* @psec-self-seal sha256=ad4509cba78a5b2a984120324508170e87ba10de59d43ee77ff3b1b49aae3cfd fnv1a=dd197b03 */
|
package/dist/rasp/probes.js
CHANGED
|
@@ -47,4 +47,4 @@ const _0x7eeaac=psecMorton16Interleave(_0xd5e4ae);const _0xd07293=_0x202df9
|
|
|
47
47
|
?_0x8a5681_S(1)
|
|
48
48
|
:_0x8a5681_S(2);return{[_0x8a5681_S(4)]:_0x8a5681_S(3),[_0x8a5681_S(5)]:_0x6d745a,[_0x8a5681_S(6)]:_0xd07293,[_0x8a5681_S(7)]:_0xf26b56,[_0x8a5681_S(8)]:computeSubnormalAluFingerprint(),[_0x8a5681_S(9)]:_0xd5e4ae,[_0x8a5681_S(10)]:_0x7eeaac,[_0x8a5681_S(11)]:Date.now(),};}}
|
|
49
49
|
export*from"./auto-collector.js";export*from"./dvp-consistency.js";export*from"./klepto-seal.js";export*from"./mobile-native-probes.js";export*from"./web-integrity-probes.js";
|
|
50
|
-
/* @psec-self-seal sha256=
|
|
50
|
+
/* @psec-self-seal sha256=4b4b0c45fccc64b3075e2293f00eb40f0ead7d93fa6d5fbaacc15780f95b8a0e fnv1a=dd197b03 */
|