aripbae commited on
Commit
17da645
·
verified ·
1 Parent(s): e0106dc

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +7 -7
index.js CHANGED
@@ -111,14 +111,14 @@ app.get('/mf', async (req, res) => {
111
  const json = await (await fetch(api)).json()
112
  const { result } = json
113
  res.set('user-agent', env.UA)
114
- res.redirect(
115
- format(
116
- '/shell?cmd=wget %s -O "%s" --header="cookie: %s"',
117
- result.download,
118
- result.filename,
119
- result.cookie
120
- )
121
  )
 
122
  } catch (e) {
123
  console.error(e)
124
  res
 
111
  const json = await (await fetch(api)).json()
112
  const { result } = json
113
  res.set('user-agent', env.UA)
114
+ const route = format(
115
+ '/shell?cmd=curl -H "cookie: %s" -L %s > "%s/%s"',
116
+ result.cookie,
117
+ result.download,
118
+ tmpDir,
119
+ result.filename
 
120
  )
121
+ res.redirect(route)
122
  } catch (e) {
123
  console.error(e)
124
  res