I am trying to build some sort of a javascript "antivirus" that would try to catch particular function calls.
So lets say I've got some random javascript file, can I check if it doesn't use function jQuery.trim()
(just for example sake) anywhere?
It seems like pretty complicated task, plus there are eval
and base encodings which could transform any code to a pile of characters.
Would it be possible to write something like this in PHP? Are there any libraries and tools that could help?