Skip to content

Instantly share code, notes, and snippets.

@dinhkhanh
Last active July 19, 2016 16:39
Show Gist options
  • Save dinhkhanh/0366732c77bddd20f8827c7bedb2b298 to your computer and use it in GitHub Desktop.
Save dinhkhanh/0366732c77bddd20f8827c7bedb2b298 to your computer and use it in GitHub Desktop.
Search backdoor (malicious codes) in directories
#bin/bash
grep -RPn "(passthru|shell_exec|system|phpinfo|base64_decode|chmod|mkdir|fopen|fclose|readfile|php_uname|eval|tcpflood|udpflood|edoced_46esab) *\(" /path/to/source/dir/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment