This is tomnomnom's tool gf so all credit goes to him, I just modified the code according to my requirements.
go install github.com/rix4uni/gf@latest
wget https://github.com/rix4uni/gf/releases/download/v0.0.2/gf-linux-amd64-0.0.2.tgz
tar -xvzf gf-linux-amd64-0.0.2.tgz
rm -rf gf-linux-amd64-0.0.2.tgz
mv gf ~/go/bin/gf
Or download binary release for your platform.
git clone --depth 1 github.com/rix4uni/gf.git
cd gf; go install
Usage of gf: --list list vulnerability types or priority groups --no-color disable colored output --remaining show unmatched URLs --silent Silent mode. --version Print the version of the tool and exit. --vuln string vulnerability type (xss, sqli, lfi)gf --silent --listsstisecret_extsecret_subsxsssqlilfissrfsecret_urlrceidorredirectgf --silent --list --vuln xss
# Priority1 Flags: -aiE Pattern: (\?|&)(q=|s=|search=|query=|keyword=|text=|name=|value=|input=|term=)
# Priority2 Flags: -aiE Pattern: (\?|&)(msg=|message=|comment=|content=|title=|desc=|description=|body=|subject=|label=)
# Priority3 Flags: -aiE Pattern: (\?|&)(id=|page=|type=|category=|lang=|theme=|sort=|filter=|view=|error=)cat urls.txt | urldedupe -s | gf --silent --vuln xsscat urls.txt | gf --silent --vuln secret_ext
