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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rex/powershell/command.rb +9 -10
- data/lib/rex/powershell/version.rb +1 -1
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 323cf029a94c9da8c34f93d153819d12e8be4cd7
|
|
4
|
+
data.tar.gz: b1e0f712ff2180dc77800ce8c65ba97bab85d1fe
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 368dd5167b4598ccfac2124eea1426b10edf1adb92855f1415d579197fa350387818a99bf7a66378a52aa8885955ef6ba075d9fd08558539bd091bb06952b8c0
|
|
7
|
+
data.tar.gz: 91887a4c1dc8525f2cdbc5188616b0ec93018053b3745f5782a557cd754ff83e42e858a2bb246297febbd395f8c1c96ef52271d3c443b557e5e1d486ab64476c
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
|
@@ -339,9 +339,14 @@ EOS
|
|
|
339
339
|
end
|
|
340
340
|
end
|
|
341
341
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
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
|
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.
|
|
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-
|
|
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
|