cnspec
cnspec copied to clipboard
Using the first example on the cnquery webpage on macOS doesn't work
Describe the bug
The cnquery web page shows users a ports.listening
example as the first thing to try:
ports.listening{
port
process {
executable
pid
}
user.name
}
However, trying this on macOS results in an error message.
To Reproduce Steps to reproduce the behavior:
- open
cnspec shell local
- paste in the following query:
ports.listening{
port
process {
executable
pid
}
user.name
}
- Observe the error output:
cnquery> ports.listening {}
Query encountered errors:
could not detect suitable ports manager for platform: macos
ports.listening: []
Expected behavior cnspec should return an array of open ports, with process, pid, executable, and user.
Desktop (please complete the following information):
- OS: macOS 12.6 ARM
- cnspec 7.0.0-alpha1 ARM