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