MercuryWorkshop / sh1mmer

source tree, website, and writeup for the sh1mmer chromebook jailbreak
https://sh1mmer.me
GNU General Public License v3.0
208 stars 83 forks source link

Issue: Creating a minishim with wax_mini.sh does not work #109

Closed NotDarkn closed 10 months ago

NotDarkn commented 11 months ago

OS/Distro: EndeavourOS w/ GNOME 45.1

Issue: Making a minishim using the wax_mini.sh script does not work.

Description: Using the latest commit of the SH1mmer repo, the wax_mini.sh does not work. There isn't really much else for me to describe, it just doesn't work lmfao.

Log (Shortened):

-------------------------------------------------------------------------------------------------------------
Welcome to wax, a shim modifying automation tool made by CoolElectronics and Sharp_Jack, greatly improved by r58playz and Rafflesia
Prerequisites: cgpt must be installed, program must be ran as root, chromebrew.tar.gz needs to exist
-------------------------------------------------------------------------------------------------------------
Launch flags you should know about: --antiskid will relock the rootfs
THIS IS THE MINIMAL SHIM, CHROMEBREW PAYLOADS **WILL NOT** WORK
Expanding bin for 'arch' partition. this will take a while

Welcome to fdisk (util-linux 2.39.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): The partition table has been altered.
Syncing disks.
cp: cannot stat 'factory_install.sh': No such file or directory
[darkn@bobbabook wax]$ 
Full Log ``` [darkn@bobbabook wax]$ sudo bash wax_mini.sh '/home/darkn/Downloads/octopus.bin' ------------------------------------------------------------------------------------------------------------- Welcome to wax, a shim modifying automation tool made by CoolElectronics and Sharp_Jack, greatly improved by r58playz and Rafflesia Prerequisites: cgpt must be installed, program must be ran as root, chromebrew.tar.gz needs to exist ------------------------------------------------------------------------------------------------------------- Launch flags you should know about: --antiskid will relock the rootfs THIS IS THE MINIMAL SHIM, CHROMEBREW PAYLOADS **WILL NOT** WORK Expanding bin for 'arch' partition. this will take a while Welcome to fdisk (util-linux 2.39.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): The partition table has been altered. Syncing disks. Creating loop device Making ROOT mountable Creating Mountpoint mkdir: cannot create directory ‘mnt’: File exists Mounting ROOT-A Injecting payload 'sh1mmer-assets' -> 'mnt/usr/share/sh1mmer-assets' 'sh1mmer-assets/Credits.png' -> 'mnt/usr/share/sh1mmer-assets/Credits.png' 'sh1mmer-assets/Disclaimer.png' -> 'mnt/usr/share/sh1mmer-assets/Disclaimer.png' 'sh1mmer-assets/qsm' -> 'mnt/usr/share/sh1mmer-assets/qsm' 'sh1mmer-assets/qsm/qsm-select00.png' -> 'mnt/usr/share/sh1mmer-assets/qsm/qsm-select00.png' 'sh1mmer-assets/qsm/qsm-select01.png' -> 'mnt/usr/share/sh1mmer-assets/qsm/qsm-select01.png' 'sh1mmer-assets/qsm/qsm-select02.png' -> 'mnt/usr/share/sh1mmer-assets/qsm/qsm-select02.png' 'sh1mmer-assets/qsm/qsm-select03.png' -> 'mnt/usr/share/sh1mmer-assets/qsm/qsm-select03.png' 'sh1mmer-assets/startingUp.png' -> 'mnt/usr/share/sh1mmer-assets/startingUp.png' 'sh1mmer-assets/terminalGeneric-noSubtitle.png' -> 'mnt/usr/share/sh1mmer-assets/terminalGeneric-noSubtitle.png' 'sh1mmer-assets/terminalGeneric.png' -> 'mnt/usr/share/sh1mmer-assets/terminalGeneric.png' 'sh1mmer-assets/utils' -> 'mnt/usr/share/sh1mmer-assets/utils' 'sh1mmer-assets/utils/utils-select00.png' -> 'mnt/usr/share/sh1mmer-assets/utils/utils-select00.png' 'sh1mmer-assets/utils/utils-select01.png' -> 'mnt/usr/share/sh1mmer-assets/utils/utils-select01.png' 'sh1mmer-assets/utils/utils-select02.png' -> 'mnt/usr/share/sh1mmer-assets/utils/utils-select02.png' 'sh1mmer-assets/utils/utils-select03.png' -> 'mnt/usr/share/sh1mmer-assets/utils/utils-select03.png' 'sh1mmer-assets/utils/utils-select04.png' -> 'mnt/usr/share/sh1mmer-assets/utils/utils-select04.png' 'sh1mmer-assets/utils/utils-select05.png' -> 'mnt/usr/share/sh1mmer-assets/utils/utils-select05.png' 'sh1mmer-assets/utils/utils-select06.png' -> 'mnt/usr/share/sh1mmer-assets/utils/utils-select06.png' 'sh1mmer-scripts/factory_install.sh' -> 'mnt/usr/sbin/factory_install.sh' 'sh1mmer-scripts/sh1mmer_gui.sh' -> 'mnt/usr/sbin/sh1mmer_gui.sh' 'sh1mmer-scripts/sh1mmer_main.sh' -> 'mnt/usr/sbin/sh1mmer_main.sh' 'sh1mmer-scripts/sh1mmer_optionsSelector.sh' -> 'mnt/usr/sbin/sh1mmer_optionsSelector.sh' 'sh1mmer-scripts/sh1mmer_payload.sh' -> 'mnt/usr/sbin/sh1mmer_payload.sh' 'sh1mmer-scripts/sh1mmer_utilities.sh' -> 'mnt/usr/sbin/sh1mmer_utilities.sh' 'payloads/lib' -> 'mnt/usr/local/payloads/lib' 'payloads/lib/gui_lib.sh' -> 'mnt/usr/local/payloads/lib/gui_lib.sh' 'payloads/mrchromebox-supporting' -> 'mnt/usr/local/payloads/mrchromebox-supporting' 'payloads/mrchromebox-supporting/README.md' -> 'mnt/usr/local/payloads/mrchromebox-supporting/README.md' 'payloads/mrchromebox-supporting/firmware-util.sh' -> 'mnt/usr/local/payloads/mrchromebox-supporting/firmware-util.sh' 'payloads/mrchromebox-supporting/firmware.sh' -> 'mnt/usr/local/payloads/mrchromebox-supporting/firmware.sh' 'payloads/mrchromebox-supporting/functions.sh' -> 'mnt/usr/local/payloads/mrchromebox-supporting/functions.sh' 'payloads/mrchromebox-supporting/images' -> 'mnt/usr/local/payloads/mrchromebox-supporting/images' 'payloads/mrchromebox-supporting/images/cbfstool.tar.gz' -> 'mnt/usr/local/payloads/mrchromebox-supporting/images/cbfstool.tar.gz' 'payloads/mrchromebox-supporting/images/flashrom.tar.gz' -> 'mnt/usr/local/payloads/mrchromebox-supporting/images/flashrom.tar.gz' 'payloads/mrchromebox-supporting/images/gbb_utility.tar.gz' -> 'mnt/usr/local/payloads/mrchromebox-supporting/images/gbb_utility.tar.gz' 'payloads/mrchromebox-supporting/images/rwl_altfw_cml-mrchromebox_20210415.bin' -> 'mnt/usr/local/payloads/mrchromebox-supporting/images/rwl_altfw_cml-mrchromebox_20210415.bin' 'payloads/mrchromebox-supporting/images/rwl_altfw_drallion-mrchromebox_20221019.bin' -> 'mnt/usr/local/payloads/mrchromebox-supporting/images/rwl_altfw_drallion-mrchromebox_20221019.bin' 'payloads/mrchromebox-supporting/images/rwl_altfw_glk-mrchromebox_20221019.bin' -> 'mnt/usr/local/payloads/mrchromebox-supporting/images/rwl_altfw_glk-mrchromebox_20221019.bin' 'payloads/mrchromebox-supporting/images/rwl_altfw_jsl-mrchromebox_20211115.bin' -> 'mnt/usr/local/payloads/mrchromebox-supporting/images/rwl_altfw_jsl-mrchromebox_20211115.bin' 'payloads/mrchromebox-supporting/images/rwl_altfw_stoney-mrchromebox_20200107.bin' -> 'mnt/usr/local/payloads/mrchromebox-supporting/images/rwl_altfw_stoney-mrchromebox_20200107.bin' 'payloads/mrchromebox-supporting/images/rwl_altfw_tgl-mrchromebox_20210827.bin' -> 'mnt/usr/local/payloads/mrchromebox-supporting/images/rwl_altfw_tgl-mrchromebox_20210827.bin' 'payloads/mrchromebox-supporting/images/rwl_altfw_whl-mrchromebox_20201017.bin' -> 'mnt/usr/local/payloads/mrchromebox-supporting/images/rwl_altfw_whl-mrchromebox_20201017.bin' 'payloads/mrchromebox-supporting/images/rwl_altfw_zen2-mrchromebox_20210623.bin' -> 'mnt/usr/local/payloads/mrchromebox-supporting/images/rwl_altfw_zen2-mrchromebox_20210623.bin' 'payloads/mrchromebox-supporting/images/seabios-apl-mrchromebox_20180912.bin' -> 'mnt/usr/local/payloads/mrchromebox-supporting/images/seabios-apl-mrchromebox_20180912.bin' 'payloads/mrchromebox-supporting/images/seabios-bsw-mrchromebox_20180912.bin' -> 'mnt/usr/local/payloads/mrchromebox-supporting/images/seabios-bsw-mrchromebox_20180912.bin' 'payloads/mrchromebox-supporting/images/seabios-byt-mrchromebox_20180912.bin' -> 'mnt/usr/local/payloads/mrchromebox-supporting/images/seabios-byt-mrchromebox_20180912.bin' 'payloads/mrchromebox-supporting/images/seabios-hswbdw_book-mrchromebox_20180912.bin' -> 'mnt/usr/local/payloads/mrchromebox-supporting/images/seabios-hswbdw_book-mrchromebox_20180912.bin' 'payloads/mrchromebox-supporting/images/seabios-hswbdw_box-mrchromebox_20180912.bin' -> 'mnt/usr/local/payloads/mrchromebox-supporting/images/seabios-hswbdw_box-mrchromebox_20180912.bin' 'payloads/mrchromebox-supporting/images/seabios-kbl-mrchromebox_20200223.bin' -> 'mnt/usr/local/payloads/mrchromebox-supporting/images/seabios-kbl-mrchromebox_20200223.bin' 'payloads/mrchromebox-supporting/images/seabios-kbl_18-mrchromebox_20200223.bin' -> 'mnt/usr/local/payloads/mrchromebox-supporting/images/seabios-kbl_18-mrchromebox_20200223.bin' 'payloads/mrchromebox-supporting/images/seabios-link-mrchromebox_20180912.bin' -> 'mnt/usr/local/payloads/mrchromebox-supporting/images/seabios-link-mrchromebox_20180912.bin' 'payloads/mrchromebox-supporting/images/seabios-skl-mrchromebox_20180912.bin' -> 'mnt/usr/local/payloads/mrchromebox-supporting/images/seabios-skl-mrchromebox_20180912.bin' 'payloads/mrchromebox-supporting/sources.sh' -> 'mnt/usr/local/payloads/mrchromebox-supporting/sources.sh' 'payloads/mrchromebox.sh' -> 'mnt/usr/local/payloads/mrchromebox.sh' 'payloads/stopupdates.sh' -> 'mnt/usr/local/payloads/stopupdates.sh' 'payloads/troll.sh' -> 'mnt/usr/local/payloads/troll.sh' cp: cannot stat 'factory_install.sh': No such file or directory [darkn@bobbabook wax]$ ```

Notes:

NotDarkn commented 11 months ago

Issue fixed by copying the factory_install.sh script from /wax/sh1mmer-scripts into the /wax folder. Not closing until a commit has been made to fix the directory it's calling for , or whatever.

BinBashBanana commented 10 months ago

fixed