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
cd9b1170
Commit
cd9b1170
authored
Oct 10, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
130758a9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
243 additions
and
133 deletions
+243
-133
main.py
ws/src/main.py
+3
-1
src2.js
ws/src/src2.js
+240
-132
No files found.
ws/src/main.py
View file @
cd9b1170
...
...
@@ -364,7 +364,6 @@ while True:
# session = requests.Session()
#
# if platform.uname().system == 'Darwin':
total
+=
1
# response = session.post(url, headers=headers, data=data)
# status_code = response.status_code
...
...
@@ -402,6 +401,9 @@ while True:
logger
.
success
(
f
'添加成功 {success}'
)
# time.sleep(3)
total
+=
1
except
Exception
as
e
:
traceback
.
print_exc
()
print
(
e
)
...
...
ws/src/src2.js
View file @
cd9b1170
...
...
@@ -85,7 +85,7 @@ var _random = Math.random
// Performance.prototype.now = function now() {
// return Number('1727244753591'.slice(8))
// }
//
times = 0
times = 0
// Math.random = function random() {
// return 0.08636862211354912
// };
...
...
@@ -6818,7 +6818,7 @@ Object.defineProperties(Navigator.prototype, {
break;
case 'platformVersion':
r = {
"platformVersion": window.ENV.useragentdata.highvalue[e[0].toLowerCase()],
"platformVersion": window.ENV.useragentdata.highvalue[e[0].toLowerCase()]
?? window.ENV.useragentdata.highvalue['platformVersion']
,
"brands": window.ENV.useragentdata.brands,
"mobile": window.ENV.useragentdata.mobile,
"platform": window.ENV.useragentdata.platform
...
...
@@ -6826,7 +6826,7 @@ Object.defineProperties(Navigator.prototype, {
break;
case 'uaFullVersion':
r = {
"uaFullVersion": window.ENV.useragentdata.highvalue[
e[0].toLowerCase()]
,
"uaFullVersion": window.ENV.useragentdata.highvalue[
'uaFullVersion'] ?? window.ENV.useragentdata.highvalue['uafullversion']
,
"brands": window.ENV.useragentdata.brands,
"mobile": window.ENV.useragentdata.mobile,
"platform": window.ENV.useragentdata.platform
...
...
@@ -6842,7 +6842,7 @@ Object.defineProperties(Navigator.prototype, {
break;
case 'fullVersionList':
r = {
"fullVersionList": window.ENV.useragentdata.highvalue[e[0].toLowerCase()],
"fullVersionList": window.ENV.useragentdata.highvalue[e[0].toLowerCase()]
??window.ENV.useragentdata.highvalue['fullVersionList']
,
"brands": window.ENV.useragentdata.brands,
"mobile": window.ENV.useragentdata.mobile,
"platform": window.ENV.useragentdata.platform
...
...
@@ -7041,10 +7041,11 @@ Object.defineProperties(TextMetrics.prototype, {
},
[Symbol.toStringTag]: {value: "TextMetrics", writable: false, enumerable: false, configurable: true},
})
Plugin = v_saf(function Plugin() {
Plugin = v_saf(function Plugin(
config
) {
if (!v_new_toggle) {
throw TypeError("Illegal constructor")
}
mm.memory.private_data.set(this, config)
;
})
MimeType = v_saf(function MimeType() {
...
...
@@ -7053,29 +7054,83 @@ MimeType = v_saf(function MimeType() {
}
;
})
Object.defineProperties(Plugin.prototype, {
name: {value: '', writable: true},
description: {value: '', writable: true},
filename: {value: '', writable: true},
length: {value: '', writable: true},
})
Plugin.prototype = {
get description() {
if (!Plugin.prototype.isPrototypeOf(this)) {
throw new TypeError("Illegal constructor");
}
;
let result = mm.memory.private_data.get(this).description;
print('Get', 'Plugin', 'description', arguments, result);
return result;
},
get filename() {
if (!Plugin.prototype.isPrototypeOf(this)) {
throw new TypeError("Illegal constructor");
}
;
let result = mm.memory.private_data.get(this).filename;
print('Get', 'Plugin', 'filename', arguments, result);
return result;
},
item(index) {
// debugger;
let result = this[index];
print('Func', 'Plugin', 'item', arguments, result);
return result;
},
get length() {
if (!Plugin.prototype.isPrototypeOf(this)) {
throw new TypeError("Illegal constructor");
}
;
let result = 2;
print('Get', 'Plugin', 'length', arguments, result);
return result;
},
get name() {
if (!Plugin.prototype.isPrototypeOf(this)) {
throw new TypeError("Illegal constructor");
}
;
let result = mm.memory.private_data.get(this).name;
print('Get', 'Plugin', 'name', arguments, result);
return result;
},
namedItem(key) {
let result = this[key];
print('Func', 'Plugin', 'namedItem', result);
return result;
},
};
PluginArray = v_saf(function PluginArray() {
if (!v_new_toggle) {
throw TypeError("Illegal constructor")
}
;
for (let i = 0; i < Object.keys(ENV.plugins).length; i++) {
this[i] = v_new(Plugin);
let plugin = ENV.plugins[i];
this[i].description = plugin.description;
this[i].filename = plugin.filename;
this[i].length = plugin.length;
this[i].name = plugin.name;
let config = {
description: plugin.description,
'filename' : plugin.filename,
'length' : plugin.length,
'name' : plugin.name,
}
this[i] = new Plugin(config);
// this[i].description = plugin.description;
// this[i].filename = plugin.filename;
// this[i].length = plugin.length;
// this[i].name = plugin.name;
this[i]['0'] = plugin['0'] || plugin['field1']
this[i]['1'] = plugin['1'] || plugin['field2']
this[i]['application/pdf'] = plugin['application/pdf'] || plugin['applicationpdf']
this[i]['text/pdf'] = plugin['text/pdf'] || plugin['textpdf']
let name = this[i].name
this[name] = this[i]
}
// this[0] = v_new(Plugin);
// this[0].description = "Portable Document Format";
...
...
@@ -7125,14 +7180,26 @@ Object.defineProperties(crypto, {
value: v_saf(function SubtleCrypto() {
})
},
// getRandomValues: {
// value: v_saf(function () {
// var e = arguments[0];
// return e.map(function (x, i) {
// return e[i] = parseInt(2147193652)
// });
// })
// }
getRandomValues: {
value: v_saf(function (e) {
let MaxVal = 256;
if (e instanceof Uint8Array){
MaxVal = 256
}
else if (e instanceof Uint16Array){
MaxVal = 57435
}
else if (e instanceof Uint32Array){
MaxVal = 2147193652
}
let len = e.length;
for (let i = 0; i < len; i++) {
e[i] = MaxVal * Math.random();
}
print('getRandomValues.call', e)
return e;
})
}
})
window.crypto = crypto;
Image = v_saf(function Image() {
...
...
@@ -8069,14 +8136,15 @@ let emojis = {
"☕": {"40,51,1,1": "125,69,51,255", "52,57,1,1": "125,69,51,255"},
"🌞": {"44,40,1,1": "157,125,63,255", "39,47,1,1": "252,213,63,255"},
"🐻❄️": {"52,57,1,1": "244,244,244,255", "40,51,1,1": "244,244,244,255"},
"👰": {"58,39,1,1": "2
55,200,61,255", "42,52,1,1": "230,230,230
,255"},
"👰": {"58,39,1,1": "2
32,172,28,255", "42,52,1,1": "255,204,49
,255"},
"😎": {"18,90,1,1": "0,0,0,0"},
"6️⃣": {"38,77,1,1": "0,166,237,255"},
"🍼": {"48,28,1,1": "227,157,137,255"},
"🏴": {"94,23,1,1": "155,155,155,255", "47,23,1,1": "0,0,0,0"},
"📊": {"26,46,1,1": "0,210,106,255"},
"㊗️": {"37,17,1,1": "0,0,0,0"},
"⛎": {"62,28,1,1": "141,101,197,255"}
'⛎':{'68,28,1,1':'204,131,217,255'},
}
class CanvasRenderingContext2D {
...
...
@@ -9186,12 +9254,22 @@ MimeTypeArray = v_saf(function MimeTypeArray() {
;
this[0] = v_new(Plugin);
this[0].description = "Portable Document Format";
this[0].enabledPlugin = {"0": {}, "1": {}};
this[0].enabledPlugin = new Plugin({
description: "Portable Document Format",
filename: "internal-pdf-viewer",
length: 2,
name: "PDF Viewer",
})
this[0].suffixes = "pdf";
this[0].type = "application/pdf";
this[1] = v_new(Plugin);
this[1].description = "Portable Document Format";
this[1].enabledPlugin = {"0": {}, "1": {}};
this[1].enabledPlugin = new Plugin({
description: "Portable Document Format",
filename: "internal-pdf-viewer",
length: 2,
name: "PDF Viewer",
})
this[1].suffixes = "pdf";
this[1].type = "text/pdf";
})
...
...
@@ -9333,9 +9411,9 @@ r2.rangeMax = webGlRandom ? randint(27, 30) : 30
r2.precision = 0
class WebGLRenderingContext {
constructor(aaa) {
print('new WebGLRenderingContext', aaa)
}
//
constructor(aaa) {
//
print('new WebGLRenderingContext', aaa)
//
}
createBuffer() {
print1(' [*] WebGLRenderingContext -> createBuffer[func]');
...
...
@@ -9457,13 +9535,41 @@ class WebGLRenderingContext {
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_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']
}
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_bptc",
"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_astc",
"WEBGL_compressed_texture_etc",
"WEBGL_compressed_texture_etc1",
"WEBGL_compressed_texture_pvrtc",
"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) {
...
...
@@ -9553,7 +9659,7 @@ class WebGLRenderingContext {
res = new Float32Array([1, 1])
}
if (key == 33901) {
res = new Float32Array([1
, 64
])
res = new Float32Array([1
5, 11
])
}
if (key == 3386) {
res = new Int32Array([16384, 16384])
...
...
@@ -10178,7 +10284,6 @@ Object.defineProperties(WebGLRenderingContext.prototype, {
vertexAttrib4fv: {writable: true, enumerable: true, configurable: true},
vertexAttribPointer: {writable: true, enumerable: true, configurable: true},
viewport: {writable: true, enumerable: true, configurable: true},
constructor: {writable: true, enumerable: false, configurable: true},
makeXRCompatible: {writable: true, enumerable: true, configurable: true},
[Symbol.toStringTag]: {
value: "WebGLRenderingContext",
...
...
@@ -10187,6 +10292,8 @@ Object.defineProperties(WebGLRenderingContext.prototype, {
configurable: true
},
})
delete WebGLRenderingContext.prototype.constructor
WebGLRenderingContext = protectProp(WebGLRenderingContext)
window.WebGLRenderingContext = WebGLRenderingContext
...
...
@@ -10206,8 +10313,12 @@ class OffscreenCanvas {
let res = this._canvas.getContext(type)
if (type === 'webgl') {
let t = proxy(new window.WebGLRenderingContext(), 'offCanvas.webgl')
let t =new window.WebGLRenderingContext()
t = new Proxy(t, {
ownKeys(target) {
return ENV.webglprops
}
})
return t
}
// return proxy(res, 'newContext')
...
...
@@ -11225,7 +11336,7 @@ Object.defineProperties(RTCIceCandidate.prototype, {
get() {
let res = `candidate:${t1} 1 udp ${t2} ${ip} ${t3} typ host generation 0 ufrag ${randomStr} network-id ${t4}`
print(" [*] RTCIceCandidate -> candidate[get]", res);
return
res
;
return
null
;
}
...
...
@@ -11236,7 +11347,7 @@ Object.defineProperties(RTCIceCandidate.prototype, {
Object.defineProperties(PluginArray.prototype, {
length: {
get() {
print1(" [*] PluginArray -> length[get]",
5
);
print1(" [*] PluginArray -> length[get]",
Object.keys(ENV.plugins).length
);
return Object.keys(ENV.plugins).length
},
enumerable: true
...
...
@@ -13247,84 +13358,84 @@ Array.prototype.join = v_saf(function join(s) {
console.log('absresult', _join.call(window.ENV.mathprops, s))
return _join.call(this, s)
}
if (this.indexOf('canvas') > -1) {
let res = [
"canvas",
"globalAlpha",
"globalCompositeOperation",
"filter",
"imageSmoothingEnabled",
"imageSmoothingQuality",
"strokeStyle",
"fillStyle",
"shadowOffsetX",
"shadowOffsetY",
"shadowBlur",
"shadowColor",
"lineWidth",
"lineCap",
"lineJoin",
"miterLimit",
"lineDashOffset",
"font",
"textAlign",
"textBaseline",
"direction",
"fontKerning",
"fontStretch",
"fontVariantCaps",
"letterSpacing",
"textRendering",
"wordSpacing",
"clip",
"createConicGradient",
"createImageData",
"createLinearGradient",
"createPattern",
"createRadialGradient",
"drawFocusIfNeeded",
"drawImage",
"fill",
"fillText",
"getContextAttributes",
"getImageData",
"getLineDash",
"getTransform",
"isContextLost",
"isPointInPath",
"isPointInStroke",
"measureText",
"putImageData",
"reset",
"roundRect",
"save",
"scale",
"setLineDash",
"setTransform",
"stroke",
"strokeText",
"transform",
"translate",
"arc",
"arcTo",
"beginPath",
"bezierCurveTo",
"clearRect",
"closePath",
"ellipse",
"fillRect",
"lineTo",
"moveTo",
"quadraticCurveTo",
"rect",
"resetTransform",
"restore",
"rotate",
"strokeRect"
];
// res = res.sort(sortRandom)
return _join.call(res, s)
}
//
if (this.indexOf('canvas') > -1) {
//
let res = [
//
"canvas",
//
"globalAlpha",
//
"globalCompositeOperation",
//
"filter",
//
"imageSmoothingEnabled",
//
"imageSmoothingQuality",
//
"strokeStyle",
//
"fillStyle",
//
"shadowOffsetX",
//
"shadowOffsetY",
//
"shadowBlur",
//
"shadowColor",
//
"lineWidth",
//
"lineCap",
//
"lineJoin",
//
"miterLimit",
//
"lineDashOffset",
//
"font",
//
"textAlign",
//
"textBaseline",
//
"direction",
//
"fontKerning",
//
"fontStretch",
//
"fontVariantCaps",
//
"letterSpacing",
//
"textRendering",
//
"wordSpacing",
//
"clip",
//
"createConicGradient",
//
"createImageData",
//
"createLinearGradient",
//
"createPattern",
//
"createRadialGradient",
//
"drawFocusIfNeeded",
//
"drawImage",
//
"fill",
//
"fillText",
//
"getContextAttributes",
//
"getImageData",
//
"getLineDash",
//
"getTransform",
//
"isContextLost",
//
"isPointInPath",
//
"isPointInStroke",
//
"measureText",
//
"putImageData",
//
"reset",
//
"roundRect",
//
"save",
//
"scale",
//
"setLineDash",
//
"setTransform",
//
"stroke",
//
"strokeText",
//
"transform",
//
"translate",
//
"arc",
//
"arcTo",
//
"beginPath",
//
"bezierCurveTo",
//
"clearRect",
//
"closePath",
//
"ellipse",
//
"fillRect",
//
"lineTo",
//
"moveTo",
//
"quadraticCurveTo",
//
"rect",
//
"resetTransform",
//
"restore",
//
"rotate",
//
"strokeRect"
//
];
//
// res = res.sort(sortRandom)
//
return _join.call(res, s)
//
}
if (this.indexOf('getDetails') > -1) {
return _join.call([
"isInstalled",
...
...
@@ -13443,8 +13554,9 @@ Array.prototype.join = v_saf(function join(s) {
"trace",
"warn"
];
return _join.call(r, s)
// window.ENV.consoleprops = window.ENV.consoleprops.sort(sortRandom)
r = r.sort(sortRandom)
//
r = r.sort(sortRandom)
if (window.ENV.consoleprops && assertTimes === 0) {
assertTimes += 1;
...
...
@@ -16611,7 +16723,11 @@ Worker = newFunc('Worker', 2, function Worker(url, opt) {
// 这里是异步脚本的 postMessage
print('inner worker get postMessage', that.postMessage)
// debugger
return that.onmessage
return function (data){
print('inner worker get postMessage.call', JSON.stringify(arguments))
that.onmessage({data})
}
}
},
onmessage: {
...
...
@@ -16750,14 +16866,6 @@ Object.defineProperties(Worker.prototype, {
;
;
;
;
;
;
\ No newline at end of file
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