Advertisement
Shadrach

anonymize.sql

Feb 15th, 2024 (edited)
1,316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 1.70 KB | None | 0 0
  1. /* Anonymize Chromium History file*/
  2. UPDATE cluster_keywords SET
  3.     keyword = LOWER(hex(randomblob(8)));
  4. UPDATE clusters SET
  5.     label = LOWER(hex(randomblob(16))),
  6.     raw_label = LOWER(hex(randomblob(16)));
  7. UPDATE clusters_and_visits SET
  8.     url_for_deduping = 'https://'||LOWER(hex(randomblob(8)))||'.com',
  9.     normalized_url = 'https://'||LOWER(hex(randomblob(8)))||'.com',
  10.     url_for_display = 'https://'||LOWER(hex(randomblob(8)))||'.com';
  11. UPDATE content_annotations SET
  12.     related_searches = LOWER(hex(randomblob(8))),
  13.     search_normalized_url = 'https://'||LOWER(hex(randomblob(8)))||'.com',
  14.     search_terms = LOWER(hex(randomblob(8)));
  15. UPDATE downloads SET
  16.     current_path = 'C:\temp',
  17.     target_path = 'C:\temp',
  18.     referrer = 'https://'||LOWER(hex(randomblob(8)))||'.com',
  19.     tab_url = 'https://'||LOWER(hex(randomblob(8)))||'.com',
  20.     tab_referrer_url = 'https://'||LOWER(hex(randomblob(8)))||'.com';
  21. UPDATE downloads_url_chains SET
  22.     url = 'https://'||LOWER(hex(randomblob(8)))||'.com';
  23. UPDATE keyword_search_terms SET
  24.     term = LOWER(hex(randomblob(8))),
  25.     normalized_term = LOWER(hex(randomblob(8)));
  26. UPDATE segments SET
  27.     name = 'https://'||LOWER(hex(randomblob(8)))||'.com';
  28. UPDATE content_annotations SET
  29.     search_normalized_url = 'https://'||LOWER(hex(randomblob(8)))||'.com',
  30.     search_terms = LOWER(hex(randomblob(8)));
  31. UPDATE urls SET
  32.     url = 'https://'||LOWER(hex(randomblob(8)))||'.com',
  33.     title = LOWER(hex(randomblob(8)));
  34. UPDATE visited_links SET
  35.     top_level_url = 'https://'||LOWER(hex(randomblob(8)))||'.com',
  36.     frame_url = 'https://'||LOWER(hex(randomblob(8)))||'.com';
  37. UPDATE visits SET
  38.     external_referrer_url = 'https://'||LOWER(hex(randomblob(8)))||'.com';
  39. DELETE FROM visit_source;
  40. VACUUM;
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement