This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const WAFKV = { | |
GET: async function (key) { | |
let item; | |
let filters = await WAFKV.FILTERS() | |
let result = (await filters.json()).result | |
for (let i = 0; i < result.length; i++) { | |
if (result[i].id && result[i].id == RULEID) { | |
item = result[i] | |
break | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*两个密码子,建议手滚键盘*/ | |
const privatek = "" | |
const privatepass = "" | |
/*前端处理区域,将征用三个目录*/ | |
if (rp(path) == "/getaccesstoken" || rp(path) == "/getcap" || rp(path) == '/getcapimg') { | |
try { await JSON.parse(Decrypt(urlObj.searchParams.get('refreshtoken'), privatek)) } catch (e) { return returnc(0) } | |
const RToken = urlObj.searchParams.get('refreshtoken') | |
const _RT = await JSON.parse(Decrypt(RToken, privatek)) | |
if (checktime(_RT)) { | |
if (await checkban(RToken, privatek)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getJsonLength(jsonData) { | |
var jsonLength = 0; | |
for (var item in jsonData) { | |
jsonLength++; | |
} | |
return jsonLength; | |
} | |
async function handleRequest(request) { | |
const req = request | |
const urlStr = req.url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! wget https://raw.githubusercontent.com/ChenYFan/GoogleColabRDP/main/install.sh &> /dev/null | |
! chmod +x install.sh | |
! ./install.sh |
NewerOlder