Re:How I Hacked Facebook’s Secure Files Transfer Service for...
by maqr on Tuesday January 08, 2013 @12:27PM
(#5027201)
I wish he'd gone down this route further. It looks like there's code at the top of the file that "decrypts" (decodes?) the contents of the PHP file. I'd be curious why he felt this wasn't worth reversing.
I'm also curious if there's a way to dump 'disassembled' PHP after it's been loaded into the PHP processor. If it's going through eval() at the end, then shouldn't the plain-text source be available in a string somewhere?
Re:How I Hacked Facebook’s Secure Files Transfer Service for...
by 0x0 on Tuesday January 08, 2013 @12:39PM
(#5027274)
I believe these obfuscators work by forcing you to install a binary-only .so zend extension in php.ini, which intercepts these encoded files. The files themselves should decode to already-halfway-parsed PHP opcodes or so, which is probably injected into the PHP/Zend virtual machine.
Figuring out the encoding scheme is probably a lot of boring disassembly work, which in the end just lets you decode a bunch of PHP opcodes which themselves would take a lot of work to make sense of.
But perhaps the Vulcan Logic Dumper could help out a little bit. http://derickrethans.nl/projects.html#vld
Does he just mean "this version doesn't have a readily available dissassembler yet"? Even if they chose the path of compiling to native code, if you own the box, it can't be that hard to get the code.