This file contains 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 org.springframework.beans.factory.annotation.Value | |
import org.springframework.stereotype.Service | |
import random.telegramhomebot.utils.logger | |
import java.net.DatagramPacket | |
import java.net.DatagramSocket | |
import java.net.InetAddress | |
/** | |
* The magic packet is a frame that is most often sent as a broadcast and that contains anywhere within its payload | |
* 6 bytes of all 255 (FF FF FF FF FF FF in hexadecimal), followed by sixteen repetitions of the target computer's |
This file contains 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
# - Create CreateScheduledTask.ps1 file with content below. | |
# - Run as admin command in PowerShell: | |
# Get-Content .\CreateScheduledTask.ps1 | PowerShell.exe -noprofile - | |
# - Restart Windows | |
# - Launch WSL | |
# - Launch VPN | |
# - Done! Metric automatically updated | |
$taskname="Fix VPN for WSL" | |
$scriptName = "UpdateAnyConnectInterfaceMetric.ps1" |
OlderNewer