[bing_linkedin_cache] module error

Issue #280 resolved
Ben Hoffman
created an issue

I am getting an error with the [bing_linkedin_cache] module - [!] FrameworkException: 401: Access denied due to invalid subscription key. Make sure to provide a valid key for an active subscription. File "/usr/share/recon-ng/recon/core/module.py", line 351, in search_bing_api.

I have verified the API key works using - https://docs.microsoft.com/en-us/azure/cognitive-services/bing-web-search/tutorial-bing-web-search-single-page-app-source

Any recommendation ? Thank you.

Comments (11)

  1. Ben Hoffman reporter

    I have not changed anything in recon-ng since my query. I am now getting this message -

    [!] URLError: <urlopen error [Errno -2] Name or service not known>
    File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open.
    

    I may had a VPN running when I created the issue, and now it is not running. I also may have changed my AZURE permissions since I created the Issue. In any case, the API key is entered correctly, unless there is some issue with copy/paste.

    Thank you.

  2. Brian King

    Sorry - I was hoping it was easier... Microsoft has replaced their Cognitive Services API with something whose main purpose seems to be to prevent people (at least people like me) from using it.

    My own Bing API key - the one I see in my Azure dashboard as the current key : the one I just now regenerated - gives me the same error you were getting in your initial report.

    I don't know what to make of your latest error. But it looks like a network connectivity or DNS issue. Maybe? I'm just guessing.

    If I figure out how to get working API keys out of Bing, I'll share the steps.

  3. Ben Hoffman reporter

    I have to apologize. A network issue on my side is causing the last error message. Sorry for the trouble. I hope to sort out the Bing issue though! Thanks.

  4. dorsec

    Curious if anyone had any luck resolving this. I'm getting the same error and also verified the API key using the Microsoft link provided by Ben.

  5. Tim Tomes repo owner

    Yep. 401 goes away and the module works when you update your bing API key to the latest version. Keep in mind that they are a trial, so they aren't going to last forever.

  6. Oscar J. Delgado

    I just tested and the v7 key is functional with the latest version of the module. Please note that some images of kali/parrot have the old module (v5 key) installed by default.

  7. Tim Tomes repo owner

    Yeah, there's a lot of projects that use old versions of tools. For instance, I kicked out a new version of Recon-ng earlier this week and Kali hasn't yet picked up the new tag and updated their repos. It could be days, weeks, months or never. So use those distros knowing that is a possibility. My recommendation is when you see that is:

    Issue Decision.png

  8. Log in to comment