iagox86 / dnscat2

BSD 3-Clause "New" or "Revised" License
3.43k stars 601 forks source link

undefined method 'shutdown' #104

Open lukebaggett opened 7 years ago

lukebaggett commented 7 years ago

This isn't a huge problem, but I figured I'd post it.

On the server, if you type exit into a shell, an error like this is caught:

#<NoMethodError: undefined method 'shutdown' for #<DriverConsole:0x00000001708e50>>

Not all drivers have a shutdown method, but the kill function in server/controller/session.rb seems to call shutdown regardless of what kind of driver is in use:

if(@driver)
  @driver.shutdown()
end