[
  {
    "path": "README.md",
    "content": "gfx will make easier to manage gf patterns its a forked updated version of tomonnom's gf:<br>\n```go install github.com/dwisiswant0/gfx@latest```\n\n`./set-all.sh` will set all the gf patterns from the repo list bellow to your path `\"$HOME/.gf\"`\n\nhttps://github.com/tomnomnom/gfdecos\n\nhttps://github.com/r00tkie/grep-pattern\n\nhttps://github.com/mrofisr/gf-patterns\n\nhttps://github.com/robre/gf-patterns\n\nhttps://github.com/1ndianl33t/Gf-Patterns\n\nhttps://github.com/dwisiswant0/gf-secrets\n\nhttps://github.com/bp0lr/myGF_patterns\n\nhttps://github.com/cypher3107/GF-Patterns\n\nhttps://github.com/Matir/gf-patterns\n\nhttps://github.com/Isaac-The-Brave/GF-Patterns-Redux\n\nhttps://github.com/arthur4ires/gfPatterns\n\nhttps://github.com/R0X4R/Garud\n\nhttps://github.com/cypher3107/GF-Patterns\n\nhttps://github.com/seqrity/Allin1gf\n\nhttps://github.com/Jude-Paul/GF-Patterns-For-Dangerous-PHP-Functions\n\nhttps://github.com/NitinYadav00/gf-patterns\n\nhttps://github.com/scumdestroy/YouthCrew-GF-Patterns\n"
  },
  {
    "path": "set-all.sh",
    "content": "#!/bin/bash\n\n# Set the target directory for the gf-patterns\nmkdir -p \"$HOME/.gf\"\nTARGET_DIR=\"$HOME/.gf\"\n\n# Clone each repository and search for JSON patterns\nfor repo in \\\n    \"https://github.com/tomnomnom/gfdecos\" \\\n    \"https://github.com/r00tkie/grep-pattern\" \\\n    \"https://github.com/mrofisr/gf-patterns\" \\\n    \"https://github.com/robre/gf-patterns\" \\\n    \"https://github.com/1ndianl33t/Gf-Patterns\" \\\n    \"https://github.com/dwisiswant0/gf-secrets\" \\\n    \"https://github.com/bp0lr/myGF_patterns\" \\\n    \"https://github.com/cypher3107/GF-Patterns\" \\\n    \"https://github.com/Matir/gf-patterns\" \\\n    \"https://github.com/Isaac-The-Brave/GF-Patterns-Redux\" \\\n    \"https://github.com/arthur4ires/gfPatterns\" \\\n    \"https://github.com/R0X4R/Garud\" \\\n    \"https://github.com/cypher3107/GF-Patterns\" \\\n    \"https://github.com/seqrity/Allin1gf\" \\\n    \"https://github.com/Jude-Paul/GF-Patterns-For-Dangerous-PHP-Functions\" \\\n    \"https://github.com/NitinYadav00/gf-patterns\" \\\n    \"https://github.com/scumdestroy/YouthCrew-GF-Patterns\"\ndo\n  # Check if the repository is public\n    if curl -s -I \"$repo\" | grep -q \"HTTP/.* 200\"; then\n        # Clone the repository with --depth 1 option to only download the latest commit\n        echo \"Cloning $repo\"\n        git clone --depth 1 \"$repo\"\n\n        # Search for JSON patterns recursively\n        find . -name \"*.json\" -exec mv {} \"$TARGET_DIR\" \\; 2>/dev/null\n        find . -name \"*.JSON\" -exec mv {} \"$TARGET_DIR\" \\; 2>/dev/null\n        find . -name \"*.geojson\" -exec mv {} \"$TARGET_DIR\" \\; 2>/dev/null\n        find . -name \"*.GeoJSON\" -exec mv {} \"$TARGET_DIR\" \\; 2>/dev/null\n\n        # Remove the cloned repository\n        echo \"Removing $repo\"\n        rm -rf $(basename \"$repo\")\n    else\n        echo \"$repo is no longer public or has been deleted, skipping.\"\n    fi\ndone\n"
  }
]