Skip to content

Commit

Permalink
cool thing part 1
Browse files Browse the repository at this point in the history
  • Loading branch information
ByzantineProcess committed Mar 5, 2024
1 parent 8b27ae0 commit b83473d
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 32 deletions.
22 changes: 22 additions & 0 deletions actions/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,25 @@
patched = data.replace("maxCollaborationNameLength=15", "maxCollaborationNameLength=99999")
f.write(patched)
f.close()

regex = r"vendor-.{8}\.js"
match = re.search(regex, r.text).group()

vendor = requests.get("https://assets-cdn.kahoot.it/controller/v2/assets/" + match)

# just save it with the same name
f = open(match, "wb")
f.write(vendor.content)
f.close()

regex = r"index-.{8}\.css"
match = re.search(regex, r.text).group()

css = requests.get("https://assets-cdn.kahoot.it/controller/v2/assets/" + match)

# just save it with the same name
f = open(match, "wb")
f.write(css.content)
f.close()

print("Patched successfully!")
14 changes: 5 additions & 9 deletions infinite-name/docs.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Docs for chrome extension
# Docs for the extension

## Installation:
Depends on browser. Chrome (and a few others?) will not allow a random .crx file, but Chromium derivatives like
Brave, Edge and Opera all seem to work fine (tested on Opera and Edge)
Depends on browser. Chrome (and a few others?) will not allow any .crx file, but Chromium derivatives like
Brave, Edge and Opera should work fine (tested on Opera and Edge)

Just open the .crx file with the browser of choice.
If it fails, you can load the extension unpacked in developer mode:
Expand All @@ -16,12 +16,8 @@ If it fails, you can load the extension unpacked in developer mode:
NOTE: Recently Kazoo has stopped working when not running unpacked. Not sure why, probably MV3.

## Usage:
No usage! Kazoo will automagically reroute the `index.js` request.
No usage! Kazoo will automagically patch Kahoot.
# FAQ

### Wll you make a Firefox extension?
spam me in the issues section if you wanna see this

### Whoa, how did you hack this?
It works by waiting as a rootkit in the nickname text input
in order to break the machine's control over... no, no; it just reroutes a web request. That's all it is.
Yes! Docs are cooking, but extension is done.
6 changes: 0 additions & 6 deletions infinite-name/kazoo/bg.js

This file was deleted.

8 changes: 0 additions & 8 deletions infinite-name/kazoo/jackbox.js

This file was deleted.

4 changes: 2 additions & 2 deletions infinite-name/kazoo/zapper.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{
"id": 1,
"priority": 1,
"action": {"type": "redirect", "redirect": {"url": "https://cdn.jsdelivr.net/gh/ByzantineProcess/kazoo@js/fakekahoot.js"}},
"condition": {"urlFilter": "https://assets-cdn.kahoot.it/controller/v2/assets/*.js"}
"action": {"type": "redirect", "redirect": {"url": "https://byzantineprocess.github.io/Kazoo/fakekahoot.js"}},
"condition": {"regexFilter": "https://assets-cdn.kahoot.it/controller/v2/assets/index-[A-Za-z0-9]*.js"}
}
]
11 changes: 4 additions & 7 deletions infinite-name/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Kazoo!",
"version": "0.6",
"version": "1",
"manifest_version": 3,
"description": "Kazoo homepage: https://github.com/ByzantineProcess/Kazoo",
"icons": {
Expand All @@ -9,18 +9,15 @@
"action": {
"default_title": "Kazoo!"
},
"permissions": ["activeTab", "scripting", "declarativeNetRequest", "declarativeNetRequestFeedback"],
"background": {
"service_worker": "kazoo/bg.js"
},
"permissions": ["declarativeNetRequest", "declarativeNetRequestFeedback"],
"declarative_net_request" : {
"rule_resources" : [{
"id": "maxzapper",
"id": "zapper",
"enabled": true,
"path": "kazoo/zapper.json"
}]
},
"host_permissions": [
"https://*/*"
"*://*.kahoot.it/*"
]
}

0 comments on commit b83473d

Please sign in to comment.