serialization-util.sh 1.6 KB

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. # menu_plugin
  3. PLUGIN_NAME="Chromebook Serialization Utility"
  4. PLUGIN_FUNCTION="Run the Chromebook Serialization Utility"
  5. PLUGIN_DESCRIPTION="Allows you to change your Chromebook's serial number and other VPD (vital product data)"
  6. PLUGIN_AUTHOR="kubisnax, rainestorme"
  7. PLUGIN_VERSION=1
  8. doas() {
  9. ssh -t -p 1337 -i /rootkey -oStrictHostKeyChecking=no root@127.0.0.1 "$@"
  10. }
  11. pushd /tmp
  12. echo "WARNING: THIS SCRIPT WILL IRREVERSIBLY MODIFY YOUR CHROMEBOOK AND WILL ABSOLUTELY VIOLATE YOUR DISTRICT'S RULES!"
  13. echo "IN NO EVENT SHALL THE AUTHOR 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 OF THIS SOFTWARE AND THE RELATED DOCUMENTATION FILES (the \"Software\") OR THE USE OR OTHER DEALINGS IN THE SOFTWARE."
  14. echo "If you do not want to continue, press Ctrl+C now. Otherwise, type 'I acknowledge' at the next prompt."
  15. sleep 5
  16. read -p ' > ' acknowledgement
  17. if [ "$acknowledgement" == "I acknowledge" ]; then
  18. echo "This script will set gbb_flags to 0x0, dump vpd logs, delete mlb_serial_number and delete stable_device_secret_DO_NOT_SHARE, delete Product_S/N then shutdown the system."
  19. read -p "This is your last chance. Ask yourself: Are you sure - completely sure - that you want to do this? If not, press Ctrl+C in the next 5 seconds."
  20. sleep 5
  21. curl -LOk https://raw.githubusercontent.com/kubisnax/chromebook_serialization_tool/master/cst.sh
  22. doas "pushd /tmp
  23. bash cst.sh"
  24. else
  25. echo "License not acknowledged, exiting..."
  26. exit
  27. fi
  28. popd