// ==UserScript==
// @name 【歪门邪道】过掉isTrusted检测之沙雕做法
// @namespace test-case.ggnb.top
// @version 0.0.1
// @description SB
// @match http://test-case.ggnb.top/is_trusted/is_trusted.html
// @match http://test-case.ggnb.top/is_trusted/is_trusted_2.html
// @run-at document-start
// ==/UserScript==
ws = new WebSocket("ws://localhost:19810")
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
function WrapperWS() {
this.send = function (message, callback) {
this.waitForConnection(function () {
ws.send(message);
if (typeof callback !== 'undefined') {
callback();
}
}, 1000);
};
this.waitForConnection = function (callback, interval) {
if (ws.readyState === 1) {
callback();
} else {
var that = this;
// optional: implement backoff for interval here
setTimeout(function () {
that.waitForConnection(callback, interval);
}, interval);
}
};
console.log('connected')
console.log('任何邪恶,终将绳之以法!')
sleep(3000)
send('a')
}
WrapperWS()
配合:
import asyncio
import websockets
import pyautogui
import time
async def watchlist(websocket, path):
while True:
key = await websocket.recv()
pyautogui.press('f11')
time.sleep(2)
print('全屏后点击...')
pyautogui.click(42,25)#摆烂
start_server = websockets.serve(watchlist, "localhost", 19810)
asyncio.get_event_loop().run_until_complete(start_server)
asyncio.get_event_loop().run_forever()
和按键精灵,autojs,puppeteer没本质区别,鉴定为烂。
相关资料