Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
# Using curl to query a Windows machine
curl -X POST http://localhost:2313/querywmic \
  -H "Content-Type: application/json" \
  -d '{
    "host": "192.168.1.100",
    "id": "user1",
    "token": "MYSECRETACCESSTOKEN1",
    "namespace": "root\\cimv2",
    "query": "SELECT * FROM Win32_OperatingSystem"
  }'

...