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
a6e9d717
Commit
a6e9d717
authored
Sep 24, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws 测试
parent
02ac8480
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
77 additions
and
51 deletions
+77
-51
main.py
wn/src/main.py
+0
-1
src2.js
ws/src/src2.js
+77
-50
No files found.
wn/src/main.py
View file @
a6e9d717
...
...
@@ -235,7 +235,6 @@ while True:
proxy
=
get_proxy
()[
'url'
]
logger
.
info
(
f
"success:{success} proxy: {proxy} "
)
tlsV
=
'chrome_112'
# session = requests.Session(impersonate='chrome110')
# # session = tls_client.Session(tlsV)
...
...
ws/src/src2.js
View file @
a6e9d717
let fontSizeRandom = false;
let webGlRandom = false;
error_stack = function (stacks) {
print('stack.callback', typeof stacks, stacks);
...
...
@@ -4780,6 +4783,8 @@ ENV2 = {
"navigatorfunc": [1, 1, 0, 0, 0, 0]
}
ENV = ENV2
// ENV.windowparams = ENV2.windowparams
// // ENV.navigatorparams = ENV2.navigatorparams
// let v = parseInt(Math.random()*10 + 100);
...
...
@@ -6807,49 +6812,60 @@ Object.defineProperties(TextMetrics.prototype, {
width: {
get() {
// fonts.push(this.fontval[0])
let res = 132.39996337890625 * (Math.random() * 0.1 + 0.9)
if (ENV.fontsres[this.font] && ENV.fontsres[this.font][this.text]) {
re
turn ENV.fontsres[this.font][this.text].width + (Math.random() * 0.1 + 0.9)
re
s = ENV.fontsres[this.font][this.text].width + fontSizeRandom? (Math.random() * 0.1 + 0.9):0
}
// v_console_log(this.text[0], " [*] TextMetrics -> width[get]", width);
print(this.text[0], " [*] TextMetrics -> width[get]", width);
return res;
return 132.39996337890625 * (Math.random() * 0.1 + 0.9)
}
},
actualBoundingBoxAscent: {
get() {
v_console_log(" [*] TextMetrics -> actualBoundingBoxAscent[get]", 556.640625);
let res = 556.640625 * (Math.random() * 0.1 + 0.9)
if (ENV.fontsres[this.font] && ENV.fontsres[this.font][this.text]) {
re
turn ENV.fontsres[this.font][this.text].actualboundingboxascent + (Math.random() * 0.1 + 0.9)
re
s = ENV.fontsres[this.font][this.text].actualboundingboxascent + fontSizeRandom? (Math.random() * 0.1 + 0.9):0
}
return 556.640625 * (Math.random() * 0.1 + 0.9)
print(" [*] TextMetrics -> actualBoundingBoxAscent[get]", res);
return res;
}
},
actualBoundingBoxDescent: {
get() {
v_console_log(" [*] TextMetrics -> actualBoundingBoxDescent[get]", -203.61328125);
let res = -203.61328125 * (Math.random() * 0.1 + 0.9)
if (ENV.fontsres[this.font] && ENV.fontsres[this.font][this.text]) {
return ENV.fontsres[this.font][this.text].actualboundingboxdescent +
(Math.random() * 0.1 + 0.9)
return ENV.fontsres[this.font][this.text].actualboundingboxdescent +
fontSizeRandom? (Math.random() * 0.1 + 0.9):0
}
return -203.61328125 * (Math.random() * 0.1 + 0.9)
print(" [*] TextMetrics -> actualBoundingBoxDescent[get]", res);
return res;
}
},
actualBoundingBoxLeft: {
get() {
v_console_log(" [*] TextMetrics -> actualBoundingBoxLeft[get]", -22.94921875);
let res = -22.94921875 * (Math.random() * 0.1 + 0.9)
if (ENV.fontsres[this.font] && ENV.fontsres[this.font][this.text]) {
re
turn ENV.fontsres[this.font][this.text].actualboundingboxleft + (Math.random() * 0.1 + 0.9)
re
s = ENV.fontsres[this.font][this.text].actualboundingboxleft + fontSizeRandom? (Math.random() * 0.1 + 0.9):0
}
return -22.94921875 * (Math.random() * 0.1 + 0.9)
print(" [*] TextMetrics -> actualBoundingBoxLeft[get]", res);
return res;
}
},
actualBoundingBoxRight: {
get() {
v_console_log(" [*] TextMetrics -> actualBoundingBoxRight[get]", 579.1015625);
let res = 579.1015625 * (Math.random() * 0.1 + 0.9)
if (ENV.fontsres[this.font] && ENV.fontsres[this.font][this.text]) {
re
turn ENV.fontsres[this.font][this.text].actualboundingboxright + (Math.random() * 0.1 + 0.9)
re
s = ENV.fontsres[this.font][this.text].actualboundingboxright + fontSizeRandom? (Math.random() * 0.1 + 0.9):0
}
return 579.1015625 * (Math.random() * 0.1 + 0.9)
print(" [*] TextMetrics -> actualBoundingBoxRight[get]", res);
return res;
}
},
[Symbol.toStringTag]: {value: "TextMetrics", writable: false, enumerable: false, configurable: true},
...
...
@@ -8917,27 +8933,37 @@ WebGLShaderPrecisionFormat = v_saf(function WebGLShaderPrecisionFormat() {
if (!v_new_toggle) {
throw TypeError("Illegal constructor")
}
this._precision = 0;
this._rangeMin = 0;
this._rangeMax = 0;
;
});
Object.defineProperties(WebGLShaderPrecisionFormat.prototype, {
precision: {
get() {
v_console_log('WebGLShaderPrecisionFormat.prototype precision')
return 22
print('WebGLShaderPrecisionFormat.prototype precision', this._precision)
return this._precision
},
set(v){
this._precision =v;
}
},
rangeMax: {
get() {
v_console_log('WebGLShaderPrecisionFormat.prototype rangeMax'
)
print('WebGLShaderPrecisionFormat.prototype rangeMax', this._rangeMax
)
return 126
return this._rangeMax
},set(v){
this._rangeMax =v;
}
},
rangeMin: {
get() {
v_console_log('WebGLShaderPrecisionFormat.prototype rangeMin'
)
print('WebGLShaderPrecisionFormat.prototype rangeMin', this._rangeMin
)
return 126
return this._rangeMin
},set(v){
this._rangeMin =v;
}
},
})
...
...
@@ -9085,7 +9111,14 @@ WebGLProgram = proxy(WebGLProgram, 'WebGLProgram')
WebGLBuffer = v_saf(function WebGLBuffer() {
})
WebGLBuffer = proxy(WebGLBuffer, 'WebGLBuffer');
var r1 = v_new(WebGLShaderPrecisionFormat)
r1.rangeMin = webGlRandom ?randint(122,127) : 127
r1.rangeMax = webGlRandom ?randint(122,127) : 127
r1.precision = 23
var r2 = v_new(WebGLShaderPrecisionFormat)
r2.rangeMin = webGlRandom ?randint(29,31):31
r2.rangeMax = webGlRandom ?randint(27, 30):30
r2.precision = 0
class WebGLRenderingContext {
constructor(aaa) {
print('new WebGLRenderingContext', aaa)
...
...
@@ -9340,17 +9373,9 @@ class WebGLRenderingContext {
getShaderPrecisionFormat(a, b) {
function WebGLShaderPrecisionFormat() {
}
var r1 = v_new(WebGLShaderPrecisionFormat)
r1.rangeMin = randint(122,127)
r1.rangeMax = randint(122,127)
r1.precision = randint(19,23)
var r2 = v_new(WebGLShaderPrecisionFormat)
r2.rangeMin = randint(29,31)
r2.rangeMax = randint(27, 30)
r2.precision = 0
// if (navigator.userAgent.indexOf('Firefox') > -1){
// r2.rangeMin = 24
// r2.rangeMax = 24
...
...
@@ -13188,7 +13213,6 @@ Object.getOwnPropertyNames = v_saf(function (a) {
"WebGLTransformFeedback",
"WebGLTexture",
"WebGLSync",
"WebGLShaderPrecisionFormat",
"WebGLShader",
"WebGLSampler",
"WebGLRenderingContext",
...
...
@@ -14394,7 +14418,7 @@ if (ENV.funcs2 && ENV.funcs2.length > 0) {
// hasFunc = _random() > 0.5
if (hasFunc) {
func2Properties[funcName] = {
enumerable: true,
enumerable: true,
``
value: funcName === 'OffscreenCanvas' ? OffscreenCanvas : eval(`v_saf(function ${funcName}() {
})`)
}
...
...
@@ -14519,7 +14543,6 @@ let params = {
"WebGLTransformFeedback": {"value": {"type": "function"}},
"WebGLTexture": {"value": {"type": "function"}},
"WebGLSync": {"value": {"type": "function"}},
"WebGLShaderPrecisionFormat": {"value": {"type": "function"}},
"WebGLShader": {"value": {"type": "function"}},
"WebGLSampler": {"value": {"type": "function"}},
"WebGLRenderingContext": {"value": {"type": "function"}},
...
...
@@ -15696,20 +15719,20 @@ let ps = {};
eval(funcsStart + funcsList.join('\n') + funcsENd)
funcsList = [];
for (let i of ENV.windowprops.slice(30,)) {
// let p = ENV.windowprops[i];
if (!window.hasOwnProperty(i) && funcs.indexOf(i) === -1 && funcs2.indexOf(i) === -1) {
let rr = `'${i}': {\n`
rr += `value: v_saf(function ${i}(){}),`
rr += '},'
funcsList.push(rr)
// funcsList.push(`${p}: {`
// value: v_saf(function ${p} (){}),
// },`)
}
}
//
funcsList = [];
//
for (let i of ENV.windowprops.slice(30,)) {
//
// let p = ENV.windowprops[i];
//
if (!window.hasOwnProperty(i) && funcs.indexOf(i) === -1 && funcs2.indexOf(i) === -1) {
//
let rr = `'${i}': {\n`
//
rr += `value: v_saf(function ${i}(){}),`
//
rr += '},'
//
funcsList.push(rr)
//
// funcsList.push(`${p}: {`
//
// value: v_saf(function ${p} (){}),
//
// },`)
//
}
//
//
}
// eval(funcsStart + funcsList.join('\n') + funcsENd)
structuredClone = v_saf(function structuredClone() {
throw TypeError('DOMException: Failed to execute \'structuredClone\' on \'Window\': Navigator object could not be cloned.')
...
...
@@ -16305,4 +16328,8 @@ 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