test query for crowdstrike API:
- look up a single host by hostname
--hostname HOST - look up vulnerabilities by hostname
--hostname HOST --list-vulns - look up any host(s) by FQL filter
--filter - list custom RTR scripts' details
$ python query_cs.py --help
usage: query_cs.py [-h] --client-id CLIENT_ID --client-secret CLIENT_SECRET [--hostname HOSTNAME] [--filter FILTER] [--domain DOMAIN] [--proxies PROXIES]
[--list-vulns] [--list-scripts]
options:
-h, --help show this help message and exit
--client-id CLIENT_ID The client_id of the API key
--client-secret CLIENT_SECRET The API key
--hostname HOSTNAME The hostname to query for
--filter FILTER The query filter to use to filter the agent ID query results
--domain DOMAIN The FQDN for your Crowdstrike account's API (not full URL)
--proxies PROXIES JSON structure specifying 'http' and 'https' proxy URLs
--list-vulns Get vulnerabilities for the specified host
--list-scripts List RTR custom scripts details
--discover Query Falcon Discover endpoints instead of regular Falcon
python3 query_cs.py --domain api.crowdstrike.com --client-id blah --client-secret blah --hostname abc123 --list-vulns
python3 query_cs.py --domain api.crowdstrike.com --client-id blah --client-secret blah --list-scripts