<feat: New release>

This commit is contained in:
Alessandro Autiero
2023-09-09 12:46:16 +02:00
parent badf41b044
commit 485e757e83
424 changed files with 37224 additions and 818815 deletions

View File

@@ -1,2 +0,0 @@
taskkill /f /im winrar.exe
taskkill /f /im tar.exe

40
gui/assets/misc/udp.ps1 Normal file
View File

@@ -0,0 +1,40 @@
[cmdletbinding(
DefaultParameterSetName = '',
ConfirmImpact = 'low'
)]
Param(
[Parameter(
Mandatory = $True,
Position = 0,
ParameterSetName = '',
ValueFromPipeline = $True)]
[String]$computer,
[Parameter(
Position = 1,
Mandatory = $True,
ParameterSetName = '')]
[Int16]$port
)
Process {
$udpobject = new-Object system.Net.Sockets.Udpclient
$udpobject.client.ReceiveTimeout = 2000
$udpobject.Connect("$computer", $port)
$a = new-object system.text.asciiencoding
$byte = $a.GetBytes("$( Get-Date )")
[void]$udpobject.Send($byte, $byte.length)
$remoteendpoint = New-Object system.net.ipendpoint([system.net.ipaddress]::Any, 0)
Try
{
$receivebytes = $udpobject.Receive([ref]$remoteendpoint)
[string]$returndata = $a.GetString($receivebytes)
If ($returndata)
{
exit 0
}
}
Catch
{
$udpobject.close()
exit 1
}
}

View File

@@ -0,0 +1,2 @@
net stop winnat
net start winnat

Binary file not shown.