Tuesday, October 16, 2012

Find Class in .jar files

So I had a load of .jar files and was looking for a specific class that should be contain in one of them. I found you can run the following command to search for a class file:

find -name "*.jar" -exec sh -c 'unzip -l "{}" | grep -q <class name>' \; -print

Just replace <class name> with the class name e.g. 

find -name "*.jar" -exec sh -c 'unzip -l "{}" | grep -q HttpServletRequest' \; -print

Ref: http://unix.stackexchange.com/questions/25503/looking-for-a-java-class-in-a-set-of-jars-with-find-unzip-grep

Thursday, October 11, 2012

Microsoft Security Essentials and VMware

Note to self. Make sure you add exclusions to Security Essentials not to scan the vmdk amd vmem files:

Followers