rasta-mouse / Watson

Enumerate missing KBs and suggest exploits for useful Privilege Escalation vulnerabilities

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

keyNotFoundException issue

infosecx0 opened this issue · 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
commented

:\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.

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.

Didn't mean to close...

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

ups sorry, you can delete my post x)

commented

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.