Skip to content

Instantly share code, notes, and snippets.

@1lastBr3ath
Last active September 29, 2024 11:07
Show Gist options
  • Select an option

  • Save 1lastBr3ath/85829d350cd19304e40ffdb2f73b73d7 to your computer and use it in GitHub Desktop.

Select an option

Save 1lastBr3ath/85829d350cd19304e40ffdb2f73b73d7 to your computer and use it in GitHub Desktop.

Revisions

  1. 1lastBr3ath renamed this gist Mar 11, 2018. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion linkfinder → linkfinder.md
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,13 @@
    - Navigate to page from where you want to extract links
    - Open your browser's console and paste the following ;
    ```js
    document.querySelectorAll('script[src]').forEach((i)=>document.write(i.src+'<br/>'))
    ```
    - Copy all links and write it into a file (ex: jslinks.txt)
    - Open your terminal and cd to directory where you've downloaded LinkFinder
    - Run the following command
    for i in $(cat jslinks.txt); do python linkfinder.py -i "$i" -o cli; done | tee -a output.html
    ```bash
    while IFS= read link; do python linkfinder.py -i "$link" -o cli; done < jslinks.txt | tee -a output.html
    ```

    You have it- all unique paths only :)
  2. 1lastBr3ath created this gist Sep 11, 2017.
    9 changes: 9 additions & 0 deletions linkfinder
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    - Navigate to page from where you want to extract links
    - Open your browser's console and paste the following ;
    document.querySelectorAll('script[src]').forEach((i)=>document.write(i.src+'<br/>'))
    - Copy all links and write it into a file (ex: jslinks.txt)
    - Open your terminal and cd to directory where you've downloaded LinkFinder
    - Run the following command
    for i in $(cat jslinks.txt); do python linkfinder.py -i "$i" -o cli; done | tee -a output.html

    You have it- all unique paths only :)