Skip to content

Commit f891248

Browse files
author
Brent Cook
committed
fix typos
1 parent f08a7ac commit f891248

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/exploits/linux/misc/nagios_nrpe_arguments.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ def check
154154

155155
end
156156

157-
# NRPE uses unauthenticated Annonymous-Diffie-Hellman
157+
# NRPE uses unauthenticated Anonymous-Diffie-Hellman
158158

159159
# setting the global SSL => true will break as we would be overlaying
160160
# an SSLSocket on another SSLSocket which hasnt completed its handshake
@@ -163,7 +163,7 @@ def connect(global = true, opts={})
163163
self.sock = super(global, opts)
164164

165165
if datastore['NRPESSL'] or @force_ssl
166-
ctx = OpenSSL::SSL::SSLContext.new("TLSv1")
166+
ctx = OpenSSL::SSL::SSLContext.new(:TLSv1)
167167
ctx.verify_mode = OpenSSL::SSL::VERIFY_NONE
168168
ctx.ciphers = "ADH"
169169

0 commit comments

Comments
 (0)