bios-dumper.sh 567 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. # menu_plugin
  3. PLUGIN_NAME="BIOS Dumper"
  4. PLUGIN_FUNCTION="Dump BIOS/firmware"
  5. PLUGIN_DESCRIPTION="Dumps the current system firmware/BIOS for further reverse-engineering"
  6. PLUGIN_AUTHOR="rainestorme"
  7. PLUGIN_VERSION=2
  8. doas() {
  9. ssh -t -p 1337 -i /rootkey -oStrictHostKeyChecking=no root@127.0.0.1 "$@"
  10. }
  11. doas "pushd /home/chronos/user/Downloads
  12. clear
  13. echo 'Dumping firmware...'
  14. flashrom -r bios.bin &> /dev/null
  15. popd
  16. exit"
  17. clear
  18. echo "Done! Look in /home/chronos/user/Downloads (just labeled 'Downloads' in the file explorer) for the .bin file."
  19. sleep 1