├── README.md └── set-all.sh /README.md: -------------------------------------------------------------------------------- 1 | gfx will make easier to manage gf patterns its a forked updated version of tomonnom's gf:
2 | ```go install github.com/dwisiswant0/gfx@latest``` 3 | 4 | `./set-all.sh` will set all the gf patterns from the repo list bellow to your path `"$HOME/.gf"` 5 | 6 | https://github.com/tomnomnom/gfdecos 7 | 8 | https://github.com/r00tkie/grep-pattern 9 | 10 | https://github.com/mrofisr/gf-patterns 11 | 12 | https://github.com/robre/gf-patterns 13 | 14 | https://github.com/1ndianl33t/Gf-Patterns 15 | 16 | https://github.com/dwisiswant0/gf-secrets 17 | 18 | https://github.com/bp0lr/myGF_patterns 19 | 20 | https://github.com/cypher3107/GF-Patterns 21 | 22 | https://github.com/Matir/gf-patterns 23 | 24 | https://github.com/Isaac-The-Brave/GF-Patterns-Redux 25 | 26 | https://github.com/arthur4ires/gfPatterns 27 | 28 | https://github.com/R0X4R/Garud 29 | 30 | https://github.com/cypher3107/GF-Patterns 31 | 32 | https://github.com/seqrity/Allin1gf 33 | 34 | https://github.com/Jude-Paul/GF-Patterns-For-Dangerous-PHP-Functions 35 | 36 | https://github.com/NitinYadav00/gf-patterns 37 | 38 | https://github.com/scumdestroy/YouthCrew-GF-Patterns 39 | -------------------------------------------------------------------------------- /set-all.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # Set the target directory for the gf-patterns 4 | mkdir -p "$HOME/.gf" 5 | TARGET_DIR="$HOME/.gf" 6 | 7 | # Clone each repository and search for JSON patterns 8 | for repo in \ 9 | "https://github.com/tomnomnom/gfdecos" \ 10 | "https://github.com/r00tkie/grep-pattern" \ 11 | "https://github.com/mrofisr/gf-patterns" \ 12 | "https://github.com/robre/gf-patterns" \ 13 | "https://github.com/1ndianl33t/Gf-Patterns" \ 14 | "https://github.com/dwisiswant0/gf-secrets" \ 15 | "https://github.com/bp0lr/myGF_patterns" \ 16 | "https://github.com/cypher3107/GF-Patterns" \ 17 | "https://github.com/Matir/gf-patterns" \ 18 | "https://github.com/Isaac-The-Brave/GF-Patterns-Redux" \ 19 | "https://github.com/arthur4ires/gfPatterns" \ 20 | "https://github.com/R0X4R/Garud" \ 21 | "https://github.com/cypher3107/GF-Patterns" \ 22 | "https://github.com/seqrity/Allin1gf" \ 23 | "https://github.com/Jude-Paul/GF-Patterns-For-Dangerous-PHP-Functions" \ 24 | "https://github.com/NitinYadav00/gf-patterns" \ 25 | "https://github.com/scumdestroy/YouthCrew-GF-Patterns" 26 | do 27 | # Check if the repository is public 28 | if curl -s -I "$repo" | grep -q "HTTP/.* 200"; then 29 | # Clone the repository with --depth 1 option to only download the latest commit 30 | echo "Cloning $repo" 31 | git clone --depth 1 "$repo" 32 | 33 | # Search for JSON patterns recursively 34 | find . -name "*.json" -exec mv {} "$TARGET_DIR" \; 2>/dev/null 35 | find . -name "*.JSON" -exec mv {} "$TARGET_DIR" \; 2>/dev/null 36 | find . -name "*.geojson" -exec mv {} "$TARGET_DIR" \; 2>/dev/null 37 | find . -name "*.GeoJSON" -exec mv {} "$TARGET_DIR" \; 2>/dev/null 38 | 39 | # Remove the cloned repository 40 | echo "Removing $repo" 41 | rm -rf $(basename "$repo") 42 | else 43 | echo "$repo is no longer public or has been deleted, skipping." 44 | fi 45 | done 46 | --------------------------------------------------------------------------------