Reputation: 47
Do any of you guys know if it's possible to run a script before i get the option to enter bios and before OS boots? Example: i want to secure my pc with a script that requires me to press certain keys before the screen where i have the boot options apears (because passwords can be cracked, even bios, i don't trust them)
ps: i have been looking into this problem for a couple of hours and i couldn't find anything :(. i just need to know what language to use and where to insert the script.
thanks in advance!
Upvotes: 1
Views: 1452
Reputation: 3450
It is possible and not so hard when system use UEFI BIOS, which is true for almost all modern systems.
Below solution is not exactly what you want but it is closest to what you can get.
What have to be done:
bcfg
UEFI Shell command. You should use bcfg
to put your application on top of boot order, so while device is booting first entry would be your application and not OS. How to use bcfg
you can read here, page 83Couple notes:
bcfg
command since it can be dangerous, but this can be worked around by booting UEFI Shell from USB stick, if you have that option.I wrote blog post about UEFI application development in emulated environment, which you should consider instead of experimenting on real hardware.
Upvotes: 1