in the directory /data/repo/, there are many .php files.

I want to know whether in the files there is eval() function.

how can I check ?

because I want to check whether there is One word Trojan under a directory.

My OS is CentOS 7.2.

1 Answer 1


In the folder run grep -lr --include=*.php "eval" .

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .