Update index.js
Browse files
index.js
CHANGED
|
@@ -113,10 +113,10 @@ app.get('/mf', async (req, res) => {
|
|
| 113 |
res.set('user-agent', env.UA)
|
| 114 |
const route = format(
|
| 115 |
'/shell?cmd=wget %s -O "%s/%s" --header="cookie: %s"',
|
| 116 |
-
result.cookie,
|
| 117 |
result.download,
|
| 118 |
tmpDir,
|
| 119 |
-
result.filename
|
|
|
|
| 120 |
)
|
| 121 |
res.redirect(route)
|
| 122 |
} catch (e) {
|
|
@@ -143,11 +143,7 @@ app.get(
|
|
| 143 |
.cmd
|
| 144 |
.trim()
|
| 145 |
.split(' ')
|
| 146 |
-
const file = format(
|
| 147 |
-
'%s/%s.log',
|
| 148 |
-
tmpDir,
|
| 149 |
-
Date.now()
|
| 150 |
-
)
|
| 151 |
const log = await fsp.open(file, 'w+')
|
| 152 |
const child = spawn(
|
| 153 |
cmd,
|
|
|
|
| 113 |
res.set('user-agent', env.UA)
|
| 114 |
const route = format(
|
| 115 |
'/shell?cmd=wget %s -O "%s/%s" --header="cookie: %s"',
|
|
|
|
| 116 |
result.download,
|
| 117 |
tmpDir,
|
| 118 |
+
result.filename,
|
| 119 |
+
result.cookie
|
| 120 |
)
|
| 121 |
res.redirect(route)
|
| 122 |
} catch (e) {
|
|
|
|
| 143 |
.cmd
|
| 144 |
.trim()
|
| 145 |
.split(' ')
|
| 146 |
+
const file = format('%s/%s.log', tmpDir, Date.now())
|
|
|
|
|
|
|
|
|
|
|
|
|
| 147 |
const log = await fsp.open(file, 'w+')
|
| 148 |
const child = spawn(
|
| 149 |
cmd,
|