Read only mirror: A plugin manager for fakemurk

rainestorme eaa90c5cae Update murkmod.sh пре 2 година
plugin-docs ce6ba76f15 Create wssocks.md пре 2 година
plugins 8251d16d5c Update wssocks.sh пре 2 година
LICENSE 6a505a8b31 Initial commit пре 2 година
README.md c3c83b7e53 Update README.md пре 2 година
chromeos_startup.sh 6dd920522f Update chromeos_startup.sh to latest version on fakemurk пре 2 година
cr50-update.conf 340e71ba7e Add more autoupdate files пре 2 година
fakemurk-daemon.sh 55a498af32 Add emergency shell functionality пре 2 година
murkmod.sh eaa90c5cae Update murkmod.sh пре 2 година
mush.sh 9472a6cb63 Update mush.sh пре 2 година
pollen.json ca14b26fac Update pollen.json пре 2 година
pre-startup.conf 566ee7aa27 Add pre-startup.conf for better autoupdate compatibility пре 2 година
ssd_util.sh a591664035 Create ssd_util.sh пре 2 година

README.md

murkmod

murkmod is a utility script that patches fakemurk and mush to include additional useful utilities, with the most prominent being a plugin manager. This tool enables you to easily install and manage various packages and plugins for mush, and, eventually, fakemurk itself. murkmod also includes additional useful tools and features that can aid you in your various Chromebook hacking tasks.

Installation

To install murkmod, simply spawn a root shell (option 1) from mush, and paste in the following command:

bash <(curl -SLk https://raw.githubusercontent.com/rainestorme/murkmod/main/murkmod.sh)

This command will download and install murkmod and its (almost minimal) dependencies. Once the installation is complete, you can start using murkmod by running mush as usual.

Installing (or updating) fakemurk will set the password for the chronos user to murkmod.

Plugin Management

Once murkmod is installed, refresh your mush tab or open a new one with Ctrl+Alt+T. You'll see a few new options, such as the ability to run neofetch, but the important ones here are Install plugins, Uninstall plugins and Plugins.

To install a plugin, head over to this link. Find the plugin you want and remember its filename. You'll need it in a bit. Select Install plugins and enter the filename. The file should be installed, then you can enter q to quit.

You can go to Plugins to use your installed plugins. Once you select an option, it should execute the plugin's contents.

Plugin Development

It's pretty straightforward to create a pluign. Just create a .sh file with the following content:

#!/bin/bash
PLUGIN_NAME="Hello World Plugin"
PLUGIN_FUNCTION="Print a hello world message"
PLUGIN_DESCRIPTION="The friendliest murkmod plugin you'll ever see."
PLUGIN_AUTHOR="rainestorme"
PLUGIN_VERSION=1
echo "Hello, World!"

Of course, you should change this to match your plugin. Every time you update your plugin, you should increment PLUGIN_VERSION. Everything below the initial variables, though, is what is executed when you run the plugin from the mush menu.

To add a plugin to this repository (for easy download from mush), just fork the repo, add the file in /plugins/ and make a PR. I'll review it and merge it if it doesn't do anything malicious.