Skip to content

Instantly share code, notes, and snippets.

@FlyGoat
Created January 5, 2021 02:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FlyGoat/5f0dba5b5ccc1b6ab73023489e1e989a to your computer and use it in GitHub Desktop.
Save FlyGoat/5f0dba5b5ccc1b6ab73023489e1e989a to your computer and use it in GitHub Desktop.
Lenovo Yoga14s BIOS unlock
#!/usr/bin/python
import portio
portio.iopl(3)
portio.ioperm(0x72, 2, 1)
portio.outb_p(0xf7, 0x72)
portio.outb_p(0x77, 0x73)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment