Skip to content

meg + gf = megf enhancement#53

Open
jthack wants to merge 2 commits intotomnomnom:masterfrom
jthack:megf
Open

meg + gf = megf enhancement#53
jthack wants to merge 2 commits intotomnomnom:masterfrom
jthack:megf

Conversation

@jthack
Copy link
Copy Markdown

@jthack jthack commented Oct 2, 2019

I added a switch which will allow meg to only save the file if the gf expressions finds a hit. This is really useful if you're looking for a specific thing across a very large data set. Or if you're looking for something in the index or js files of many sites. It removes almost all false positives.

flag:
-g

example:
put this xml.json in ~/.gf:

{
    "flags": "-Hnri",
    "pattern": "xml version"
}

and then run:
meg -s 200 -g xml /web.config

It won't save off all those fake 200s.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant