-
Notifications
You must be signed in to change notification settings - Fork 4
/
readFromTunnel
40 lines (25 loc) · 923 Bytes
/
readFromTunnel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#readFromTunnel
const { exec } = require('child_process')
const fs =require('fs')
const util = require('util')
main()
async function main () {
try {
let {cookies} = require('../json/_kmsi.cookies.json')
let writePayload =
[{
"user":"anyone",
"cookie":`${cookies[0]};${cookies[1]};${cookies[2]}`
}]
console.log(writePayload)
fs.writeFileSync('cookies.json', JSON.stringify(writePayload))
const { createTraffic } = require("./run");
var {randomBytes} = require('crypto')
var d = randomBytes(12).toString('base64url')
var userAgent = `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15`
createTraffic(userAgent)
console.log()
} catch(err) {
console.log()
}
}