2021-02-25 18:02:43 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2021-12-14 16:13:53 +00:00
|
|
|
echo "::group::Build nuclei"
|
2024-03-13 21:38:53 +00:00
|
|
|
rm integration-test fuzzplayground nuclei 2>/dev/null
|
2023-10-17 12:14:13 +00:00
|
|
|
cd ../cmd/nuclei
|
2023-02-10 13:58:07 +00:00
|
|
|
go build -race .
|
2023-10-17 12:14:13 +00:00
|
|
|
mv nuclei ../../integration_tests/nuclei
|
2021-12-14 16:13:53 +00:00
|
|
|
echo "::endgroup::"
|
2022-03-03 13:40:03 +00:00
|
|
|
|
2021-12-14 16:13:53 +00:00
|
|
|
echo "::group::Build nuclei integration-test"
|
2021-02-25 18:02:43 +00:00
|
|
|
cd ../integration-test
|
|
|
|
go build
|
2023-10-17 12:14:13 +00:00
|
|
|
mv integration-test ../../integration_tests/integration-test
|
|
|
|
cd ../../integration_tests
|
2021-12-14 16:13:53 +00:00
|
|
|
echo "::endgroup::"
|
2022-03-03 13:40:03 +00:00
|
|
|
|
|
|
|
echo "::group::Installing nuclei templates"
|
|
|
|
./nuclei -update-templates
|
|
|
|
echo "::endgroup::"
|
|
|
|
|
2021-02-25 18:02:43 +00:00
|
|
|
./integration-test
|
2021-02-27 07:12:35 +00:00
|
|
|
if [ $? -eq 0 ]
|
2021-02-27 07:29:26 +00:00
|
|
|
then
|
2021-02-27 07:12:35 +00:00
|
|
|
exit 0
|
|
|
|
else
|
|
|
|
exit 1
|
|
|
|
fi
|