paths making me angery

This commit is contained in:
Cynthia Foxwell 2017-12-09 11:35:23 -07:00
parent 090afa67b4
commit 0c5c9deded
2 changed files with 9 additions and 4 deletions

View File

@ -91,7 +91,7 @@ var endpoint_restore = function () {
var asarpwn = function() {
var bdata = new Buffer(fs.readFileSync(remote.app.getAppPath()));
bdata.write(`mainWindow.webContents.on('dom-ready', function () {require('${approot().split('app.asar')[0] + '/cynergy/i.js'}').x(mainWindow)});//`, bdata.indexOf("mainWindow.webContents.on('dom-ready', function () {});\x0A\x0A // Prevent navigation whe"));
bdata.write(`mainWindow.webContents.on('dom-ready', function () {require('${approot().split('app.asar')[0].replace(/\\/g,"/") + '/cynergy/i.js'}').x(mainWindow)});//`, bdata.indexOf("mainWindow.webContents.on('dom-ready', function () {});\x0A\x0A // Prevent navigation whe"));
fs.writeFileSync(remote.app.getAppPath(), bdata);
};
@ -108,6 +108,9 @@ var asarunpwn = function() {
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){}
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].replace(/\\/g,"/") + '/cynergy/i.js'}').x(mainWindow)});//`));
}catch(e){}
fs.writeFileSync(remote.app.getAppPath(), bdata);
}

View File

@ -87,9 +87,11 @@
<div class="jumbotron" style="text-align:center; background-color:rgba(28,30,34,0.5);">
<h1 class="display-3 rainbowme">Cynergy</h1>
<p class="lead">Welcome to the Cynergy Injector.</p>
<p><button class="btn btn-lg btn-info" role="button" onclick="goback()">Back to Discord</button></p>
<p><button class="btn btn-lg btn-success" role="button" onclick="injectme()">Inject me &#x1F489;&#x1F629;</button></p>
<p><button class="btn btn-lg btn-warning" role="button" onclick="asarunpwn()">Fix asar file</button></p>
<p>
<button class="btn btn-lg btn-info" role="button" onclick="goback()">Back to Discord</button>
<button class="btn btn-lg btn-success" role="button" onclick="injectme()">Inject me &#x1F489;&#x1F629;</button>
<button class="btn btn-lg btn-warning" role="button" onclick="asarunpwn()">Fix asar file</button>
</p>
</div>
<div id="logger" class="rainbowme" style="background-color:rgba(0,0,0,0.5); font-size:16px; width:100%; padding:4px;">Log starts here</div>