Exception: Rex::Proto::SMB::Exceptions::InvalidPacket

Inherits:
Error
  • Object
show all
Defined in:
lib/rex/proto/smb/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Error

#get_error, #initialize

Constructor Details

This class inherits a constructor from Rex::Proto::SMB::Exceptions::Error

Instance Attribute Details

#command ⇒ Object

Returns the value of attribute command.



786
787
788
# File 'lib/rex/proto/smb/exceptions.rb', line 786

def command
  @command
end

#error_code ⇒ Object

Returns the value of attribute error_code.



787
788
789
# File 'lib/rex/proto/smb/exceptions.rb', line 787

def error_code
  @error_code
end

#word_count ⇒ Object

Returns the value of attribute word_count.



785
786
787
# File 'lib/rex/proto/smb/exceptions.rb', line 785

def word_count
  @word_count
end

Instance Method Details

#error_name ⇒ Object



789
790
791
# File 'lib/rex/proto/smb/exceptions.rb', line 789

def error_name
  get_error(error_code)
end