Monthly Archives: February 2013

I beat Facebook’s identifying friends’ photo verification

…well sort of. 🙂

UPDATE OCTOBER 10, 2013: THIS HACK IS NOT WORKING ANYMORE. BROWSE COMMENTS FOR MY EXPLANATION

So recently someone asked me if I know anything about restoring facebook accounts. She said facebook kind of locked her account. She added that she could still use her login credentials to login to facebook but after the login page she is greeted by a certain account verification process. She described it as identifying your friends on photos. I told her that i haven’t encountered anything like that. I asked her if she violated any of the facebooks terms and she said maybe. She said maybe because she used a false name and that maybe because she carelessly confirm friend requests even to people she does not personally know. So being the IT guy I told her i’ll see what i can do but i won’t promise anything. I saw the worry on her face and the look of regret for losing a good year of data when she heard what i said.

Ok, so what I did is, just like everyone else(yes, you got it) I googled about it. I was surprise that there are a LOT of people complaining about this. Some reasoned that they have like 5000 friends and that they can’t memorize the faces of them all. Some also said the pictures that facebook asked to be indentified are not faces but places or things which of course makes it impossible for a user to identify. So to cut the long story short, I have not found any solution online. I’m not sure though, maybe it’s not just my google day. You know there are days which you are lucky to find quickly the solution using google and there are days that no matter what you do it’s not just there.

I don’t want to disappoint her. I need to think of a way to beat facebook’s system. While at the same time the pessimistic side of me kept saying that facebooks system is fool proof. I took it as a challenge. It was a good mind boggling problem solving session. I then formulate an approach and then because i know how to code I used it to my advantage. So if you ask me if I beat that feature of facebook, I can proudly say yes. Continue reading

malicious code on 1st line of all files

Selection_050

If you somehow came to this post searching for solution about that pesky malicious code which inserts some poorly encrypted php code on the first line on all(in some cases only a few) of your php files, then you somehow came to the correct page. Why only somehow? Maybe because as of posting time I still can not determine which particular script is causing the insertion of the malicious codes. I know the malicious code varies from site to site and it’s done on different ways. Whatever it is, they seem successful at it or not so, because when they add that pesky code chances are the site will halt and thus their code will fail to execute so they are not really that smart afterall.

Ok so enough of the rantings, i’ve written a quick php code to remove the pesky malicious code on the  first line added to all of your php files. Continue reading