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
#!ipxe | |
echo Booting Alpine Linux rescue | |
# Used below for SSH keys | |
set space:hex 20 | |
set space ${space:string} | |
set arch x86_64 | |
#set version edge |
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
import subprocess | |
import sys | |
import ctypes | |
import msvcrt | |
import os | |
import re | |
def is_admin(): | |
try: | |
return ctypes.windll.shell32.IsUserAnAdmin() |