Skip to content

Commit

Permalink
fix spelling in tools folder
Browse files Browse the repository at this point in the history
  • Loading branch information
h00die committed Jan 7, 2024
1 parent ee3b8b4 commit a7c5475
Show file tree
Hide file tree
Showing 13 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion tools/dev/msftidy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def check_self_class

# See if 'require "rubygems"' or equivalent is used, and
# warn if so. Since Ruby 1.9 this has not been necessary and
# the framework only suports 1.9+
# the framework only supports 1.9+
def check_rubygems
@lines.each do |line|
if line_has_require?(line, 'rubygems')
Expand Down
2 changes: 1 addition & 1 deletion tools/dev/msftidy_docs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def line_checks
in_options = false
end

if in_options && ln =~ /^\s*\*\*[a-z]+\*\*$/i # catch options in old format like **command** instead of ### comand
if in_options && ln =~ /^\s*\*\*[a-z]+\*\*$/i # catch options in old format like **command** instead of ### command
warn("Options should use ### instead of bolds (**)", idx)
end

Expand Down
2 changes: 1 addition & 1 deletion tools/dev/update_wordpress_vulnerabilities.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#
# Update modules/auxiliary/scanner/http/wordpress_scanner.rb to have the most
# up to date list of vuln compontents based on exploits/scanners in the framework
# up to date list of vuln components based on exploits/scanners in the framework
#
# by h00die
#
Expand Down
2 changes: 1 addition & 1 deletion tools/docs/issue_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
prefix_chars='--', )
parser.add_argument('-m', '--modules', type=str, default='auxiliary/scanner', help='Choose the modules category to work with. Respect the module category names as in metasploit-framework. Only one category should be passed, e.g. "auxiliary/admin", "exploits/android/browser" or "encoders" are valid entries.')
parser.add_argument('--show_all', action="store_true", default=False, help='Show the complete list of items. In default mode, modules with documentation are marked "[x]" and modules without are marked "[ ]". In issues mode, documentation files without module are marked "[ ]" and documentation files with module are marked "[x]".')
parser.add_argument('--show_issues', action="store_true", default=False, help='Show the list of documentation files without modules instead of modules withouth documentation file.')
parser.add_argument('--show_issues', action="store_true", default=False, help='Show the list of documentation files without modules instead of modules without documentation file.')
parser.add_argument('-o', '--output', help="Writes to a file.")
args = parser.parse_args()

Expand Down
10 changes: 5 additions & 5 deletions tools/exploit/metasm_shell.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
@Arch = ['Ia32','MIPS','ARM','X86_64']
@Endian = ['little','big']
@architecture = ""
@endianess = ""
@endianness = ""

def usage
$stderr.puts("\nUsage: #{$0} <options>\n" + $args.usage)
Expand All @@ -48,7 +48,7 @@ def usage

$args = Rex::Parser::Arguments.new(
"-a" => [ true, "The architecture to encode as (#{@Arch.sort.collect{|a| a + ', ' }.join.gsub(/\, $/,'')})"],
"-e" => [ true, "The endianess to encode as (#{@Endian.sort.collect{|a| a + ', ' }.join.gsub(/\, $/,'')})" ],
"-e" => [ true, "The endianness to encode as (#{@Endian.sort.collect{|a| a + ', ' }.join.gsub(/\, $/,'')})" ],
"-h" => [ false, "Display this help information" ])

$args.parse(ARGV) { |opt, idx, val|
Expand All @@ -66,7 +66,7 @@ def usage
found = nil
@Endian.each { |e|
if val.downcase == e.downcase
@endianess = e
@endianness = e
found = true
end
}
Expand All @@ -79,10 +79,10 @@ def usage
}

unless @architecture.empty?
if @endianess.empty?
if @endianness.empty?
String.class_eval("@@cpu = Metasm::#{@architecture}.new")
else
String.class_eval("@@cpu = Metasm::#{@architecture}.new(:#{@endianess})")
String.class_eval("@@cpu = Metasm::#{@architecture}.new(:#{@endianness})")
end
end

Expand Down
8 changes: 4 additions & 4 deletions tools/hardware/elm327_relay.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def print_error(msg='')
$stdout.puts "[-] #{msg}"
end

# Base ELM327 Class for the Realy
# Base ELM327 Class for the Relay
module ELM327HWBridgeRelay

class ELM327Relay < Msf::Auxiliary
Expand Down Expand Up @@ -146,7 +146,7 @@ def send_cmd(cmd)
resp
end

# Connects to the ELM327, resets paramters, gets device version and sets up general comms.
# Connects to the ELM327, resets parameters, gets device version and sets up general comms.
# Serial params are set via command options or during initialization
#
# @return [SerialPort] SerialPort object for communications. Also available as @ser
Expand All @@ -160,7 +160,7 @@ def connect_to_device()
resp = send_cmd("ATZ") # Turn off ECHO
if resp =~ /ELM327/
send_cmd("ATE0") # Turn off ECHO
send_cmd("ATL0") # Disble linefeeds
send_cmd("ATL0") # Disable linefeeds
@device_name = send_cmd("ATI")
send_cmd("ATH1") # Show Headers
@operational_status = 1
Expand Down Expand Up @@ -301,7 +301,7 @@ def not_supported()
{ "status" => "not supported" }
end

# Handles incomming URI requests and calls their respective API functions
# Handles incoming URI requests and calls their respective API functions
#
# @param cli [Socket] Socket for the browser
# @param request [Rex::Proto::Http::Request] HTTP Request sent by the browser
Expand Down
2 changes: 1 addition & 1 deletion tools/modules/module_mixins.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def do_want(klass)
all_modules = $framework.exploits

# If you give an argument (any argument will do), you really want a sorted
# list of mixins, regardles of the module they're in.
# list of mixins, regardless of the module they're in.
if ARGV[0]
mod_hash = {}
longest_name = 0
Expand Down
2 changes: 1 addition & 1 deletion tools/modules/module_ports.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
ports = ports.map{|p| p.to_i}
ports.uniq!
ports.sort{|a,b| a <=> b}.each do |rport|
# Just record the first occurance.
# Just record the first occurrence.
all_ports[rport] = x.fullname unless all_ports[rport]
end
}
Expand Down
2 changes: 1 addition & 1 deletion tools/modules/module_rank.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

opts = Rex::Parser::Arguments.new(
"-h" => [ false, "Help menu." ],
"-M" => [ true, "Set Maxmimum Rank [Manual,Low,Average,Normal,Good,Great,Excellent] (Default = Excellent)." ],
"-M" => [ true, "Set Maximum Rank [Manual,Low,Average,Normal,Good,Great,Excellent] (Default = Excellent)." ],
"-m" => [ true, "Set Minimum Rank [Manual,Low,Average,Normal,Good,Great,Excellent] (Default = Manual)."],
"-s" => [ false, "Sort by Rank instead of Module Type."],
"-r" => [ false, "Reverse Sort by Rank"],
Expand Down
2 changes: 1 addition & 1 deletion tools/password/cpassword_decrypt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def decrypt(encrypted_data)
plaintext = aes.update(decoded)
plaintext << aes.final
rescue OpenSSL::Cipher::CipherError
# Decryption failed possibily due to bad input
# Decryption failed possibly due to bad input
return ''
end

Expand Down
2 changes: 1 addition & 1 deletion tools/password/halflm_second.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def try(word,challenge)
hash = pass = chall = nil

$args = Rex::Parser::Arguments.new(
"-n" => [ true, "The encypted LM hash to crack" ],
"-n" => [ true, "The encrypted LM hash to crack" ],
"-p" => [ true, "The decrypted LANMAN password for bytes 1-7" ],
"-s" => [ true, "The server challenge (default value 1122334455667788)" ],
"-h" => [ false, "Display this help information" ])
Expand Down
4 changes: 2 additions & 2 deletions tools/password/lm2ntcrack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#
# This script cracks any type of NTLM hash
# Credit to -Yannick Hamon <yannick.hamon[at]xmcopartners.com> for the original idea/perl code
# -Alexandre Maloteaux <a.maloteaux[at]gmail.com> for improvments
# -Alexandre Maloteaux <a.maloteaux[at]gmail.com> for improvements
#

msfbase = __FILE__
Expand All @@ -31,7 +31,7 @@

def usage
$stderr.puts("\nUsage: #{$0} -t type <options>\n" + $args.usage)
$stderr.puts("This tool can be use in 3 ways whatever type is choosen\n")
$stderr.puts("This tool can be use in 3 ways whatever type is chosen\n")
$stderr.puts("-If only a password (-p) is provided, it will display the hash.\n")
$stderr.puts("-If a password (-p) and an hash (-a) is provided, it will test the password against the hash.\n")
$stderr.puts("-If a list of password (-l) is provided and an hash (-a), it will try to bruteforce the hash \n\n")
Expand Down
10 changes: 5 additions & 5 deletions tools/password/md5_lookup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def self.parse(args)
# Returns the parsed options from ARGV
#
# raise [OptionParser::InvalidOption] Invalid option found
# @return [OptionParser, Hash] The OptionParser object and an hash containg the options
# @return [OptionParser, Hash] The OptionParser object and an hash containing the options
def self.get_parsed_options
options = {}
parser = OptionParser.new do |opt|
Expand Down Expand Up @@ -368,11 +368,11 @@ def run
input = @opts[:input]
dbs = @opts[:databases]

disclamer = Md5LookupUtility::Disclaimer.new
disclaimer = Md5LookupUtility::Disclaimer.new

unless disclamer.has_waiver?
disclamer.ack
disclamer.save_waiver
unless disclaimer.has_waiver?
disclaimer.ack
disclaimer.save_waiver
end

get_hash_results(input, dbs) do |result|
Expand Down

0 comments on commit a7c5475

Please sign in to comment.