Yeah, iirc use session object for post modules, client was for meterpreter scripts. They r pretty much identical, but session is the way to go

> On May 25, 2014, at 3:30, Meatballs1 <notifications@github.com> wrote:
> 
> In modules/post/windows/gather/enum_patches.rb:
> 
> > +      'KB2778930',  # MS13-005 hwnd_broadcast
> > +      'KB2850851',  # MS13-053 schlamperei
> > +      'KB2870008'   # MS13-081 track_popup_menu
> > +    ]
> > +
> > +    datastore['KB'].split(',').each do |kb|
> > +      patches << kb.strip
> > +    end
> > +
> > +    if datastore['MSFLOCALS']
> > +      patches = patches + msfmodules
> > +    end
> > +
> > +    client.core.use("extapi") if not client.ext.aliases.include?("extapi")
> > +    begin
> > +      objects = client.extapi.wmi.query("SELECT HotFixID FROM Win32_QuickFixEngineering")
> afaik we should be using session rather than client
> 
> —
> Reply to this email directly or view it on GitHub.