fix: [tools] misp-wipe updated list of table to truncate

pull/7033/head
mokaddem 2021-02-18 10:32:40 +01:00
parent ea50250f40
commit 23461541ff
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 17 additions and 4 deletions

View File

@ -1,14 +1,23 @@
-- Clear tables that should be empty
TRUNCATE `attachment_scans`;
TRUNCATE `attributes`;
TRUNCATE `attribute_tags`;
TRUNCATE `cake_sessions`;
TRUNCATE `cerebrates`;
TRUNCATE `correlation_exclusions`;
TRUNCATE `correlations`;
TRUNCATE `dashboards`;
TRUNCATE `decaying_model_mappings`;
TRUNCATE `decaying_models`;
TRUNCATE `events`;
TRUNCATE `event_blacklists`;
TRUNCATE `event_blocklists`;
TRUNCATE `event_delegations`;
TRUNCATE `event_graph`;
TRUNCATE `event_locks`;
TRUNCATE `event_reports`;
TRUNCATE `event_tags`;
TRUNCATE `favourite_tags`;
TRUNCATE `inbox`;
TRUNCATE `jobs`;
TRUNCATE `logs`;
TRUNCATE `notification_logs`;
@ -17,7 +26,7 @@ TRUNCATE `object_references`;
TRUNCATE `object_relationships`;
TRUNCATE `object_templates`;
TRUNCATE `object_template_elements`;
TRUNCATE `org_blacklists`;
TRUNCATE `org_blocklists`;
TRUNCATE `posts`;
TRUNCATE `rest_client_histories`;
TRUNCATE `servers`;
@ -26,6 +35,8 @@ TRUNCATE `shadow_attribute_correlations`;
TRUNCATE `sharing_groups`;
TRUNCATE `sharing_group_orgs`;
TRUNCATE `sharing_group_servers`;
TRUNCATE `sightingdb_orgs`;
TRUNCATE `sightingdbs`;
TRUNCATE `sightings`;
TRUNCATE `tag_collections`;
TRUNCATE `tag_collection_tags`;
@ -34,7 +45,7 @@ TRUNCATE `threads`;
TRUNCATE `bruteforces`;
TRUNCATE `news`;
TRUNCATE `template_tags`;
TRUNCATE `whitelist`;
TRUNCATE `allowedlist`;
TRUNCATE `event_locks`;
TRUNCATE `fuzzy_correlate_ssdeep`;
TRUNCATE `tasks`;
@ -48,9 +59,11 @@ TRUNCATE `warninglists`;
TRUNCATE `warninglist_entries`;
TRUNCATE `warninglist_types`;
TRUNCATE `galaxies`;
TRUNCATE `galaxy_cluster_blocklists`;
TRUNCATE `galaxy_cluster_relation_tags`;
TRUNCATE `galaxy_cluster_relations`;
TRUNCATE `galaxy_clusters`;
TRUNCATE `galaxy_elements`;
TRUNCATE `galaxy_reference`;
TRUNCATE `noticelists`;
TRUNCATE `noticelist_entries`;
TRUNCATE `decaying_models`;