-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Prabhu Subramanian <[email protected]>
- Loading branch information
Showing
15 changed files
with
301 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,46 @@ | ||
New-Item -ItemType Directory -Path plugins\goversion -Force | ||
New-Item -ItemType Directory -Path plugins\cargo-auditable -Force | ||
New-Item -ItemType Directory -Path plugins\osquery -Force | ||
New-Item -ItemType Directory -Path plugins\dosai -Force | ||
|
||
Invoke-WebRequest -Uri https://github.com/upx/upx/releases/download/v4.1.0/upx-4.1.0-win64.zip -UseBasicParsing -OutFile upx-4.1.0-win64.zip | ||
Expand-Archive -Path upx-4.1.0-win64.zip -DestinationPath . -Force | ||
Invoke-WebRequest -Uri https://github.com/upx/upx/releases/download/v4.2.1/upx-4.2.1-win64.zip -UseBasicParsing -OutFile upx-4.2.1-win64.zip | ||
Expand-Archive -Path upx-4.2.1-win64.zip -DestinationPath . -Force | ||
|
||
Invoke-WebRequest -Uri https://github.com/osquery/osquery/releases/download/5.9.1/osquery-5.9.1.windows_x86_64.zip -UseBasicParsing -OutFile osquery-5.9.1.windows_x86_64.zip | ||
Expand-Archive -Path osquery-5.9.1.windows_x86_64.zip -DestinationPath . -Force | ||
copy "osquery-5.9.1.windows_x86_64\Program Files\osquery\osqueryi.exe" plugins\osquery\osqueryi-windows-amd64.exe | ||
upx-4.1.0-win64\upx.exe -9 --lzma plugins\osquery\osqueryi-windows-amd64.exe | ||
Invoke-WebRequest -Uri https://github.com/osquery/osquery/releases/download/5.10.2/osquery-5.10.2.windows_x86_64.zip -UseBasicParsing -OutFile osquery-5.10.2.windows_x86_64.zip | ||
Expand-Archive -Path osquery-5.10.2.windows_x86_64.zip -DestinationPath . -Force | ||
copy "osquery-5.10.2.windows_x86_64\Program Files\osquery\osqueryi.exe" plugins\osquery\osqueryi-windows-amd64.exe | ||
upx-4.2.1-win64\upx.exe -9 --lzma plugins\osquery\osqueryi-windows-amd64.exe | ||
|
||
Invoke-WebRequest -Uri https://github.com/owasp-dep-scan/dosai/releases/latest/download/Dosai.exe -UseBasicParsing -OutFile plugins/dosai/dosai-windows-amd64.exe | ||
|
||
set CGO_ENABLED=0 | ||
set GOOS=windows | ||
set GOARCH=amd64 | ||
New-Item -ItemType Directory -Path plugins\goversion -Force | ||
cd thirdparty\goversion | ||
go build -ldflags "-H=windowsgui -s -w" -o build\goversion-windows-amd64.exe | ||
..\..\upx-4.1.0-win64\upx.exe -9 --lzma build\goversion-windows-amd64.exe | ||
..\..\upx-4.2.1-win64\upx.exe -9 --lzma build\goversion-windows-amd64.exe | ||
copy build\* ..\..\plugins\goversion\ | ||
Remove-Item build -Recurse -Force | ||
cd ..\.. | ||
|
||
New-Item -ItemType Directory -Path plugins\cargo-auditable -Force | ||
cd thirdparty\cargo-auditable | ||
go build -ldflags "-H=windowsgui -s -w" -o build\cargo-auditable-windows-amd64.exe | ||
..\..\upx-4.1.0-win64\upx.exe -9 --lzma build\cargo-auditable-windows-amd64.exe | ||
..\..\upx-4.2.1-win64\upx.exe -9 --lzma build\cargo-auditable-windows-amd64.exe | ||
copy build\* ..\..\plugins\cargo-auditable\ | ||
Remove-Item build -Recurse -Force | ||
cd ..\.. | ||
|
||
New-Item -ItemType Directory -Path plugins\trivy -Force | ||
cd thirdparty\trivy | ||
go build -ldflags "-H=windowsgui -s -w" -o build\trivy-windows-amd64.exe | ||
..\..\upx-4.1.0-win64\upx.exe -9 --lzma build\trivy-windows-amd64.exe | ||
..\..\upx-4.2.1-win64\upx.exe -9 --lzma build\trivy-windows-amd64.exe | ||
copy build\* ..\..\plugins\trivy\ | ||
Remove-Item build -Recurse -Force | ||
cd ..\.. | ||
|
||
Remove-Item osquery-5.9.1.windows_x86_64 -Recurse -Force | ||
Remove-Item osquery-5.9.1.windows_x86_64.zip -Recurse -Force | ||
Remove-Item upx-4.1.0-win64 -Recurse -Force | ||
Remove-Item upx-4.1.0-win64.zip -Recurse -Force | ||
Remove-Item osquery-5.10.2.windows_x86_64 -Recurse -Force | ||
Remove-Item osquery-5.10.2.windows_x86_64.zip -Recurse -Force | ||
Remove-Item upx-4.2.1-win64 -Recurse -Force | ||
Remove-Item upx-4.2.1-win64.zip -Recurse -Force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
# Introduction | ||
|
||
The files in this directory were copied from go binary distribution 1.16.5 | ||
The files in this directory were copied from go binary distribution 1.21.4 | ||
|
||
``` | ||
cp /usr/local/go/src/cmd/go/internal/version/*.go . | ||
cp /usr/local/go/src/internal/xcoff/xcoff.go . | ||
cp /usr/local/go/src/internal/xcoff/file.go . | ||
cp /usr/local/go/src/internal/saferio/io.go . | ||
``` | ||
|
||
Few changes have been made to version.go to make the module compile | ||
Few changes have been made to version.go and file.go to make the module compile |
Oops, something went wrong.