lanmaster53 / recon-ng-marketplace

Official module repository for the Recon-ng Framework.
GNU General Public License v3.0
222 stars 91 forks source link

bing_domain_web.py recon module not working #249

Open Enuma029 opened 4 months ago

Enuma029 commented 4 months ago

Module Name Which module is affected? https://github.com/lanmaster53/recon-ng-marketplace/blob/master/modules/recon/domains-hosts/bing_domain_web.py

Bug Description The module bing_domain_web.py does not seem to provide any results. The root cause is most likely the change of the search results formatting of the Bing search engine leading to non-matching regular expression (code line 23).

I was able to make the recon module providing some results by replacing the original regex pattern with the following reflecting the current structure of the Bing search results:

pattern = f'<cite>https?://([a-z0-9\.]*)\.{domain}[a-z0-9/?=]*(?=</cite>)'

However, I am not sure this interim fix is bulletproof.