maurosoria / dirsearch

Web path scanner
11.57k stars 2.29k forks source link

Add backup file auto detect #1375

Open NEX-S opened 1 month ago

NEX-S commented 1 month ago

is it possible to add a backup file auto detect? for example: dirsearch found test.php then search:

using suffix / prefix will add fix to all content in dict, but i want dirsearch found file then add fix to it (not add to all content in dict)

nrathaus commented 1 month ago

I think we need to modify def match_callback(self, response): inside controller.py

nrathaus commented 1 month ago

We need to check response.status for 200 (HTTP OK)

Then add based on the filename found and extensions (such as suggested above) to the queue

nrathaus commented 1 month ago

I am not sure if it is or not allowed to add to self.dictionary (Inside controller) additional items after it already started fuzzing

nrathaus commented 1 month ago

I noticed that class Dictionary doesn't allow adding items to it manually via a func

nrathaus commented 1 month ago

https://github.com/maurosoria/dirsearch/pull/1376

NEX-S commented 1 month ago

appreciate for your pr!!!