Thursday, May 19, 2016

Using grep to find multiple keywords in multiple directories recursively

Using grep to find multiple keywords in multiple directories recursively

using the following command you will be able to find multiple keywords in multiple directories recursively

Command:
egrep -rwn

Example:
egrep -rwn '64.exe|m64.exe|s64.exe|s.aspx|sm.exe|ps.exe|vnc.exe|sm.bat|bruter.exe|kiss.exe|pl.exe|A.exe|xcmd.exe|share.exe|Unet.exe|splitter.exe|m32.exe|lsass.exe|wsc-x64.exe|psexec.exe|w.aspx|wce.exe|sexe.cab' /home/security/


Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More