Not long ago I asked for help in this forum because two of my sites were hacked and after thinking about what happened and how I noticed that my site were hacked I started wondering why. What happened is this, one morning I woke up and checked one of my sites that uses WordPress and to my surprise the index page had a picture that said hacked by bla, bla… the same thing happened with my second site except that this one wasn’t using WordPress this one only had a PHP contact form and was done by a different hacker, here is where my question came.
Why would the hacker alert me? Wouldn’t be easier to do the hack without letting me know and I would probably have never noticed it.
Does it mean that the index page was the only file they could have access to and they just wanted to let me know about their success?
Are there some occasions where the only file hacked is the index file?
Of course the reason I’m asking is because I haven’t find any malicious scripts for the site that wasn’t using WordPress, and I’m trying to understand where the hacking thing came from, may be from my hosting provider?
Thanks a lot!