Merge pull request #4420 from RichieB2B/ncsc-nl/misp-wipe-update

Update misp-wipe
pull/4399/head
Andras Iklody 2019-04-04 11:51:03 +02:00 committed by GitHub
commit 7f09d52045
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -92,6 +92,9 @@ curl --header "Authorization: $AuthKey" --header "Accept: application/json" --he
echo "Updating warninglists"
curl --header "Authorization: $AuthKey" --header "Accept: application/json" --header "Content-Type: application/json" -o /dev/null -s -X POST ${baseurl}/warninglists/update
echo "Updating noticelists"
curl --header "Authorization: $AuthKey" --header "Accept: application/json" --header "Content-Type: application/json" -o /dev/null -s -X POST ${baseurl}/noticelists/update
echo "Updating galaxies"
curl --header "Authorization: $AuthKey" --header "Accept: application/json" --header "Content-Type: application/json" -o /dev/null -s -X POST ${baseurl}/galaxies/update

View File

@ -30,6 +30,9 @@ TRUNCATE `bruteforces`;
TRUNCATE `news`;
TRUNCATE `template_tags`;
TRUNCATE `whitelist`;
TRUNCATE `event_locks`;
TRUNCATE `fuzzy_correlate_ssdeep`;
TRUNCATE `tasks`;
-- Clear tables that can be re-populated
TRUNCATE `taxonomies`;
@ -42,6 +45,8 @@ TRUNCATE `galaxies`;
TRUNCATE `galaxy_clusters`;
TRUNCATE `galaxy_elements`;
TRUNCATE `galaxy_reference`;
TRUNCATE `noticelists`;
TRUNCATE `noticelist_entries`;
-- Clear tables that have defaults
TRUNCATE `feeds`;