Skip to content

Instantly share code, notes, and snippets.

@gh0sh
Last active November 30, 2022 10:02
Show Gist options
  • Save gh0sh/1d1d9a65aac05a8bad40e92ff25ab4ec to your computer and use it in GitHub Desktop.
Save gh0sh/1d1d9a65aac05a8bad40e92ff25ab4ec to your computer and use it in GitHub Desktop.

Revisions

  1. gh0sh revised this gist Jun 26, 2020. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions gf-and-gau-automate.sh
    Original file line number Diff line number Diff line change
    @@ -6,8 +6,9 @@
    # - gf (go get -u github.com/tomnomnom/gf)
    # - Gf-Patterns (https://github.com/1ndianl33t/Gf-Patterns) - Read the README.md for how to copy json file to ~/.gf/

    ls ~/.gf/*.json > patterns
    cat patterns | cut -d "." -f 1 > gf-patterns
    cd ~/.gf
    ls *.json > ~/patterns
    cat ~/patterns | cut -d "." -f 1 > ~/gf-patterns

    mkdir gfpatterns
    mkdir temp
  2. gh0sh created this gist Jun 17, 2020.
    21 changes: 21 additions & 0 deletions gf-and-gau-automate.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,21 @@
    #!/usr/bin/env bash
    #
    # Requirements
    # - Golang (for complete bug bounty tools, clone this https://github.com/x1mdev/ReconPi)
    # - gau (go get -u github.com/lc/gau)
    # - gf (go get -u github.com/tomnomnom/gf)
    # - Gf-Patterns (https://github.com/1ndianl33t/Gf-Patterns) - Read the README.md for how to copy json file to ~/.gf/

    ls ~/.gf/*.json > patterns
    cat patterns | cut -d "." -f 1 > gf-patterns

    mkdir gfpatterns
    mkdir temp
    cd temp
    echo example.com | gau | sort -u >> waybackdata # if you have subdomains list, can use "cat subdomains.txt | gau | sort -u >> waybackdata"
    for patterns in $(~/gf-patterns);
    do
    cat * | gf $patterns | tee -a ../gfpatterns/$patterns.txt;
    done
    cd ../gfpatterns
    find . -iname "*.txt" -size 0 -delete