Skip to content

Commit 2e15952

Browse files
committed
ffffff
1 parent 397359f commit 2e15952

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tch-exploit",
3-
"version": "2.0.0-b5",
3+
"version": "2.0.0-b6",
44
"main": "dist/index.js",
55
"bin": "dist/index.js",
66
"scripts": {

src/http/cwmp/index.coffee

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ request = (ip, req, res) ->
6868
console.log '>>> EMPTY REQUEST'
6969
console.dir [ req.headers, req.body ]
7070

71-
file = file.custom or file.sts
71+
f = file.custom or file.sts
7272

7373
res.name = 'cwmp:Download'
7474
res.fileType = '3 Vendor Configuration File'
75-
res.fileSize = file.length
75+
res.fileSize = f.length
7676
res.url = "http://#{ ip }/file.sts"
7777

7878
res.env = env.join ' '
@@ -86,7 +86,7 @@ response = (res) ->
8686
'SOAPServer' : 'ACSServer'
8787

8888
code = 404
89-
89+
9090
if res.name and methods[res.name]?
9191
res.id ?= '1690d26c77f0000'
9292

src/http/index.coffee

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,19 @@ module.exports = (ip, port) ->
2121
.get '/file.sts', (req, res) ->
2222
console.log '>>> STS REQUEST'
2323

24-
file = file.custom or file.sts
24+
f = file.custom or file.sts
2525

2626
headers =
2727
'Content-Type': 'text/plain'
28-
'Content-Length': file.length
28+
'Content-Length': f.length
2929

3030
console.log '>>> STS RESPONSE'
31-
console.dir [headers, file.toString('utf8')]
31+
console.dir [headers, f.toString('utf8')]
3232

3333
res.writeHead 200, headers
3434

3535
stream = new Duplex()
36-
stream.push file
36+
stream.push f
3737
stream.push null
3838
stream.pipe res
3939
.get '/done', (req, res) ->

0 commit comments

Comments
 (0)