Title: Malicious code.  Do NOT use
Last modified: September 2, 2016

---

# Malicious code. Do NOT use

 *  [Koobenhoff](https://wordpress.org/support/users/koobenhoff/)
 * (@koobenhoff)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/malicious-code-do-not-use/)
 * This plugin contains code that does a few shady things.
    ** /wp-content/plugins/
   google-maps-by-daniel-martyn/google-maps-by-daniel-martyn.php
 * Sends email that the plugin was activated.
 * > function googlemapswpdm_activate() {
   > $yourip = $_SERVER[‘REMOTE_ADDR’]; $filename = $_SERVER[‘DOCUMENT_ROOT’] . ‘/
   > wp-content/plugins/google-maps-by-daniel-martyn/inuse.txt’; fwrite($fp, $yourip);
   > fclose($fp);
   > session_start(); $subj = get_option(‘siteurl’); $msg = “Maps Activated” ; $
   > from = get_option(‘admin_email’); mail(“wpdanielmartyn@gmail.com”, $subj, $
   > msg, $from);
   > add_option(‘seomg_do_activation_redirect’, false);
   > }
 * Why would a wordpress plugin need to send mail to [wpdanielmartyn@gmail.com](https://wordpress.org/support/topic/malicious-code-do-not-use/wpdanielmartyn@gmail.com?output_format=md)?
 * Also, I have noted the same code issues that other have found. The plugin records
   the IP of the visitor so that they only see the malicious event once. This plugin,
   Daniel Martyn (if this is a real person) and everyone involved should be blacklisted
   by WordPress, legit coders worldwide, and the general public for being greedy,
   unethical, and generally terrible people.
 * Perhaps I judge too quickly. Perhaps Daniel Martyn can explain the code and exonerate
   it. In that unlikely case, I will be the first to recant those judgments.

The topic ‘Malicious code. Do NOT use’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/google-maps-by-daniel-martyn.svg)
 * [Google Map](https://wordpress.org/plugins/google-maps-by-daniel-martyn/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/google-maps-by-daniel-martyn/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/google-maps-by-daniel-martyn/)
 * [Active Topics](https://wordpress.org/support/plugin/google-maps-by-daniel-martyn/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/google-maps-by-daniel-martyn/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/google-maps-by-daniel-martyn/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Koobenhoff](https://wordpress.org/support/users/koobenhoff/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/malicious-code-do-not-use/)