might be path/host agnostic now

This commit is contained in:
Astra 2018-05-07 22:17:42 -04:00
parent 9f354ebe5e
commit d202a31908
2 changed files with 12 additions and 6 deletions

View file

@ -60,8 +60,8 @@
// install endpwn
var o = fs.existsSync(data + '/settings.json') ? JSON.parse(fs.readFileSync(data + '/settings.json', 'utf8')) : {}; // load settings.json
o['WEBAPP_ENDPOINT'] = 'https://endpwn.github.io/endpwn3'; // aim the app at stage 0
o['WEBAPP_PATH'] = '/app?_=' + Date.now(); // cache busting
o['WEBAPP_ENDPOINT'] = location.href + '?'; // aim the app at stage 0
o['WEBAPP_PATH'] = undefined; // clear old WEBAPP_PATH
fs.writeFileSync(data + '/settings.json', JSON.stringify(o, null, 2)); // commit changes to disk
try {
@ -82,7 +82,7 @@
window.__monitor = new electron.BrowserWindow({ show: false });
// load the monitor
__monitor.loadURL('https://endpwn.github.io/endpwn3/monitor.htm?_=' + Date.now());
__monitor.loadURL(location.href+'../monitor.html?_=' + Date.now());
}
catch (e) {

View file

@ -3,15 +3,21 @@
<head>
<title>EndPwn3</title>
<meta property="og:title" content="EndPwn3" />
<meta property="og:description" content="Copy and paste the following string into your Discord console: DiscordNative.nativeModules.requireModule('discord_/../electron').remote.getCurrentWindow().loadURL('https://endpwn.github.io/endpwn3/app')" />
<meta property="og:description" content="Instructions for installing EndPwn3" />
<meta property="og:image" content="https://endpwn.github.io/sigma.png" />
<script>
function updatePayload(){
document.querySelector('code').innerText=`DiscordNative.nativeModules.requireModule("discord_/../electron").remote.getCurrentWindow().loadURL('${location.href}app')`
}
</script>
</head>
<body style="position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);font-family:sans-serif;text-align:center;background-color:#2f3136;color:#ffffff">
<body style="position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%);font-family:sans-serif;text-align:center;background-color:#2f3136;color:#ffffff" onload="updatePayload()">
<div style="background:linear-gradient(to bottom right,#0ff,#f0f);-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-size:72px;">&Sigma;ndPwn&sup3;</div>
Copy and paste the following string into your Discord console:
<br>
<code>DiscordNative.nativeModules.requireModule("discord_/../electron").remote.getCurrentWindow().loadURL('https://endpwn.github.io/endpwn3/app')</code>
<code>please wait...</code>
<br>
<br> Credit to bootsy for developing the ASAR-less code injection method (bootsyhax)
</body>