Skip to content

Commit

Permalink
Update osquery to 5.13.1 (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhu authored Oct 24, 2024
1 parent 584adfb commit a6eaf13
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 33 deletions.
10 changes: 5 additions & 5 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ New-Item -ItemType Directory -Path plugins\dosai -Force
Invoke-WebRequest -Uri https://github.com/upx/upx/releases/download/v4.2.4/upx-4.2.4-win64.zip -UseBasicParsing -OutFile upx-4.2.4-win64.zip
Expand-Archive -Path upx-4.2.4-win64.zip -DestinationPath . -Force

Invoke-WebRequest -Uri https://github.com/osquery/osquery/releases/download/5.12.2/osquery-5.12.2.windows_x86_64.zip -UseBasicParsing -OutFile osquery-5.12.2.windows_x86_64.zip
Expand-Archive -Path osquery-5.12.2.windows_x86_64.zip -DestinationPath . -Force
copy "osquery-5.12.2.windows_x86_64\Program Files\osquery\osqueryi.exe" plugins\osquery\osqueryi-windows-amd64.exe
Invoke-WebRequest -Uri https://github.com/osquery/osquery/releases/download/5.13.1/osquery-5.13.1.windows_x86_64.zip -UseBasicParsing -OutFile osquery-5.13.1.windows_x86_64.zip
Expand-Archive -Path osquery-5.13.1.windows_x86_64.zip -DestinationPath . -Force
copy "osquery-5.13.1.windows_x86_64\Program Files\osquery\osqueryi.exe" plugins\osquery\osqueryi-windows-amd64.exe
upx-4.2.4-win64\upx.exe -9 --lzma plugins\osquery\osqueryi-windows-amd64.exe
plugins\osquery\osqueryi-windows-amd64.exe --help

Expand All @@ -24,7 +24,7 @@ copy build\* ..\..\plugins\trivy\
Remove-Item build -Recurse -Force
cd ..\..

Remove-Item osquery-5.12.2.windows_x86_64 -Recurse -Force
Remove-Item osquery-5.12.2.windows_x86_64.zip -Recurse -Force
Remove-Item osquery-5.13.1.windows_x86_64 -Recurse -Force
Remove-Item osquery-5.13.1.windows_x86_64.zip -Recurse -Force
Remove-Item upx-4.2.4-win64 -Recurse -Force
Remove-Item upx-4.2.4-win64.zip -Recurse -Force
6 changes: 3 additions & 3 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ rm -rf plugins/osquery
rm -rf plugins/dosai
mkdir -p plugins/osquery plugins/dosai

wget https://github.com/osquery/osquery/releases/download/5.12.2/osquery-5.12.2_1.linux_x86_64.tar.gz
tar -xvf osquery-5.12.2_1.linux_x86_64.tar.gz
wget https://github.com/osquery/osquery/releases/download/5.13.1/osquery-5.13.1_1.linux_x86_64.tar.gz
tar -xvf osquery-5.13.1_1.linux_x86_64.tar.gz
cp opt/osquery/bin/osqueryd plugins/osquery/osqueryi-linux-amd64
upx -9 --lzma plugins/osquery/osqueryi-linux-amd64
sha256sum plugins/osquery/osqueryi-linux-amd64 > plugins/osquery/osqueryi-linux-amd64.sha256
rm -rf etc usr var opt
rm osquery-5.12.2_1.linux_x86_64.tar.gz
rm osquery-5.13.1_1.linux_x86_64.tar.gz

curl -L https://github.com/owasp-dep-scan/dosai/releases/latest/download/Dosai -o plugins/dosai/dosai-linux-amd64
chmod +x plugins/dosai/dosai-linux-amd64
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cyclonedx/cdxgen-plugins-bin",
"version": "1.6.3",
"version": "1.6.4",
"description": "Binary plugins to supercharge @cyclonedx/cdxgen npm package",
"main": "index.js",
"repository": {
Expand Down
6 changes: 3 additions & 3 deletions packages/darwin-amd64/build-darwin-amd64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ rm -rf plugins/osquery
rm -rf plugins/dosai
mkdir -p plugins/osquery plugins/dosai

wget https://github.com/osquery/osquery/releases/download/5.12.2/osquery-5.12.2_1.macos_x86_64.tar.gz
tar -xvf osquery-5.12.2_1.macos_x86_64.tar.gz
wget https://github.com/osquery/osquery/releases/download/5.13.1/osquery-5.13.1_1.macos_x86_64.tar.gz
tar -xvf osquery-5.13.1_1.macos_x86_64.tar.gz
cp -rf opt/osquery/lib/osquery.app plugins/osquery/osqueryi-darwin-amd64.app
rm -rf etc usr var opt
rm osquery-5.12.2_1.macos_x86_64.tar.gz
rm osquery-5.13.1_1.macos_x86_64.tar.gz

curl -L https://github.com/owasp-dep-scan/dosai/releases/latest/download/Dosai-osx-x64 -o plugins/dosai/dosai-darwin-amd64
chmod +x plugins/dosai/dosai-darwin-amd64
Expand Down
2 changes: 1 addition & 1 deletion packages/darwin-amd64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cyclonedx/cdxgen-plugins-bin-darwin-amd64",
"version": "1.6.3",
"version": "1.6.4",
"description": "Arm64 binary plugins to supercharge @cyclonedx/cdxgen npm package",
"main": "index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cyclonedx/cdxgen-plugins-bin-darwin-arm64",
"version": "1.6.3",
"version": "1.6.4",
"description": "Arm64 binary plugins to supercharge @cyclonedx/cdxgen npm package",
"main": "index.js",
"repository": {
Expand Down
6 changes: 3 additions & 3 deletions packages/linux-arm64/build-linux-arm64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ rm -rf plugins/osquery
rm -rf plugins/dosai
mkdir -p plugins/osquery plugins/dosai

wget https://github.com/osquery/osquery/releases/download/5.12.2/osquery-5.12.2_1.linux_aarch64.tar.gz
tar -xvf osquery-5.12.2_1.linux_aarch64.tar.gz
wget https://github.com/osquery/osquery/releases/download/5.13.1/osquery-5.13.1_1.linux_aarch64.tar.gz
tar -xvf osquery-5.13.1_1.linux_aarch64.tar.gz
cp opt/osquery/bin/osqueryd plugins/osquery/osqueryi-linux-arm64
upx -9 --lzma plugins/osquery/osqueryi-linux-arm64
sha256sum plugins/osquery/osqueryi-linux-arm64 > plugins/osquery/osqueryi-linux-arm64.sha256
rm -rf etc usr var opt
rm osquery-5.12.2_1.linux_aarch64.tar.gz
rm osquery-5.13.1_1.linux_aarch64.tar.gz

curl -L https://github.com/owasp-dep-scan/dosai/releases/latest/download/Dosai-linux-arm64 -o plugins/dosai/dosai-linux-arm64
chmod +x plugins/dosai/dosai-linux-arm64
Expand Down
2 changes: 1 addition & 1 deletion packages/linux-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cyclonedx/cdxgen-plugins-bin-arm64",
"version": "1.6.3",
"version": "1.6.4",
"description": "Arm64 binary plugins to supercharge @cyclonedx/cdxgen npm package",
"main": "index.js",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/ppc64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cyclonedx/cdxgen-plugins-bin-ppc64",
"version": "1.6.3",
"version": "1.6.4",
"description": "ppc64 binary plugins to supercharge @cyclonedx/cdxgen npm package",
"main": "index.js",
"repository": {
Expand Down
10 changes: 5 additions & 5 deletions packages/windows-amd64/build-windows-amd64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ rm -rf plugins/osquery
rm -rf plugins/dosai
mkdir -p plugins/osquery plugins/dosai

wget https://github.com/osquery/osquery/releases/download/5.12.2/osquery-5.12.2.windows_x86_64.zip
unzip osquery-5.12.2.windows_x86_64.zip
cp "osquery-5.12.2.windows_x86_64/Program Files/osquery/osqueryi.exe" plugins/osquery/osqueryi-windows-amd64.exe
wget https://github.com/osquery/osquery/releases/download/5.13.1/osquery-5.13.1.windows_x86_64.zip
unzip osquery-5.13.1.windows_x86_64.zip
cp "osquery-5.13.1.windows_x86_64/Program Files/osquery/osqueryi.exe" plugins/osquery/osqueryi-windows-amd64.exe
upx -9 --lzma plugins/osquery/osqueryi-windows-amd64.exe
sha256sum plugins/osquery/osqueryi-windows-amd64.exe > plugins/osquery/osqueryi-windows-amd64.exe.sha256
rm -rf osquery-5.12.2.windows_x86_64
rm osquery-5.12.2.windows_x86_64.zip
rm -rf osquery-5.13.1.windows_x86_64
rm osquery-5.13.1.windows_x86_64.zip

curl -L https://github.com/owasp-dep-scan/dosai/releases/latest/download/Dosai.exe -o plugins/dosai/dosai-windows-amd64.exe
sha256sum plugins/dosai/dosai-windows-amd64.exe > plugins/dosai/dosai-windows-amd64.exe.sha256
Expand Down
2 changes: 1 addition & 1 deletion packages/windows-amd64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cyclonedx/cdxgen-plugins-bin-windows-amd64",
"version": "1.6.3",
"version": "1.6.4",
"description": "Windows amd64 binary plugins to supercharge @cyclonedx/cdxgen npm package",
"main": "index.js",
"repository": {
Expand Down
10 changes: 5 additions & 5 deletions packages/windows-arm64/build-windows-arm64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ rm -rf plugins/osquery
rm -rf plugins/dosai
mkdir -p plugins/osquery plugins/dosai

wget https://github.com/osquery/osquery/releases/download/5.12.2/osquery-5.12.2.windows_arm64.zip
unzip osquery-5.12.2.windows_arm64.zip
cp "osquery-5.12.2.windows_arm64/Program Files/osquery/osqueryi.exe" plugins/osquery/osqueryi-windows-arm64.exe
wget https://github.com/osquery/osquery/releases/download/5.13.1/osquery-5.13.1.windows_arm64.zip
unzip osquery-5.13.1.windows_arm64.zip
cp "osquery-5.13.1.windows_arm64/Program Files/osquery/osqueryi.exe" plugins/osquery/osqueryi-windows-arm64.exe
sha256sum plugins/osquery/osqueryi-windows-arm64.exe > plugins/osquery/osqueryi-windows-arm64.exe.sha256
rm -rf osquery-5.12.2.windows_arm64
rm osquery-5.12.2.windows_arm64.zip
rm -rf osquery-5.13.1.windows_arm64
rm osquery-5.13.1.windows_arm64.zip

curl -L https://github.com/owasp-dep-scan/dosai/releases/latest/download/Dosai-windows-arm64.exe -o plugins/dosai/dosai-windows-arm64.exe
sha256sum plugins/dosai/dosai-windows-arm64.exe > plugins/dosai/dosai-windows-arm64.exe.sha256
Expand Down
2 changes: 1 addition & 1 deletion packages/windows-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cyclonedx/cdxgen-plugins-bin-windows-arm64",
"version": "1.6.3",
"version": "1.6.4",
"description": "Arm64 binary plugins to supercharge @cyclonedx/cdxgen npm package",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit a6eaf13

Please sign in to comment.