GerbenJavado / LinkFinder

A python script that finds endpoints in JavaScript files
https://gerbenjavado.com/discovering-hidden-content-using-linkfinder
MIT License
3.64k stars 588 forks source link

TypeError: string indices must be integers, not str #54

Closed vectorinfosec closed 5 years ago

vectorinfosec commented 5 years ago
python linkfinder.py -i https://www.fly.com/  -b -o cli
Traceback (most recent call last):
  File "linkfinder.py", line 326, in <module>
    file = url['js']
TypeError: string indices must be integers, not str
EdOverflow commented 5 years ago

Drop the -b flag and everything should work. The -b flag is reserved for when you want to supply LinkFinder with a Burp file as input as stated in the README.md:

Toggle to use when inputting a Burp 'Save selected' file containing multiple JS files

EdOverflow commented 5 years ago

@GerbenJavado, might be worth throwing an error whenever the -b flag is used in conjunction with a URL from stdin.

vectorinfosec commented 5 years ago

sorry, wrongly i typed -b instead of -d. thanks