Skip to content

Instantly share code, notes, and snippets.

View HydrangeaPurple's full-sized avatar

HydrangeaPurple HydrangeaPurple

View GitHub Profile
@HydrangeaPurple
HydrangeaPurple / wireguard-access-fix.ps1
Created March 30, 2025 10:43 — forked from robert-werner/wireguard-access-fix.ps1
Wireguard "Access Denied" fix on Windows 10+
$rule = New-Object System.Security.AccessControl.RegistryAccessRule(
"NT AUTHORITY\NETWORK SERVICE", # IdentityReference
[System.Security.AccessControl.RegistryRights]::FullControl, # RegistryRights
[System.Security.AccessControl.InheritanceFlags]::ContainerInherit, # InheritanceFlags
[System.Security.AccessControl.PropagationFlags]::None, # PropagationFlags
[System.Security.AccessControl.AccessControlType]::Allow # AccessControlType
)
$registry_keys = "Dhcp", "Tcpip", "Tcpip6", "TCPIPTUNNEL", "TCPIP6TUNNEL"
$registry_folder = "HKLM:\SYSTEM\CurrentControlSet\Services\{registry_key}"
@HydrangeaPurple
HydrangeaPurple / hostapd.conf
Created November 5, 2021 14:31
hostapd config file for raspberry pi
##### hostapd configuration file ##############################################
# Empty lines and lines starting with # are ignored
# AP netdevice name (without 'ap' postfix, i.e., wlan0 uses wlan0ap for
# management frames with the Host AP driver); wlan0 with many nl80211 drivers
interface=wlan0
# In case of atheros and nl80211 driver interfaces, an additional
# configuration parameter, bridge, may be used to notify hostapd if the
# interface is included in a bridge. This parameter is not used with Host AP