This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # "Fix" for the IdeaPad 3 14IIL05 EC not sending lid switch signals (doesn't sleep on lid close) | |
| # Sets ec_sys kernel module to load on boot | |
| # Creates script in /usr/local/bin/ec-poller.sh that polls EC memory every 0.5s | |
| # Creates systemd service that runs the script on boot | |
| # Enables and starts service | |
| if [ "$EUID" -ne 0 ]; then | |
| echo "Run as root" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Tested on Windows 10 Pro v10.0.19044.2130 (the latest version as of 08/11/2022) | |
| # Prerequisites: Windows 10 Pro, Administrator account | |
| # Demo: https://www.youtube.com/watch?v=0hQvejo5Os4 | |
| # Reference: https://offsec.almond.consulting/UAC-bypass-dotnet.html | |
| import subprocess | |
| import tempfile | |
| import base64 | |
| import uuid |