mirror of
				https://github.com/EndPwnArchive/endpwn3.git
				synced 2024-08-15 00:23:30 +00:00 
			
		
		
		
	enable system plugin, make file downloading pretty
This commit is contained in:
		
							parent
							
								
									ca666b62e5
								
							
						
					
					
						commit
						adbd3ffdc7
					
				
					 2 changed files with 13 additions and 21 deletions
				
			
		| 
						 | 
				
			
			@ -115,33 +115,25 @@
 | 
			
		|||
                            fs.mkdirSync(data + '/crxpwn');
 | 
			
		||||
                            fs.writeFileSync(data + '/crxpwn/manifest.json', '{"manifest_version":2,"name":"crxpwn","description":"asarpwn-less preload scripts for the masses ;)","version":"1.0","content_scripts":[{"js":["payload.js"],"matches":["*://*/*"],"run_at":"document_start","all_frames":true}]}');
 | 
			
		||||
                        }
 | 
			
		||||
                        if (!fs.existsSync(data + '/plugins')) fs.mkdirSync(data + '/plugins');
 | 
			
		||||
 | 
			
		||||
                        // dont update EPAPI/CRISPR if DONTUPDATE exists
 | 
			
		||||
                        // TODO: make this mess into an async function so we can use await
 | 
			
		||||
                        if (!fs.existsSync(data + '/DONTUPDATE')) {
 | 
			
		||||
 | 
			
		||||
                            // update crxpwn
 | 
			
		||||
                            fetch(approot + '/crxpwn.js?_=' + Date.now())
 | 
			
		||||
                                .then(r => r.text())
 | 
			
		||||
                                .then(crxpwn => {
 | 
			
		||||
                                    fs.writeFileSync(data + '/crxpwn/payload.js', crxpwn);
 | 
			
		||||
                            var crxpwn = await (await fetch(approot + '/crxpwn.js?_=' + Date.now())).text();
 | 
			
		||||
                            fs.writeFileSync(data + '/crxpwn/payload.js', crxpwn);
 | 
			
		||||
 | 
			
		||||
                                    // update EPAPI
 | 
			
		||||
                                    fetch('https://endpwn.github.io/epapi/epapi.js?_=' + Date.now())
 | 
			
		||||
                                        .then(r => r.text())
 | 
			
		||||
                                        .then(epapi => {
 | 
			
		||||
                                            fs.writeFileSync(data + '/epapi.js', epapi);
 | 
			
		||||
                            var epapi = await (await fetch('https://endpwn.github.io/epapi/epapi.js?_=' + Date.now())).text();
 | 
			
		||||
                            fs.writeFileSync(data + '/epapi.js', epapi);
 | 
			
		||||
 | 
			
		||||
                                            // update CRISPR
 | 
			
		||||
                                            fetch('https://endpwn.github.io/crispr/crispr.js?_=' + Date.now())
 | 
			
		||||
                                                .then(r => r.text())
 | 
			
		||||
                                                .then(epapi => {
 | 
			
		||||
                                                    fs.writeFileSync(data + '/crispr.js', epapi);
 | 
			
		||||
                                                    setTimeout(load, 1000);
 | 
			
		||||
                                                });
 | 
			
		||||
                            var crispr = await (await fetch('https://endpwn.github.io/crispr/crispr.js?_=' + Date.now())).text();
 | 
			
		||||
                            fs.writeFileSync(data + '/crispr.js', epapi);
 | 
			
		||||
 | 
			
		||||
                                        });
 | 
			
		||||
                                });
 | 
			
		||||
                            var plugin = await (await fetch(approot + '/plugin.js?_=' + Date.now())).text();
 | 
			
		||||
                            fs.writeFileSync(data + '/plugins/system.js', plugin);
 | 
			
		||||
 | 
			
		||||
                            setTimeout(load, 1000);
 | 
			
		||||
 | 
			
		||||
                        }
 | 
			
		||||
                        else {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
/*
 | 
			
		||||
 | 
			
		||||
    crxPwn Payload
 | 
			
		||||
    EndPwn3 Stage 2 Payload (crxpwn)
 | 
			
		||||
    
 | 
			
		||||
    Copyright 2018 EndPwn Project
 | 
			
		||||
    
 | 
			
		||||
| 
						 | 
				
			
			@ -17,7 +17,7 @@
 | 
			
		|||
(() => {
 | 
			
		||||
 | 
			
		||||
    function __crxprint(str) {
 | 
			
		||||
        console.log(`%c[crxPwn]%c ` + str, 'font-weight:bold;color:#0cc', '');
 | 
			
		||||
        console.log(`%c[crxpwn]%c ` + str, 'font-weight:bold;color:#0cc', '');
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (location.hostname.indexOf('discordapp') == -1) return;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue