Fix minor issues in /handbook/queries queries (#485)

- Fix syntax for installed software queries
- Fix missing `version` column in `yum_packages` table for Get installed Linux software query
This commit is contained in:
headmin 2021-03-17 15:44:56 +01:00 committed by GitHub
parent 7970fa46a4
commit 49565ff1db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 21 deletions

View File

@ -11,25 +11,25 @@ FreeBSD
```sql
SELECT
name AS name,
version AS version
version AS version,
'chrome_extensions' AS source
FROM chrome_extensions
UNION
SELECT
name AS name,
version AS version
version AS version,
'firefox_addons' AS source
FROM firefox_addons
UNION
SELECT
name AS name,
version AS version
version AS version,
'atom_packages' AS source
FROM atom_packages
UNION
SELECT
name AS name,
version AS version
version AS version,
'python_packages' AS source
FROM python_packages
UNION

View File

@ -11,31 +11,31 @@ Linux
```sql
SELECT
name AS name,
version AS version
version AS version,
'apt_sources' AS source
FROM apt_sources
UNION
SELECT
name AS name,
version AS version
version AS version,
'deb_packages' AS source
FROM deb_packages
UNION
SELECT
package AS name,
version AS version
version AS version,
'portage_packages' AS source
FROM portage_packages
UNION
SELECT
name AS name,
version AS version
version AS version,
'rpm_packages' AS source
FROM rpm_packages
UNION
SELECT
name AS name,
version AS version,
'' AS version,
'yum_sources' AS source
FROM yum_sources
UNION
@ -70,4 +70,4 @@ Informational
### Remediation
N/A
N/A

View File

@ -23,31 +23,31 @@ FROM python_packages
UNION
SELECT
name AS name,
version AS version
version AS version,
'chrome_extensions' AS source
FROM chrome_extensions
UNION
SELECT
name AS name,
version AS version
version AS version,
'firefox_addons' AS source
FROM firefox_addons
UNION
SELECT
name AS name,
version AS version
version AS version,
'opera_extensions' AS source
FROM opera_extensions
UNION
SELECT
name As name,
version AS version
version AS version,
'safari_extensions' AS source
FROM safari_extensions
UNION
SELECT
name AS name,
version AS version
version AS version,
'homebrew_packages' AS source
FROM homebrew_packages;
```

View File

@ -23,37 +23,37 @@ FROM python_packages
UNION
SELECT
name AS name,
version AS version
version AS version,
'ie_extensions' AS source
FROM ie_extensions
UNION
SELECT
name AS name,
version AS version
version AS version,
'chrome_extensions' AS source
FROM chrome_extensions
UNION
SELECT
name AS name,
version AS version
version AS version,
'firefox_addons' AS source
FROM firefox_addons
UNION
SELECT
name AS name,
version AS version
version AS version,
'chocolatey_packages' AS source
FROM chocolatey_packages
UNION
SELECT
name AS name,
version AS version
version AS version,
'atom_packages' AS source
FROM atom_packages
UNION
SELECT
name AS name,
version AS version
version AS version,
'python_packages' AS source
FROM python_packages;
```