rex-powershell 0.1.78 → 0.1.79

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c6d8aba941865b5f381b53f34dee4553efc0eee5
4
- data.tar.gz: 522959ccfd0d2dfdccd48f63aaf1ec33b7ab2fec
3
+ metadata.gz: 323cf029a94c9da8c34f93d153819d12e8be4cd7
4
+ data.tar.gz: b1e0f712ff2180dc77800ce8c65ba97bab85d1fe
5
5
  SHA512:
6
- metadata.gz: f64a6ba282c82edb2adbc380a2066a61f317c80697d1e66f0afe2a812dd60bc2cb9dad70cacdee1f7e69fdbbea72336da8e41ec48376f979e43bcdd16ec30b5f
7
- data.tar.gz: 87b71d0daa1c7436c41628ab16c24c402f2b7f551854338374b242cfad047eee41efab2a10a2c5d2e36c29c5402ff37b18ddd941944b1e79da3532a32f22dba3
6
+ metadata.gz: 368dd5167b4598ccfac2124eea1426b10edf1adb92855f1415d579197fa350387818a99bf7a66378a52aa8885955ef6ba075d9fd08558539bd091bb06952b8c0
7
+ data.tar.gz: 91887a4c1dc8525f2cdbc5188616b0ec93018053b3745f5782a557cd754ff83e42e858a2bb246297febbd395f8c1c96ef52271d3c443b557e5e1d486ab64476c
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -339,9 +339,14 @@ EOS
339
339
  end
340
340
  end
341
341
 
342
- # Wrap in hidden runtime / architecture detection
343
- inner_args = opts.clone
344
- final_payload = run_hidden_psh(smallest_payload, payload_arch, encoded, inner_args)
342
+ if opts[:exec_in_place]
343
+ final_payload = smallest_payload
344
+ else
345
+ # Wrap in hidden runtime / architecture detection
346
+ inner_args = opts.clone
347
+ inner_args[:use_single_quotes] = true
348
+ final_payload = run_hidden_psh(smallest_payload, payload_arch, encoded, inner_args)
349
+ end
345
350
 
346
351
  command_args = {
347
352
  noprofile: true,
@@ -350,7 +355,6 @@ EOS
350
355
 
351
356
  if opts[:encode_final_payload]
352
357
  command_args[:encodedcommand] = encode_script(final_payload)
353
-
354
358
  # If '=' is a bad character pad the payload until Base64 encoded
355
359
  # payload contains none.
356
360
  if opts[:no_equals]
@@ -362,12 +366,7 @@ EOS
362
366
  else
363
367
  command_args[:command] = final_payload
364
368
  end
365
-
366
- if opts[:exec_in_place]
367
- psh_command = "#{command_args[:command]}"
368
- else
369
- psh_command = generate_psh_command_line(command_args)
370
- end
369
+ psh_command = generate_psh_command_line(command_args)
371
370
 
372
371
  if opts[:remove_comspec] or opts[:exec_in_place]
373
372
  command = psh_command
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Powershell
3
- VERSION = "0.1.78"
3
+ VERSION = "0.1.79"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rex-powershell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.78
4
+ version: 0.1.79
5
5
  platform: ruby
6
6
  authors:
7
7
  - David 'thelightcosine' Maloney
@@ -88,7 +88,7 @@ cert_chain:
88
88
  G+Hmcg1v810agasPdoydE0RTVZgEOOMoQ07qu7JFXVWZ9ZQpHT7qJATWL/b2csFG
89
89
  8mVuTXnyJOKRJA==
90
90
  -----END CERTIFICATE-----
91
- date: 2018-06-21 00:00:00.000000000 Z
91
+ date: 2018-08-01 00:00:00.000000000 Z
92
92
  dependencies:
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: bundler
metadata.gz.sig CHANGED
Binary file