Final EndPwn2 build

I might update if it needs updating, but for now, we're done here.
This commit is contained in:
BlockBuilder57 2018-04-30 19:59:40 -05:00
parent c3fc51d733
commit fb2829aed5
4 changed files with 46 additions and 54 deletions

View file

@ -35,13 +35,13 @@ div[class^="footer-"] {
/* Profile Roles */ /* Profile Roles */
.role-3rahR_ { [class*="role-"] {
position:relative; position:relative;
border-radius:0%; border-radius:0%;
padding-right:10px; padding-right:10px;
} }
.roleCircle-3-vPZq { [class*="roleCircle-"] {
border-radius:0%; border-radius:0%;
position:absolute; position:absolute;
width:100%; width:100%;
@ -52,11 +52,11 @@ div[class^="footer-"] {
margin-left:-4px; margin-left:-4px;
} }
.roleName-DUQZ9m { [class*="roleName-"] {
z-index:2; z-index:2;
} }
.roleRemoveIcon-2iu0iE { [class*="roleRemoveIcon-"] {
display: block; display: block;
margin: 6px 2px 6px 0; margin: 6px 2px 6px 0;
right: 0; right: 0;
@ -64,13 +64,11 @@ div[class^="footer-"] {
position: absolute; position: absolute;
} }
.roleRemoveIcon-2iu0iE .fill { [class*="roleRemoveIcon-"] .fill {
z-index:5; z-index:5;
fill: #FFF;
filter: brightness(0);
} }
.addButton-3RuTE0 { [class*="addButton-"] {
z-index:3; z-index:3;
padding-right: 4px; padding-right: 4px;
} }

View file

@ -2,7 +2,7 @@
** Title Bar ** Title Bar
*/ */
header[class^="header-"]:not(.header-2Lg0Oe) { header[class^="header-"]:not(.header-QKLPzZ) {
padding: 10px; padding: 10px;
height: 30px; height: 30px;
padding-top: 11px; padding-top: 11px;

View file

@ -6,7 +6,7 @@
* Memework(tm) - Discord datamining * Memework(tm) - Discord datamining
*/ */
var epver = 2.016; var epver = 2.018;
var silent = false; var silent = false;
var browser = false; var browser = false;
@ -223,49 +223,48 @@ var dropfiles = function () {
// bootstrap // bootstrap
var pl = `var fs=require("original-fs");exports.x=function(win){win.webContents.executeJavaScript('${ec}var _epver=${epver};${rs};${cc};${ct};if(window.location.hostname.includes("discordapp.com")){require(_epdata + "/main")}');}`; var pl = `var fs=require("original-fs");exports.x=function(win){win.webContents.executeJavaScript('${ec}var _epver=${epver};${rs};${cc};${ct};if(window.location.hostname.includes("discordapp.com")){require(_epdata + "/main")}');}`;
// end i.js cyst // end i.js cyst
/*var fs=require("original-fs");
exports.x=function(win) {
win.webContents.executeJavaScript('var fs=require("original-fs");
var el=require("electron").remote;
var win=el.getCurrentWindow();
var app=el.app;
var _epdata="C:/Users/Christian/AppData/Roaming/discordcanary/endpwn/";
var _epver=2.018;
var _ep_restart=function(){app.relaunch();app.quit()};
var _ep_clean=function(){el.getCurrentWindow().webContents.session.clearCache(function(){})};
var _ep_continue=function(){win.loadURL("https://canary.discordapp.com/channels/@me")};
if(window.location.hostname.includes("discordapp.com")){require(_epdata + "/main")}');
}*/
_fs.writeFileSync(data() + '/endpwn/i.js', pl); _fs.writeFileSync(data() + '/endpwn/i.js', pl);
_fs.writeFileSync(data() + '/endpwn/p.js'); _fs.writeFileSync(data() + '/endpwn/p.js');
try try {
{
_fs.readFileSync(data() + '/endpwn/autoexec.js'); _fs.readFileSync(data() + '/endpwn/autoexec.js');
} }
catch(e) catch(e) {
{ _fs.writeFileSync(data() + '/endpwn/autoexec.js', 'setupCSS(_epdata + "/styles/style.css");\nconsole.log("Hello, world!");');
_fs.writeFileSync(data() + '/endpwn/autoexec.js', 'setupCSS(_epdata + "/styles/style.css");\nconsole.log("Hello, world!");');
} }
var eclient = new XMLHttpRequest(); fetch('https://endpwn.github.io/epapi/epapi.js?_=' + Date.now())
//eclient.open('GET', 'https://block57.net/discord/epapi.js'); .then(r => r.text())
eclient.open('GET', 'https://endpwn.github.io/epapi.js'); .then(f => { fs.writeFileSync(data() + '/endpwn/epapi.js', f); });
eclient.onreadystatechange = function() {
if (eclient.readyState === 4) {
_fs.writeFileSync(data() + '/endpwn/epapi.js', eclient.responseText);
}
}
eclient.send();
var mclient = new XMLHttpRequest(); fetch('https://block57.net/discord/main.js?_=' + Date.now())
mclient.open('GET', 'https://block57.net/discord/main.js'); .then(r => r.text())
mclient.onreadystatechange = function() { .then(f => { fs.writeFileSync(data() + '/endpwn/main.js', f); });
_fs.writeFileSync(data() + '/endpwn/main.js', mclient.responseText);
}
mclient.send();
var oclient = new XMLHttpRequest(); fetch('https://block57.net/discord/offline.html?_=' + Date.now())
oclient.open('GET', 'https://block57.net/discord/offline.html'); .then(r => r.text())
oclient.onreadystatechange = function() { .then(f => { fs.writeFileSync(data() + '/endpwn/app', f); });
_fs.writeFileSync(data() + '/endpwn/app', oclient.responseText);
}
oclient.send();
_fs.writeFileSync(data() + '/endpwn/legal.txt', license); _fs.writeFileSync(data() + '/endpwn/legal.txt', license);
try{
_fs.readFileSync(data() + '/endpwn/styles/style.css'); if (!_fs.existsSync(data() + '/endpwn/styles/style.css')) {
}catch(e){ _fs.writeFileSync(data() + '/endpwn/styles/style.css', "/*@import url('https://block57.net/discord/css/all.css');*/\n@import url('https://block57.net/discord/css/animations.css');\n@import url('https://block57.net/discord/css/avatars.css');\n@import url('https://block57.net/discord/css/background.css');\n@import url('https://block57.net/discord/css/channels.css');\n@import url('https://block57.net/discord/css/emoji.css');\n@import url('https://block57.net/discord/css/guilds.css');\n@import url('https://block57.net/discord/css/misc.css');\n@import url('https://block57.net/discord/css/titlebar.css');\n@import url('https://block57.net/discord/css/typinginput.css');\n@import url('https://block57.net/discord/css/variables.css');\n\n/* This file contains the custom CSS edits for EndPwn. If you want to\nchange the way these look, copy in the 'variables.css' file and edit the\nvalues in it. Also, you can select what kinds of edits you want applied\nusing the lines above. Comment out the ones you don't want, or leave them\nall in by uncommenting the 'all.css' file and removing the others. */");
_fs.writeFileSync(data() + '/endpwn/styles/style.css', "/*@import url('https://block57.net/discord/css/all.css');*/\n@import url('https://block57.net/discord/css/animations.css');\n@import url('https://block57.net/discord/css/avatars.css');\n@import url('https://block57.net/discord/css/background.css');\n@import url('https://block57.net/discord/css/channels.css');\n@import url('https://block57.net/discord/css/emoji.css');\n@import url('https://block57.net/discord/css/guilds.css');\n@import url('https://block57.net/discord/css/misc.css');\n@import url('https://block57.net/discord/css/titlebar.css');\n@import url('https://block57.net/discord/css/typinginput.css');\n@import url('https://block57.net/discord/css/variables.css');\n\n/* This file contains the custom CSS edits for EndPwn. If you want to\nchange the way these look, copy in the 'variables.css' file and edit the\nvalues in it. Also, you can select what kinds of edits you want applied\nusing the lines above. Comment out the ones you don't want, or leave them\nall in by uncommenting the 'all.css' file and removing the others. */"); }
}
} }
var crash = function () { var crash = function () {

21
main.js
View file

@ -1,7 +1,10 @@
// load epapi.js function __krequire(path) {
window._epapi = require(_epdata + "epapi"); return eval('(()=>{var exports={};' + fs.readFileSync(_epdata + path, 'utf8').toString() + ';return exports})()');
// start the api }
$api.go('asarpwn',false,'EndPwn'); //get that epapi
var _epapi = __krequire('epapi.js');
//start it up, brand as endpwn
_epapi.go('asarpwn',false,'EndPwn',false);
$api.data += "endpwn/"; $api.data += "endpwn/";
$api.discord.toggleDeveloper = function() { $api.discord.toggleDeveloper = function() {
@ -35,20 +38,12 @@ $api.ui.createMsg = function (text) {
return msg; return msg;
} }
// some epapi shorthand methods, moved here because early accessibility
window.$listen = function (e, c) {
return document.addEventListener(e, c);
}
window.$dispatch = function (e) {
return document.dispatchEvent(e);
}
// beautifuldiscord, used to load css styles // beautifuldiscord, used to load css styles
// credit to leovoel // credit to leovoel
bdwatcher=null,bdtag=null,setupCSS=function(n){var e=fs.readFileSync(n,"utf-8");null===bdtag&&(bdtag=document.createElement("style"),document.head.appendChild(bdtag)),bdtag.innerHTML=e,null===bdwatcher&&(bdwatcher=fs.watch(n,{encoding:"utf-8"},function(e,w){if("change"===e){var i=fs.readFileSync(n,"utf-8");bdtag.innerHTML=i}}))}; bdwatcher=null,bdtag=null,setupCSS=function(n){var e=fs.readFileSync(n,"utf-8");null===bdtag&&(bdtag=document.createElement("style"),document.head.appendChild(bdtag)),bdtag.innerHTML=e,null===bdwatcher&&(bdwatcher=fs.watch(n,{encoding:"utf-8"},function(e,w){if("change"===e){var i=fs.readFileSync(n,"utf-8");bdtag.innerHTML=i}}))};
// SELF_XSS warning disable (dr1ft) // SELF_XSS warning disable (dr1ft)
var results=wc.findFunc("SELF_XSS_HEADER");wc.get(results[results.length-1].i).consoleWarning=function(e){}; $api.util.findFuncExports('consoleWarning').consoleWarning = e => { };
// blend the linq.js methods into the array prototype for implicit Enumerable.from() // blend the linq.js methods into the array prototype for implicit Enumerable.from()
if (!typeof (Enumerable) == 'undefined') if (!typeof (Enumerable) == 'undefined')