Skip to content

Grepify v2 profiles

Felix Ingram edited this page May 10, 2013 · 7 revisions

Grepify v2 profiles were introduced in version 1.3. These profiles support a number of enhancements over the basic v1 profiles. Namely:

  • Defined extensions supported by the profile
  • Friendly names for the specific check
  • Description of why the user should be concerned with the hit

These files have extension of .grepifyv2 and are stored in the directory relative to the binary:

  • .\Grepify.Profiles

The skeleton of the XML file is as follows:

<Grepify Version="2.0">

	<Extensions></Extensions>
	
	<Check>
		<Regex></Regex>
		<Friendly></Friendly>
		<Description></Description>
	</Check>
	
</Grepify>

An example of the XML file is as follows:

<Grepify Version="2.0">

	<Extensions>*.cpp;*.c</Extensions>
  	
	<Check>
		<Regex>Ninja</Regex>
		<Friendly>Looking for Ninjas</Friendly>
		<Description>Ninja's are bad</Description>
	</Check>
	
	<Check>
		<Regex>\sstrcpy\s*</Regex>
		<Friendly>String copy</Friendly>
		<Description>String copy's are bad</Description>
	</Check>
	
</Grepify>