Skip to content

Commit e471271

Browse files
committed
Move comment
1 parent c14ba11 commit e471271

File tree

1 file changed

+3
-2
lines changed
  • modules/exploits/windows/local

1 file changed

+3
-2
lines changed

modules/exploits/windows/local/wmi.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ def run_host(server)
8383
:encode_inner_payload => true,
8484
:use_single_quotes => true }
8585
end
86-
# Get the PSH Payload and split it into bitesize chunks
87-
# 1024 appears to be the max value allowed in env vars
86+
8887
psh = cmd_psh_payload(payload.encoded,
8988
payload_instance.arch.first,
9089
psh_options)
@@ -93,6 +92,8 @@ def run_host(server)
9392
if load_extapi
9493
exec_cmd = psh
9594
else
95+
# Get the PSH Payload and split it into bitesize chunks
96+
# 1024 appears to be the max value allowed in env vars
9697
print_status("[#{server}] Storing payload in environment variables")
9798
chunks = split_code(psh, 1000)
9899
env_name = rand_text_alpha(rand(3)+3)

0 commit comments

Comments
 (0)