Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
velzie committed May 28, 2023
2 parents ec4ec98 + 959190e commit f5a569b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 7 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,18 @@ First, you want to already have an unenrolled chromebook and you want to turn de
Next, head over to chrome-untrusted://crosh, type `shell` and then type out the following commands

```
sudo su
sudo -i
bash <(curl -SLk https://github.com/MercuryWorkshop/fakemurk/releases/latest/download/fakemurk.sh)
```

Do everything it tells you to, and your chromebook will reboot.

#### Tip:
If you get an error about a filesystem being readonly run
`fsck -f $(rootdev)`
then reboot


### READ THIS IT IS IMPORTANT!!!

If you simply press ctrl-d on the devmode screen and proceed as normal, there's a good chance you'll be stuck on the "enrolling device" screen forever, then get an enrollment error complaining about a certificate.
Expand Down
2 changes: 1 addition & 1 deletion fakemurk_lib.sh.pre
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ crossystem_values() {
val="A"
fi
if [ "$key" == "cros_debug" ]; then
val=0
val=1
fi
if [ "$key" == "dev_boot_legacy" ]; then
val=0
Expand Down
10 changes: 5 additions & 5 deletions mush.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ main() {
(8) Emergency Revert & Re-Enroll
(9) Edit Pollen
EOF
if ! test -f /mnt/stateful_partition/crouton; then
if ! test -d /mnt/stateful_partition/crouton; then
echo "(10) Install Crouton"
else
echo "(11) Start Crouton"
Expand Down Expand Up @@ -231,6 +231,8 @@ revert() {
doas vpd -i RW_VPD -s check_enrollment=1
doas vpd -i RW_VPD -s block_devmode=1
doas crossystem.old block_devmode=1

rm -f /stateful_unfucked

echo "Done. Press enter to reboot"
swallow_stdin
Expand Down Expand Up @@ -272,8 +274,7 @@ harddisableext() { # calling it "hard disable" because it only reenables when yo
13) read -r -p "enter extension id>" extid;;
*) echo "invalid option" ;;
esac
chmod 000 "/home/chronos/user/Extensions/$extid"
kill -9 $(pgrep -f "\-\-extension\-process")
echo "$extid" | grep -qE '^[a-z]{32}$' && chmod 000 "/home/chronos/user/Extensions/$extid" && kill -9 $(pgrep -f "\-\-extension\-process") || "invalid input"
}

hardenableext() {
Expand Down Expand Up @@ -308,8 +309,7 @@ hardenableext() {
13) read -r -p "enter extension id>" extid;;
*) echo "invalid option" ;;
esac
chmod 777 "/home/chronos/user/Extensions/$extid"
kill -9 $(pgrep -f "\-\-extension\-process")
echo "$extid" | grep -qE '^[a-z]{32}$' && chmod 777 "/home/chronos/user/Extensions/$extid" && kill -9 $(pgrep -f "\-\-extension\-process") || "invalid input"
}

softdisableext() {
Expand Down
3 changes: 3 additions & 0 deletions pollen.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,15 @@
"SafeBrowsingProtectionLevel": null,
"ProxySettings": null,
"DefaultClipboardSetting": null,
"ClipboardAllowedForUrls": null,
"ClipboardBlockedForUrls": null,
"DefaultImagesSetting": null,
"DefaultInsecureContentSetting": null,
"DefaultJavaScriptSetting": null,
"DefaultJavaScriptJitSetting": null,
"DefaultNotificationsSetting": null,
"DefaultPopupsSetting": null,
"DefaultGeolocationSetting": 3,
"RestoreOnStartup": null,
"RestoreOnStartupURLs": null,
"DefaultDownloadDirectory": null,
Expand Down

0 comments on commit f5a569b

Please sign in to comment.