Commit 958f01c0 authored by wang's avatar wang

适配不同版本 chrome

parent e7324d0c
No preview for this file type
......@@ -50,3 +50,5 @@ let cbb_1213 = [
let res = cbb_1213.map(e=>{return window.hasOwnProperty(e)})
c
\ No newline at end of file
......@@ -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 => {
......
......@@ -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:8890'
proxy = 'http://127.0.0.1:7890'
tlsV = f'chrome_{random.randint(105, 113)}'
tlsV = 'chrome_114'
session = tls_client.Session(tlsV)
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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
}
}
}
// if (Math.random() < 0.5){
for (let i = 0; i < res.data.length; i++) {
res.data[i] = parseInt(window._random() * 100 + 100)
// 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) {
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(parseInt(Math.random() * 210 + 10), i, i + 1)
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);
......
_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 {
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment