maurosoria / dirsearch

Web path scanner
11.85k stars 2.3k forks source link

Remove DOT when no-extension #70

Closed adon90 closed 6 years ago

adon90 commented 6 years ago

Let's say you want to try aspx,asp and no extension. When you try this: -e asp,aspx,, it tries, -let's say the current word is service-:

service.asp
service.aspx
service.
service/

You want to look for:

service.asp
service.aspx
service
service/

So these two lines do the trick: dirsearch/lib/connection/Requester.py file:

if url.endswith('.'):
    url = url[:-1]

I added it before the request: lines 130-131

dirsearch

;)

maurosoria commented 6 years ago

Thanks adon90,

I pushed a fix for this issue. It's not the one you provided because I thought the Requester class is not the responsable of managing this situation.

adon90 commented 6 years ago

Hey! No problem ;) I just saw your commit. Yeah The Requested class is not the responsable, I think you received my pull request becase in there I did almost the same change you did I would like you to see it, because I also added a --filter-size option: https://github.com/adon90/dirsearch Regards!

2017-11-15 0:54 GMT+01:00 Mauro Soria notifications@github.com:

Thanks adon90,

I pushed a fix for this issue. It's not the one you provided because I thought the Requester class is not the responsable of managing this situation.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/maurosoria/dirsearch/issues/70#issuecomment-344439970, or mute the thread https://github.com/notifications/unsubscribe-auth/AGyTK25mFTorgKm_FypPWTvZFtcKASx5ks5s2igvgaJpZM4QCgUS .