Skip to content

Instantly share code, notes, and snippets.

@seqrity
Last active October 5, 2025 19:31
Show Gist options
  • Select an option

  • Save seqrity/d67608eb6372cd6f455bfeeefa77b9c2 to your computer and use it in GitHub Desktop.

Select an option

Save seqrity/d67608eb6372cd6f455bfeeefa77b9c2 to your computer and use it in GitHub Desktop.

Revisions

  1. seqrity revised this gist Oct 5, 2025. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion wordlist_from_js.sh
    Original file line number Diff line number Diff line change
    @@ -21,7 +21,7 @@ go install github.com/hakluke/haklistgen@latest
    echo "https://"$1 | subjs > jslinks.tmp

    ## Make jsfiles directory for storing js files
    mkdir jsfiles && wget --compression=gzip -i jslinks.tmp -P jsfiles
    mkdir jsfiles && wget --tries=3 --timeout=20 --retry-connrefused --compression=gzip -i jslinks.tmp -P jsfiles

    ## Read all js files and create wordlist by haklistgen
    cat jsfiles/*.js | js-beautify -i | haklistgen | sort -u > $1"_js_wordlist.txt"
  2. seqrity revised this gist Nov 14, 2021. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions wordlist_from_js.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,7 @@
    #! /bin/bash

    ## This script fetch js files from a domain name and make a wordlist by words in js files
    ## Credit: https://gist.github.com/aufzayed/6cabed910c081cc2f2186cd27b80f687

    ##### Install requirements #####
    ##### Before running this script you should install Go #####
  3. seqrity revised this gist Nov 14, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion wordlist_from_js.sh
    Original file line number Diff line number Diff line change
    @@ -14,7 +14,7 @@ apt install npm -y && npm install js-beautify
    ## Install haklistgen (https://github.com/hakluke/haklistgen)
    go install github.com/hakluke/haklistgen@latest


    ## Usage: ./wordlist_from_js.sh example.com

    ##Get address (https://www.example.com) and fetch js files by subjs then save in jslinks.tmp file
    echo "https://"$1 | subjs > jslinks.tmp
  4. seqrity revised this gist Nov 14, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion wordlist_from_js.sh
    Original file line number Diff line number Diff line change
    @@ -23,6 +23,6 @@ echo "https://"$1 | subjs > jslinks.tmp
    mkdir jsfiles && wget --compression=gzip -i jslinks.tmp -P jsfiles

    ## Read all js files and create wordlist by haklistgen
    cat jsfiles/*.js | js-beautify -i | haklistgen | sort -u >> $1"_js_wordlist.txt"
    cat jsfiles/*.js | js-beautify -i | haklistgen | sort -u > $1"_js_wordlist.txt"

    rm -rf jslinks.tmp jsfiles
  5. seqrity created this gist Nov 14, 2021.
    28 changes: 28 additions & 0 deletions wordlist_from_js.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,28 @@
    #! /bin/bash

    ## This script fetch js files from a domain name and make a wordlist by words in js files

    ##### Install requirements #####
    ##### Before running this script you should install Go #####

    ## Install subjs (https://github.com/lc/subjs)
    GO111MODULE=on go get -u -v github.com/lc/subjs

    ## Install js-beautify (https://github.com/beautify-web/js-beautify)
    apt install npm -y && npm install js-beautify

    ## Install haklistgen (https://github.com/hakluke/haklistgen)
    go install github.com/hakluke/haklistgen@latest



    ##Get address (https://www.example.com) and fetch js files by subjs then save in jslinks.tmp file
    echo "https://"$1 | subjs > jslinks.tmp

    ## Make jsfiles directory for storing js files
    mkdir jsfiles && wget --compression=gzip -i jslinks.tmp -P jsfiles

    ## Read all js files and create wordlist by haklistgen
    cat jsfiles/*.js | js-beautify -i | haklistgen | sort -u >> $1"_js_wordlist.txt"

    rm -rf jslinks.tmp jsfiles