rex-powershell 0.1.88 → 0.1.89

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
  SHA256:
3
- metadata.gz: 7f7e56d433cb3f985f7b087092a23ff36fc1b110345e08a4b00c82fcdb1db701
4
- data.tar.gz: df908df4e6d2b7a6d071e3b24320224661385cbe5ea5ad05c6a6c90c6cef1541
3
+ metadata.gz: a16744ce19e6ede9064d9ae074b3af40e10551249ed22d4c6809139d460e2bd6
4
+ data.tar.gz: f1aa5236d85697bb4e87e2a3b217c7da7ca45c34ef821126b8e33dd0d931b9e0
5
5
  SHA512:
6
- metadata.gz: 741ca750ba4f1e1654c873580dfeb1181651eb424c8d4d1ccaf4c474c87730c269a515a2e56c56774e4f4ae5671be5fe2c7bf708b43cad6044ceeb06bcbcd0f9
7
- data.tar.gz: a778d9f6c4f375279f1315843b5dbb6766d793a92e34d834d2f3a556b15e6cc35db402e076ba31126e5564f4882bba1421585952d2c4ad3efc7e56e55fdf795b
6
+ metadata.gz: 8ebd7515e95cf5b2488e33cf9ba6b79af155625b05db956fa8a74063393c1908bee6bcab96110cffa817da5648452103f8f7a140493e24fa048cfa8eaff23962
7
+ data.tar.gz: 4935d92f05bd74e2efa7e328c324a36b168b47f40c58d6c8116f18032bfa4c76400477805f59d8ba189d7dcfb75941f81e3ae0e0dc05930d3aed535ba3fa4672
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -123,6 +123,8 @@ module Command
123
123
  # powershell profile (-NoProfile)
124
124
  # @option opts [String] :windowstyle The window style to use
125
125
  # (-WindowStyle)
126
+ # @option opts [String] :version The version of Powershell to run
127
+ # (-version)
126
128
  #
127
129
  # @return [String] Powershell command arguments
128
130
  def self.generate_psh_args(opts)
@@ -157,6 +159,8 @@ module Command
157
159
  arg_string << '-NoProfile ' if value
158
160
  when :windowstyle
159
161
  arg_string << "-WindowStyle #{value} " if value
162
+ when :version
163
+ arg_string << "-Version #{value} " if value
160
164
  end
161
165
  end
162
166
 
@@ -188,6 +192,7 @@ module Command
188
192
  arg_string.gsub!('-OutputFormat ', '-o ')
189
193
  arg_string.gsub!('-Sta ', '-s ')
190
194
  arg_string.gsub!('-WindowStyle ', '-w ')
195
+ arg_string.gsub!('-Version ', '-v ')
191
196
  end
192
197
 
193
198
  # Strip off first space character
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Powershell
3
- VERSION = "0.1.88"
3
+ VERSION = "0.1.89"
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.88
4
+ version: 0.1.89
5
5
  platform: ruby
6
6
  authors:
7
7
  - Metasploit Hackers
@@ -93,7 +93,7 @@ cert_chain:
93
93
  EknWpNgVhohbot1lfVAMmIhdtOVaRVcQQixWPwprDj/ydB8ryDMDosIMcw+fkoXU
94
94
  9GJsSaSRRYQ9UUkVL27b64okU8D48m8=
95
95
  -----END CERTIFICATE-----
96
- date: 2020-11-30 00:00:00.000000000 Z
96
+ date: 2021-01-19 00:00:00.000000000 Z
97
97
  dependencies:
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: rake
metadata.gz.sig CHANGED
Binary file