Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-shape
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wangmingming
lcc-shape
Commits
958f01c0
Commit
958f01c0
authored
Sep 12, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
适配不同版本 chrome
parent
e7324d0c
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
799 additions
and
3276 deletions
+799
-3276
test2.js
decrypt/test2.js
+0
-0
env_funcs.js
env/env_funcs.js
+2
-0
collect.js
env/templates/collect.js
+0
-1
jetblue.py
jetblue.py
+1
-1
js_dom_run.js
js_dom_run.js
+670
-3233
HTMLCanvasElement-impl.js
jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js
+81
-33
src_out.js
src_out.js
+16
-8
sss.js
sss.js
+29
-0
No files found.
decrypt/test2.js
View file @
958f01c0
No preview for this file type
env/env_funcs.js
View file @
958f01c0
...
...
@@ -50,3 +50,5 @@ let cbb_1213 = [
let
res
=
cbb_1213
.
map
(
e
=>
{
return
window
.
hasOwnProperty
(
e
)})
c
\ No newline at end of file
env/templates/collect.js
View file @
958f01c0
...
...
@@ -868,7 +868,6 @@ try {
let
webglImg
=
{};
let
userAgentData
=
{};
navigator
.
userAgentData
&&
navigator
.
userAgentData
.
getHighEntropyValues
([
'architecture'
,
'bitness'
,
'brands'
,
'mobile'
,
'model'
,
'platform'
,
'platformVersion'
,
'uaFullVersion'
,
'wow64'
,
'fullVersionList'
]).
then
(
e
=>
{
...
...
jetblue.py
View file @
958f01c0
...
...
@@ -66,7 +66,7 @@ for i in range(100):
# proxy = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@198.147.25.26:{int(random.randint(10000, 11149))}'
proxy
=
'http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
if
platform
.
uname
()
.
system
==
'Darwin'
:
proxy
=
'http://127.0.0.1:
8
890'
proxy
=
'http://127.0.0.1:
7
890'
tlsV
=
f
'chrome_{random.randint(105, 113)}'
tlsV
=
'chrome_114'
session
=
tls_client
.
Session
(
tlsV
)
...
...
js_dom_run.js
View file @
958f01c0
This diff is collapsed.
Click to expand it.
jsdom/lib/jsdom/living/nodes/HTMLCanvasElement-impl.js
View file @
958f01c0
var
decompressSTring
=
function
(
s
){
let
res
=
[];
let
ss
=
s
.
split
(
'|'
)
for
(
let
i
=
0
;
i
<
ss
.
length
;
i
++
)
{
let
t
=
ss
[
i
];
if
(
t
!==
''
){
let
a
=
t
.
split
(
'-'
)
if
(
a
.
length
===
2
){
for
(
let
j
=
0
;
j
<
parseInt
(
a
[
1
]);
j
++
)
{
res
.
push
(
parseInt
(
a
[
0
]))
}
}
else
{
res
.
push
(
parseInt
(
a
[
0
]))
}
}
}
console
.
log
(
ss
)
return
res
}
var
proxy
=
function
(
tt
,
name
)
{
return
new
Proxy
(
tt
,
{
get
(
target
,
p
,
receiver
)
{
...
...
@@ -2740,22 +2759,22 @@ class CanvasRenderingContext2D {
res
.
data
[
2
]
=
tdata
[
2
]
res
.
data
[
3
]
=
tdata
[
3
]
}
else
{
for
(
let
i
=
0
;
i
<
res
.
data
.
length
;
i
++
)
{
res
.
data
[
i
]
=
parseInt
(
window
.
_random
()
*
100
+
100
)
}
}
if
(
arguments
[
0
]
===
0
&&
arguments
[
1
]
===
0
&&
arguments
[
2
]
===
5
)
{
for
(
let
i
=
0
;
i
<
res
.
data
.
length
;
i
++
)
{
if
(
res
.
data
[
i
]
===
22
)
{
res
.
data
[
i
]
=
0
}
}
// for (let i = 0; i < res.data.length; i++) {
// res.data[i] = parseInt(window._random() * 100 + 100)
// }
}
// if (Math.random() < 0.5){
for
(
let
i
=
0
;
i
<
res
.
data
.
length
;
i
++
)
{
res
.
data
[
i
]
=
parseInt
(
window
.
_random
()
*
100
+
100
)
}
// if (arguments[0] === 0 && arguments[1] === 0 && arguments[2] === 5) {
// for (let i = 0; i < res.data.length; i++) {
// if (res.data[i] === 22) {
// res.data[i] = 0
// }
// }
// }
// // if (Math.random() < 0.5){
// for (let i = 0; i < res.data.length; i++) {
// res.data[i] = parseInt(window._random() * 100 + 100)
// }
// // }
console
.
log
(
'CanvasRenderingContext2D.getImageData'
,
...
arguments
,
res
)
// todo 修改图片
...
...
@@ -3089,9 +3108,16 @@ class HTMLCanvasElementImpl extends HTMLElementImpl {
}
readPixels
(
x
,
y
,
width
,
height
,
format
,
type
,
pixels
)
{
for
(
let
i
=
0
;
i
<
pixels
.
length
-
1
;
i
++
)
{
pixels
.
fill
(
parseInt
(
Math
.
random
()
*
210
+
10
),
i
,
i
+
1
)
if
(
pixels
.
length
===
90000
){
let
res
=
decompressSTring
(
window
.
ENV
.
webglimg
.
strs
);
pixels
=
new
Uint8Array
(
res
)
for
(
let
i
=
0
;
i
<
pixels
.
length
-
1
;
i
++
)
{
pixels
.
fill
(
res
[
i
],
i
,
i
+
1
)
}
}
// for (let i = 0; i < pixels.length - 1; i++) {
// pixels.fill(parseInt(Math.random() * 210 + 10), i, i + 1)
// }
v_console_log
(
' [*] WebGLRenderingContext -> readPixels[func]'
,
x
,
y
,
width
,
height
,
format
,
type
,
pixels
)
}
...
...
@@ -3151,13 +3177,35 @@ class HTMLCanvasElementImpl extends HTMLElementImpl {
// window.debug = true;
v_console_log
(
' [*] WebGLRenderingContext -> getSupportedExtensions[func]'
)
return
[
"ANGLE_instanced_arrays"
,
"EXT_blend_minmax"
,
"EXT_color_buffer_half_float"
,
"EXT_disjoint_timer_query"
,
"EXT_float_blend"
,
"EXT_frag_depth"
,
"EXT_shader_texture_lod"
,
"EXT_texture_compression_bptc"
,
"EXT_texture_compression_rgtc"
,
"EXT_texture_filter_anisotropic"
,
"WEBKIT_EXT_texture_filter_anisotropic"
,
"EXT_sRGB"
,
"KHR_parallel_shader_compile"
,
"OES_element_index_uint"
,
"OES_fbo_render_mipmap"
,
"OES_standard_derivatives"
,
"OES_texture_float"
,
"OES_texture_float_linear"
,
"OES_texture_half_float"
,
"OES_texture_half_float_linear"
,
"OES_vertex_array_object"
,
"WEBGL_color_buffer_float"
,
"WEBGL_compressed_texture_s3tc"
,
"WEBKIT_WEBGL_compressed_texture_s3tc"
,
"WEBGL_compressed_texture_s3tc_srgb"
,
"WEBGL_debug_renderer_info"
,
"WEBGL_debug_shaders"
,
"WEBGL_depth_texture"
,
"WEBKIT_WEBGL_depth_texture"
,
"WEBGL_draw_buffers"
,
"WEBGL_lose_context"
,
"WEBKIT_WEBGL_lose_context"
,
"WEBGL_multi_draw"
,
]
"ANGLE_instanced_arrays"
,
"EXT_blend_minmax"
,
"EXT_color_buffer_half_float"
,
"EXT_disjoint_timer_query"
,
"EXT_float_blend"
,
"EXT_frag_depth"
,
"EXT_shader_texture_lod"
,
"EXT_texture_compression_rgtc"
,
"EXT_texture_filter_anisotropic"
,
"EXT_sRGB"
,
"KHR_parallel_shader_compile"
,
"OES_element_index_uint"
,
"OES_fbo_render_mipmap"
,
"OES_standard_derivatives"
,
"OES_texture_float"
,
"OES_texture_float_linear"
,
"OES_texture_half_float"
,
"OES_texture_half_float_linear"
,
"OES_vertex_array_object"
,
"WEBGL_color_buffer_float"
,
"WEBGL_compressed_texture_s3tc"
,
"WEBGL_compressed_texture_s3tc_srgb"
,
"WEBGL_debug_renderer_info"
,
"WEBGL_debug_shaders"
,
"WEBGL_depth_texture"
,
"WEBGL_draw_buffers"
,
"WEBGL_lose_context"
,
"WEBGL_multi_draw"
]
}
getExtension
(
key
)
{
...
...
@@ -3906,18 +3954,18 @@ class HTMLCanvasElementImpl extends HTMLElementImpl {
if
(
canvas
)
{
let
res
=
canvas
.
toDataURL
(...
args
);
if
(
this
.
width
===
300
&&
this
.
height
===
150
)
{
// res = window.ENV.jpg || res
;
res
=
window
.
ENV
.
jpg
;
}
else
{
// ctx.fillStyle = '#dddddd'; // 设置颜色
if
(
Math
.
random
()
<
0.5
){
let
ctx
=
canvas
.
getContext
(
'2d'
);
for
(
let
i
=
0
;
i
<
randInt
(
1
,
5
);
i
++
)
{
let
color
=
Math
.
floor
(
Math
.
random
()
*
150
);
ctx
.
fillStyle
=
"rgba("
+
color
+
","
+
color
+
","
+
color
+
",1)"
;
ctx
.
fillRect
(
randInt
(
0
,
this
.
width
),
randInt
(
0
,
this
.
height
),
1
,
1
)
}
}
//
if (Math.random() < 0.5){
//
let ctx = canvas.getContext('2d');
//
for (let i = 0; i < randInt(1, 5); i++) {
//
//
let color = Math.floor(Math.random() * 150);
//
ctx.fillStyle = "rgba(" + color + "," + color + "," + color + ",1)";
//
ctx.fillRect(randInt(0, this.width), randInt(0, this.height), 1, 1)
//
}
//
}
res
=
canvas
.
toDataURL
(...
args
);
...
...
src_out.js
View file @
958f01c0
_getOwnPropertyNames
=
Object
.
getOwnPropertyNames
;
//
_getOwnPropertyNames = Object.getOwnPropertyNames;
// Object.getOwnPropertyNames = function (a) {
// let res = _getOwnPropertyNames(a);
// con4('getOwnPropertyNames', a, res)
// return res;
// }
_getOwnPropertyDescriptor
=
Object
.
getOwnPropertyDescriptor
;
Object
.
getOwnPropertyDescriptor
=
function
(
p
,
v
){
let
res
=
_getOwnPropertyDescriptor
(
p
,
v
)
console
.
log
(
'_getOwnPropertyDescriptor'
,
v
,
res
)
return
res
;
}
//
_getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
//
Object.getOwnPropertyDescriptor = function (p, v){
//
let res = _getOwnPropertyDescriptor(p,v)
//
console.log('_getOwnPropertyDescriptor', v, res)
//
return res;
//
}
crypto
.
getRandomValues
=
function
(){
var
e
=
arguments
[
0
];
return
e
.
map
(
function
(
x
,
i
){
return
e
[
i
]
=
1073741824
});}
con4
=
console
.
log
...
...
@@ -956,11 +956,15 @@ Math.random = function random() {
});
j
(
qt
,
"u"
,
{
value
:
function
(
qO
)
{
return
this
.
K
[
qO
].
v
let
res
=
this
.
K
[
qO
].
v
;
// con3('sett', qO, '=',res)
return
res
;
}
});
j
(
qt
,
"G"
,
{
value
:
function
(
qN
,
qX
)
{
// con3('gett', qN, '=',qX)
this
.
K
[
qN
].
v
=
qX
}
});
...
...
@@ -3285,6 +3289,10 @@ Math.random = function random() {
return
AY
}
Ay
=
Aj
.
O
();
// console.log([].slice.call(Aj.p))
// if (Aj.p.length === 3 && Array.isArray(Aj.p[Aj.p.length -3]) && Aj.p[Aj.p.length -3].length === 11 && Aj.p[Aj.p.length - 1 ] === true){
// debugger;
// }
if
(
Aj
.
W
.
length
===
0
)
{
qd
[
Ay
](
Aj
)
}
else
{
...
...
sss.js
View file @
958f01c0
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment