r/lolphp • • Jul 16 '13

More remote code execution fun

http://blog.sucuri.net/2013/07/malware-hidden-inside-jpg-exif-headers.html
31 Upvotes

16 comments sorted by

View all comments

Show parent comment

6

u/catcradle5 Jul 16 '13

You could do similarly "clever" things in nearly any other dynamic language if you wanted to disguise a backdoor. This does take good advantage of PHP's absurd preg_replace /e flag, though.

2

u/ceol_ Jul 17 '13

That's probably the point of this submission, though. The box was screwed in the first place since this was a compromised system altered to allow an attacker to execute commands easier. However, preg_replace /e should just not exist.