tomnomnom / meg

Fetch many paths for many hosts - without killing the hosts
MIT License
1.59k stars 266 forks source link

meg + gf = megf enhancement #53

Open jthack opened 4 years ago

jthack commented 4 years ago

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.