fix injection paths and add asar fix button

This commit is contained in:
Cynthia Foxwell 2017-12-09 11:17:50 -07:00
parent 7160bcb840
commit 3e291361e1
2 changed files with 8 additions and 2 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('../i').x(mainWindow)});//", bdata.indexOf("mainWindow.webContents.on('dom-ready', function () {});\x0A\x0A // Prevent navigation whe"));
bdata.write("mainWindow.webContents.on('dom-ready', function () {require('./cynergy/i').x(mainWindow)});//", bdata.indexOf("mainWindow.webContents.on('dom-ready', function () {});\x0A\x0A // Prevent navigation whe"));
fs.writeFileSync(remote.app.getAppPath(), bdata);
};

View File

@ -47,6 +47,10 @@
}
}
var goback = function(){
require("electron").remote.getCurrentWindow().loadURL("https://discordapp.com/channels/@me");
}
if(typeof(_cynergy_ver) !== "undefined"){
setup();
}
@ -83,7 +87,9 @@
<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-primary" role="button" onclick="injectme()">Inject me &#x1F489;&#x1F629;</button></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>
</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>