Watson icon indicating copy to clipboard operation
Watson copied to clipboard

keyNotFoundException issue

Open infosecx0 opened this issue 4 years ago • 6 comments

C:\Users\dadp0\Desktop\AV Evasion projects\Watson-master\Watson\bin\Debug>Watson.exe
  __    __      _
 / / /\ \ \__ _| |_ ___  ___  _ __
 \ \/  \/ / _` | __/ __|/ _ \| '_ \
  \  /\  / (_| | |_\__ \ (_) | | | |
   \/  \/ \__,_|\__|___/\___/|_| |_|

                           v2.0

                   @_RastaMouse


Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Watson.Program.Main(String[] args) in C:\Users\dadp0\Desktop\AV Evasion projects\Watson-master\Watson\Program.cs:line 25

infosecx0 avatar Jan 25 '21 09:01 infosecx0

:\Users\dadp0\Desktop\AV Evasion projects\Watson-master\Watson\bin\Debug>Watson.exe

/ / /\ \ __ | | ___ ___ _ __ \ / / / ` | __/ _|/ _ | ' \ /\ / (| | |___ \ () | | | | / / __,|__|**/**/|| ||

                       v2.0

               @_RastaMouse

Unhandled Exception: System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary. at System.ThrowHelper.ThrowKeyNotFoundException() at System.Collections.Generic.Dictionary`2.get_Item(TKey key) at Watson.Program.Main(String[] args) in C:\Users\dadp0\Desktop\AV Evasion projects\Watson-master\Watson\Program.cs:line 25

Had the same issue, fixed by adding { 19042, "20H2" } to the list of supported versions.

dvs17 avatar Feb 04 '21 12:02 dvs17

Yeah, but none of the vulnerability definitions has entries for 19042 / 20H2, so it will always report no vulnerabilities found. The actual solution is to throw an OperatingSystemNotSupported Exception or just print a message to the console and return.

rasta-mouse avatar Feb 04 '21 13:02 rasta-mouse

Didn't mean to close...

rasta-mouse avatar Feb 04 '21 13:02 rasta-mouse

The "solution" is to stop running the tool on versions of Windows that the README doesn't say are supported...

rasta-mouse avatar Feb 05 '21 14:02 rasta-mouse

ups sorry, you can delete my post x)

von-der-eretier avatar Feb 05 '21 14:02 von-der-eretier

Thanks, please keep this up. I had the exact same issue. its useful, if i have not seen this, I would post this issue again.

Kinny092 avatar Jun 12 '21 07:06 Kinny092