We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e787d43 commit b83787cCopy full SHA for b83787c
spec/lib/msf/core/exploit/powershell_spec.rb
@@ -276,11 +276,13 @@ def decompress(code)
276
end
277
it 'shouldnt shorten args' do
278
code = subject.cmd_psh_payload(payload, arch)
279
- expect(code.include?('-NoProfile -WindowStyle hidden -Command')).to be_truthy
+ expect(code.include?('-NoProfile ')).to be_truthy
280
+ expect(code.include?('-WindowStyle hidden')).to be_truthy
281
+ expect(code.include?('-Command ')).to be_truthy
282
283
it 'should include -NoExit' do
284
- expect(code.include?('-NoProfile -WindowStyle hidden -NoExit -Command')).to be_truthy
285
+ expect(code.include?('-NoExit ')).to be_truthy
286
287
288
0 commit comments