README.md
Rendering markdown...
# Define the target URL
$url = "http://192.168.100.1:9201/SpaceX.API.Device.Device/Handle"
# Define the headers
$Headers = @{
"X-User-Agent" = "grpc-web-javascript/0.1"
"X-Grpc-Web" = "1"
"User-Agent" = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.6099.199 Safari/537.36"
"Content-Type" = "application/grpc-web-proto"
"Accept" = "*/*"
"Origin" = "http://localhost"
"Referer" = "http://192.168.100.1/"
"Accept-Encoding" = "gzip, deflate, br"
"Accept-Language" = "en-US,en;q=0.9"
"Connection" = "close"
}
# Define the binary payload as hex 00 00 00 00 04 82 F7 02 00
$Payload = [byte[]](0x00, 0x00, 0x00, 0x00, 0x04, 0x82, 0xF7, 0x02, 0x00)
# Send the POST request
$response = Invoke-WebRequest -Uri $url -Method Post -Headers $Headers -Body $Payload -ContentType "application/grpc-web-proto"
# Output the response
Write-Output $response.Content