fix Unkown typo

bug/bundler_fix
Christian Mehlmauer 2015-04-16 23:59:28 +02:00
parent 352e170624
commit 153344a1dd
No known key found for this signature in database
GPG Key ID: BCFF4FA966BC32C7
7 changed files with 40 additions and 40 deletions

View File

@ -96,7 +96,7 @@ class JavaClass < ExeFormat
when 'NameAndType'
@info = ConstantNameAndType.decode(c)
else
raise 'unkown constant tag'
raise 'unknown constant tag'
return
end
end

View File

@ -205,7 +205,7 @@ module Exploit::Remote::Postgres
# result of "select version()" if authentication was successful.
#
# @return [Hash] A hash containing the version in one of the keys :preauth,
# :auth, or :unkown, depending on how it was determined
# :auth, or :unknown, depending on how it was determined
# @see #postgres_authed_fingerprint
# @see #analyze_auth_error
def postgres_fingerprint(args={})

View File

@ -1,15 +1,15 @@
# -*- coding: binary -*-
module Net # :nodoc:
module DNS
module DNS
class RR
#
# This is an auxiliary class to hadle RR class field in a DNS packet.
# This is an auxiliary class to hadle RR class field in a DNS packet.
#
class Classes
# An hash with the values of each RR class stored with the
# An hash with the values of each RR class stored with the
# respective id number
Classes = {
'IN' => 1, # RFC 1035
@ -18,7 +18,7 @@ module Net # :nodoc:
'NONE' => 254, # RFC 2136
'ANY' => 255, # RFC 1035
}
# The default value when class is nil in Resource Records
@@default = Classes["IN"]
@ -32,7 +32,7 @@ module Net # :nodoc:
end
end
# Checks whether +cls+ is a valid RR class.
# Checks whether +cls+ is a valid RR class.
def self.valid?(cls)
case cls
when String
@ -43,7 +43,7 @@ module Net # :nodoc:
raise ClassArgumentError, "Wrong cls class: #{cls.class}"
end
end
# Returns the class in string format, as "IN" or "CH",
# given the numeric value
def self.to_str(cls)
@ -72,13 +72,13 @@ module Net # :nodoc:
case cls
when String
# type in the form "A" or "NS"
new_from_string(cls.upcase)
new_from_string(cls.upcase)
when Fixnum
# type in numeric form
new_from_num(cls)
new_from_num(cls)
when nil
# default type, control with Classes.default=
@str = Classes.invert[@@default]
@str = Classes.invert[@@default]
@num = @@default
else
raise ClassArgumentError, "Wrong cls class: #{cls.class}"
@ -91,7 +91,7 @@ module Net # :nodoc:
case cls
when /^CLASS\\d+/
# TODO!!!
else
else
# String with name of class
if Classes.has_key? cls
@str = cls
@ -109,11 +109,11 @@ module Net # :nodoc:
@num = cls
@str = Classes.invert[cls]
else
raise ClassesArgumentError, "Unkown cls number #{cls}"
raise ClassesArgumentError, "Unknown cls number #{cls}"
end
end
# Returns the class in number format
# Returns the class in number format
# (default for normal use)
def inspect
@num
@ -124,7 +124,7 @@ module Net # :nodoc:
def to_s
@str
end
# Returns the class in numeric format,
# usable by the pack methods for data transfers
def to_i
@ -140,7 +140,7 @@ module Net # :nodoc:
private :new_from_num, :new_from_string
end # class Classes
end # class RR
end # module DNS
end # module Net

View File

@ -1,14 +1,14 @@
# -*- coding: binary -*-
module Net # :nodoc:
module DNS
class RR
#
# This is an auxiliary class to hadle RR type field in a DNS packet.
# This is an auxiliary class to hadle RR type field in a DNS packet.
#
class Types
# :nodoc:
Types = { # :nodoc:
'SIGZERO' => 0, # RFC2931 consider this a pseudo type
@ -85,7 +85,7 @@ module Net # :nodoc:
end
end
# Checks whether +type+ is a valid RR type.
# Checks whether +type+ is a valid RR type.
def self.valid?(type)
case type
when String
@ -96,7 +96,7 @@ module Net # :nodoc:
raise TypeArgumentError, "Wrong type class: #{type.class}"
end
end
# Returns the type in string format, as "A" or "NS",
# given the numeric value
def self.to_str(type)
@ -125,20 +125,20 @@ module Net # :nodoc:
case type
when String
# type in the form "A" or "NS"
new_from_string(type.upcase)
new_from_string(type.upcase)
when Fixnum
# type in numeric form
new_from_num(type)
new_from_num(type)
when nil
# default type, control with Types.default=
@str = Types.invert[@@default]
@str = Types.invert[@@default]
@num = @@default
else
raise TypeArgumentError, "Wrong type class: #{type.class}"
end
end
# Returns the type in number format
# Returns the type in number format
# (default for normal use)
def inspect
@num
@ -155,21 +155,21 @@ module Net # :nodoc:
def to_i
@num.to_i
end
# Should be used only for testing purpouses
def to_str
@num.to_s
end
private
# Constructor for string data type,
# *PRIVATE* method
def new_from_string(type)
case type
when /^TYPE\\d+/
# TODO!!!
else
else
# String with name of type
if Types.has_key? type
@str = type
@ -187,12 +187,12 @@ module Net # :nodoc:
@num = type
@str = Types.invert[type]
else
raise TypeArgumentError, "Unkown type number #{type}"
raise TypeArgumentError, "Unknown type number #{type}"
end
end
end # class Types
end # class RR
end # module DNS
end # module Net

View File

@ -30,7 +30,7 @@ class Metasploit3 < Msf::Auxiliary
def os_fingerprint(response)
if not response.headers.has_key?('Server')
return "Unkown OS (No Server Header)"
return "Unknown OS (No Server Header)"
end
case response.headers['Server']

View File

@ -546,7 +546,7 @@ class Metasploit4 < Msf::Exploit::Remote
fail_with(Failure::Unknown, "sock isn't nil") if sock
connect
fail_with(Failure::Unkown, "sock is nil") if not sock
fail_with(Failure::Unknown, "sock is nil") if not sock
@smtp_state = :recv
# Receiving the banner (but we don't really need to check it)

View File

@ -65,7 +65,7 @@ class Metasploit3 < Msf::Exploit::Remote
fail_with(Failure::UnexpectedReply, "#{peer} - Unable to deploy payload, server returned #{res.code}")
end
else
fail_with(Failure::Unkown, 'ERROR')
fail_with(Failure::Unknown, 'ERROR')
end
print_status("#{peer} - Calling payload...")