Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/1ndianl33t/Gf-Patterns
GF Paterns For (ssrf,RCE,Lfi,sqli,ssti,idor,url redirection,debug_logic, interesting Subs) parameters grep
https://github.com/1ndianl33t/Gf-Patterns
Last synced: about 2 months ago
JSON representation
GF Paterns For (ssrf,RCE,Lfi,sqli,ssti,idor,url redirection,debug_logic, interesting Subs) parameters grep
- Host: GitHub
- URL: https://github.com/1ndianl33t/Gf-Patterns
- Owner: 1ndianl33t
- License: mit
- Created: 2020-04-15T12:41:09.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-09-13T15:04:14.000Z (4 months ago)
- Last Synced: 2024-10-23T05:14:20.817Z (3 months ago)
- Homepage:
- Size: 82 KB
- Stars: 1,207
- Watchers: 28
- Forks: 278
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: License.md
Awesome Lists containing this project
- WebHackersWeapons - Gf-Patterns - Patterns?label=%20)||![linux](/images/linux.png)![macos](/images/apple.png)![windows](/images/windows.png)| (Weapons / Tools)
- awesome-hacking-lists - 1ndianl33t/Gf-Patterns - GF Paterns For (ssrf,RCE,Lfi,sqli,ssti,idor,url redirection,debug_logic, interesting Subs) parameters grep (Others)
README
# Gf-Patterns V 1.9
## [GF](https://github.com/tomnomnom/gf) By [![Twitter](https://img.shields.io/badge/[email protected])](https://twitter.com/TomNomNom)
A wrapper around grep, to help you grep for things
# installation
[Go Path Setup](https://github.com/golang/go/wiki/SettingGOPATH)
If you've got Go installed and configured you can install `waybackurls & Gf` with:
```bash
go install github.com/tomnomnom/waybackurls@latest
```
Now download the gf tool for go lang 17 (that is go1.17) and may be above
```bash
go install github.com/tomnomnom/gf@latest
```
Or download the gf tool for go lang 16 (that is go1.16) and below
```bash
go get -u github.com/tomnomnom/gf
```
If you've installed using `go install`, you can enable auto-completion to your `.bashrc` like this:```bash
echo 'source $GOPATH/pkg/mod/github.com/tomnomnom/[email protected]/gf-completion.bash' >> ~/.bashrc
```
If you've installed using `go get`, you can enable auto-completion to your `.bashrc` like this:```bash
echo 'source $GOPATH/src/github.com/tomnomnom/gf/gf-completion.bash' >> ~/.bashrc
```
Note that you'll have to restart your terminal, or run `source ~/.bashrc` for the changes to
take effect.To get started quickly, you can copy the example pattern files to `~/.gf` like this:
```bash
mkdir .gf
```
If you've installed using `go install`, you can copy the example pattern files to `~/.gf` like this:
```bash
cp -r $GOPATH/pkg/mod/github.com/tomnomnom/[email protected]/examples ~/.gf
```
If you've installed using `go get`, you can copy the example pattern files to `~/.gf` like this:
```bash
cp -r $GOPATH/src/github.com/tomnomnom/gf/examples ~/.gf
```
**MY Gf Patterns installation**
```bash
git clone https://github.com/1ndianl33t/Gf-Patterns
```To get started quickly, you can copy the example pattern files to `~/.gf` like this:
```bash
mkdir .gf
```
```bash
mv ~/Gf-Patterns/*.json ~/.gf
```
**Use example**
```bashcat subdomains.txt | waybackurls | sort -u >> waybackdata | gf ssrf | tee -a ssfrparams.txt
cat waybackdata | gf redirect | tee -a redirect.txt
```
### Pattern FilesThe pattern definitions are stored in `~/.gf` as little JSON files that can be kept under version control:
**gf ssrf**
```bash
▶ cat ~/.gf/ssrf.json{
"flags": "-iE",
"patterns": ["access",
"admin",
"dbg",
"debug",
"edit",
"grant",
"test",
"alter",
"clone",
"create",
"delete",
"disable",
"enable",
"exec",
"execute",
"load",
"make",
"modify",
"rename",
"reset",
"shell",
"toggle",
"adm",
"root",
"cfg",
"dest",
"redirect",
"uri",
"path",
"continue",
"url",
"window",
"next",
"data",
"reference",
"site",
"html",
"val",
"validate",
"domain",
"callback",
"return",
"page",
"feed",
"host",
"port",
"to",
"out",
"view",
"dir",
"show",
"navigation",
"open"
]
}```
**gf redirect**
```bash
▶ cat ~/.gf/redirect{
"flags": "-iE",
"patterns": [
"forward=",
"dest=",
"redirect=",
"uri=",
"path=",
"continue=",
"url=",
"window=",
"to=",
"out=",
"view=",
"dir=",
"show=",
"navigation=",
"Open=",
"file=",
"val=",
"validate=",
"domain=",
"callback=",
"return=",
"page=",
"feed=",
"host=",
"port=",
"next=",
"data=",
"reference=",
"site=",
"html="
]
}```
***gf rce***
```bash
▶ cat ~/.gf/rce.json
{
"flags": "-iE",
"patterns": [
"daemon",
"upload",
"dir",
"execute",
"download",
"log",
"ip",
"cli",
"cmd"
]
}
```
***Gf idor***```bash
▶ cat ~/.gf/idor.json
{
"flags": "-iE",
"patterns": ["id",
"user",
"account",
"number",
"order",
"no",
"doc",
"key",
"email",
"group",
"profile",
"edit",
"report"
]
}```
***Gf Sqli***
```bash
▶ cat ~/.gf/sqli.json
{
"flags": "-iE",
"patterns": ["id",
"select",
"report",
"role",
"update",
"query",
"user",
"name",
"sort",
"where",
"search",
"params",
"process",
"row",
"view",
"table",
"from",
"sel",
"results",
"sleep",
"fetch",
"order",
"keyword",
"column",
"field",
"delete",
"string",
"number",
"filter"
]
}
```
***Gf LFI***
```bash
▶ cat ~/.gf/lfi.json
{
"flags": "-iE",
"patterns": ["file",
"document",
"folder",
"root",
"path",
"pg",
"style",
"pdf",
"template",
"php_path",
"doc"
]
}
```***Gf ssti***
```bash
▶ cat ~/.gf/ssti.json{
"flags": "-iE",
"patterns": [
"template",
"preview",
"id",
"view",
"activity",
"name",
"content",
"redirect"
]
}
```***Gf debug_logic***
```bash
▶ cat ~/.gf/debug_logic.json
{
"flags": "-iE",
"patterns": ["access",
"admin",
"dbg",
"debug",
"edit",
"grant",
"test",
"alter",
"clone",
"create",
"delete",
"disable",
"enable",
"exec",
"execute",
"load",
"make",
"modify",
"rename",
"reset",
"shell",
"toggle",
"adm",
"root",
"cfg",
"config"
]
}
```### Donations
You can encourage me to contribute more to the open source with donations.- Paypal - [https://www.paypal.me/1ndianl33t](https://www.paypal.me/1ndianl33t)
- GooglePay,Paytm -
`8085778875`
# Credit
[![Twitter](https://img.shields.io/badge/[email protected])](https://twitter.com/TomNomNom)
[Bugcrowd HUNT](https://github.com/bugcrowd/HUNT)
[![Twitter](https://img.shields.io/badge/[email protected])](https://twitter.com/1ndianl33t)# Contributers
@victoni `added more redirect parameters`@s0meguy1 `redirect & ssrf pattern Added additional filters`
# Contact
[![Twitter](https://img.shields.io/badge/[email protected])](https://twitter.com/1ndianl33t)