From 153344a1ddef907bb6041c6a00eabb04f2aa2246 Mon Sep 17 00:00:00 2001 From: Christian Mehlmauer Date: Thu, 16 Apr 2015 23:59:28 +0200 Subject: [PATCH] fix Unkown typo --- lib/metasm/metasm/exe_format/javaclass.rb | 2 +- lib/msf/core/exploit/postgres.rb | 2 +- lib/net/dns/rr/classes.rb | 36 +++++++++---------- lib/net/dns/rr/types.rb | 34 +++++++++--------- .../auxiliary/scanner/http/joomla_version.rb | 2 +- .../linux/smtp/exim_gethostbyname_bof.rb | 2 +- .../wp_creativecontactform_file_upload.rb | 2 +- 7 files changed, 40 insertions(+), 40 deletions(-) diff --git a/lib/metasm/metasm/exe_format/javaclass.rb b/lib/metasm/metasm/exe_format/javaclass.rb index f709b7ddac..c9678747c2 100644 --- a/lib/metasm/metasm/exe_format/javaclass.rb +++ b/lib/metasm/metasm/exe_format/javaclass.rb @@ -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 diff --git a/lib/msf/core/exploit/postgres.rb b/lib/msf/core/exploit/postgres.rb index 514eae6c50..09f3f9487e 100644 --- a/lib/msf/core/exploit/postgres.rb +++ b/lib/msf/core/exploit/postgres.rb @@ -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={}) diff --git a/lib/net/dns/rr/classes.rb b/lib/net/dns/rr/classes.rb index 9eb5ce478c..b5921ba09b 100644 --- a/lib/net/dns/rr/classes.rb +++ b/lib/net/dns/rr/classes.rb @@ -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 diff --git a/lib/net/dns/rr/types.rb b/lib/net/dns/rr/types.rb index cde8bb3632..9b75ac2aab 100644 --- a/lib/net/dns/rr/types.rb +++ b/lib/net/dns/rr/types.rb @@ -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 diff --git a/modules/auxiliary/scanner/http/joomla_version.rb b/modules/auxiliary/scanner/http/joomla_version.rb index 459a2150bf..a1b8bad625 100644 --- a/modules/auxiliary/scanner/http/joomla_version.rb +++ b/modules/auxiliary/scanner/http/joomla_version.rb @@ -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'] diff --git a/modules/exploits/linux/smtp/exim_gethostbyname_bof.rb b/modules/exploits/linux/smtp/exim_gethostbyname_bof.rb index 1746ae0cc9..da9460b3b9 100644 --- a/modules/exploits/linux/smtp/exim_gethostbyname_bof.rb +++ b/modules/exploits/linux/smtp/exim_gethostbyname_bof.rb @@ -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) diff --git a/modules/exploits/unix/webapp/wp_creativecontactform_file_upload.rb b/modules/exploits/unix/webapp/wp_creativecontactform_file_upload.rb index b9779439a8..7dea3d238e 100644 --- a/modules/exploits/unix/webapp/wp_creativecontactform_file_upload.rb +++ b/modules/exploits/unix/webapp/wp_creativecontactform_file_upload.rb @@ -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...")