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

Regular expression problem #52

Closed sftrwo closed 5 years ago

sftrwo commented 5 years ago

Regular expressions may not be perfect enough, some urls cannot match. for example: var url=get_path_url("?mod=admin&act=login&method=ajax);

If I put index.php in front of "?", I can match it. for example: var url=get_path_url("index.php?mod=admin&act=login&method=ajax);

GerbenJavado commented 5 years ago

This is expected behaviour since the latter Url will be hard to catch, you are more than welcome to write support for it that doesn't introduce many false positives.