mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
wee eh
git-svn-id: file:///home/svn/incoming/trunk@2866 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
ea4448bee4
commit
3114a95235
50
lib/rex/proto/smb/exceptions.rb
Normal file
50
lib/rex/proto/smb/exceptions.rb
Normal file
@ -0,0 +1,50 @@
|
||||
module Rex
|
||||
module Proto
|
||||
module SMB
|
||||
module Exceptions
|
||||
|
||||
|
||||
class Error < ::RuntimeError
|
||||
|
||||
def initialize(*args)
|
||||
super(*args)
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class ReadHeader < Error
|
||||
def to_s
|
||||
"The SMB response header was invalid"
|
||||
end
|
||||
end
|
||||
|
||||
class ReadPacket < Error
|
||||
def to_s
|
||||
"The SMB response packet was invalid"
|
||||
end
|
||||
end
|
||||
|
||||
class WritePacket < Error
|
||||
def to_s
|
||||
"The SMB packet failed to send"
|
||||
end
|
||||
end
|
||||
|
||||
class Unimplemented < Error
|
||||
def to_s
|
||||
"The SMB packet type was not supported"
|
||||
end
|
||||
end
|
||||
|
||||
class NetbiosSessionFailed < Error
|
||||
def to_s
|
||||
"The server refused our NetBIOS session request"
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user