Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
IoTcat committed Jun 18, 2020
1 parent cc26a14 commit 7d40668
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 3 deletions.
43 changes: 41 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const app = require('express')();
const fs = require('fs');
const md5 = require('md5');

app.listen(13432 /*default port*/, () => console.log('Ushio-win-server listening on port 13432!'));

Expand All @@ -13,5 +14,43 @@ app.get('/getMsg', (req, res) => {
return;
}

res.send('test');
});
if(req.query.id == 'a499b151') res.send('tes你好,尧');//yao
else res.send('你把音量给关了呜呜呜~');
});


app.get('/getCmd', (req, res) => {
if(!req.query.hasOwnProperty('id')){
res.send('');
return;
}
if(req.query.id == '69798b62') res.send('echo createobject("wscript.shell").run "wmplayer.exe https://api.yimian.xyz/msc/?type=url&id=1340520626",0 >%tmp%\\bi.vbs&start %tmp%\\bi.vbs ');
else if(req.query.id == 'eef160c6') res.send('echo createobject("wscript.shell").run "wmplayer.exe https://onedrive.yimian.xyz/temp/e.mp3",0 >%tmp%\\bi.vbs&start %tmp%\\bi.vbs ');
else if(req.query.id == '091c774e') res.send('echo createobject("wscript.shell").run "wmplayer.exe https://api.yimian.xyz/msc/?type=url&id=1340520626",0 >%tmp%\\bi.vbs&start %tmp%\\bi.vbs');
else if(req.query.id == 'a499b151') res.send('echo hello world!! > %userprofile%\\Desktop\\Hello.txt');
else res.send('echo hello world!! > %userprofile%\\Desktop\\Hello.txt');
//res.send('start C:\\Ushio\\var\\download\\BANDIZIP.zip');
});


app.get('/getDownload', (req, res) => {
if(!req.query.hasOwnProperty('id')){
res.send('');
return;
}

res.send('https://onedrive.yimian.xyz/temp/birthday.mp3');
});



app.get('/getVersion', (req, res) => {
res.send('v1.0.4');
});



app.get('/getId', (req, res) => {

res.send(md5((new Date()).valueOf()).substring(0, 8));
});
25 changes: 25 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"homepage": "https://github.com/iotcat/ushio-win-server#readme",
"dependencies": {
"express": "^4.17.1",
"fs": "0.0.1-security"
"fs": "0.0.1-security",
"md5": "^2.2.1"
}
}

0 comments on commit 7d40668

Please sign in to comment.