mirror of
https://github.com/EndPwnArchive/cynergy.git
synced 2024-08-14 22:46:57 +00:00
add some try catch statements so all unpatching works
This commit is contained in:
parent
68df15081b
commit
090afa67b4
1 changed files with 9 additions and 3 deletions
|
@ -99,9 +99,15 @@ var asarunpwn = function() {
|
||||||
logging = document.getElementById('logger');
|
logging = document.getElementById('logger');
|
||||||
logging.innerText += "\nUndoing asarpwn...\n";
|
logging.innerText += "\nUndoing asarpwn...\n";
|
||||||
var bdata = new Buffer(fs.readFileSync(remote.app.getAppPath()));
|
var bdata = new Buffer(fs.readFileSync(remote.app.getAppPath()));
|
||||||
bdata.write("mainWindow.webContents.on('dom-ready', function () {});\x0A\x0A // Prevent navigation whe", bdata.indexOf("mainWindow.webContents.on('dom-ready', function () {require('../i').x(mainWindow)});//"));
|
try{
|
||||||
bdata.write("mainWindow.webContents.on('dom-ready', function () {});\x0A\x0A // Prevent navigation whe", bdata.indexOf("mainWindow.webContents.on('dom-ready', function () {require('./cynergy/i').x(mainWindow)});//"));
|
bdata.write("mainWindow.webContents.on('dom-ready', function () {});\x0A\x0A // Prevent navigation whe", bdata.indexOf("mainWindow.webContents.on('dom-ready', function () {require('../i').x(mainWindow)});//"));
|
||||||
bdata.write("mainWindow.webContents.on('dom-ready', function () {});\x0A\x0A // Prevent navigation whe", bdata.indexOf(`mainWindow.webContents.on('dom-ready', function () {require('${approot().split('app.asar')[0] + '/cynergy/i.js'}').x(mainWindow)});//`));
|
}catch(e){}
|
||||||
|
try{
|
||||||
|
bdata.write("mainWindow.webContents.on('dom-ready', function () {});\x0A\x0A // Prevent navigation whe", bdata.indexOf("mainWindow.webContents.on('dom-ready', function () {require('./cynergy/i').x(mainWindow)});//"));
|
||||||
|
}catch(e){}
|
||||||
|
try{
|
||||||
|
bdata.write("mainWindow.webContents.on('dom-ready', function () {});\x0A\x0A // Prevent navigation whe", bdata.indexOf(`mainWindow.webContents.on('dom-ready', function () {require('${approot().split('app.asar')[0] + '/cynergy/i.js'}').x(mainWindow)});//`));
|
||||||
|
}catch(e){}
|
||||||
fs.writeFileSync(remote.app.getAppPath(), bdata);
|
fs.writeFileSync(remote.app.getAppPath(), bdata);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue