rex-core 0.1.12 → 0.1.13

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: ce404dfff0f44ea18f454bbccea589ae6a736628
4
- data.tar.gz: 249d1e07db959a68db3283e56c9989b23a9d552c
3
+ metadata.gz: 572c75d713846400112965fda7c63e2b1c285277
4
+ data.tar.gz: 344a3b66adcf8c8fb3a7aded500cf4683862e78e
5
5
  SHA512:
6
- metadata.gz: 63cf3c9b79a52132469b05d117b1f2c144a6bb54a3be1ed158bc9334043291f7ee8bff77c969a735577c53499463c527f467246ab3caeb4108b408f593d0e143
7
- data.tar.gz: ea49f8b29517ab4e08e1d7023631ac75f7077fcb6b4a0fcdfe26797bb127b4e5e855052fca37d29339e0aa09fc4697e07fd95f3cccc2b3cae61a96e1e23ba6de
6
+ metadata.gz: 5367790a34e23b297b356dd6a702dc2c15ea257db0c58391c4ce277f9c1eaeac9598e091abd5fc92b4ef0bf371309dea92cc1047ef84a5a628f5810bbb170cba
7
+ data.tar.gz: 2e518310d93d7d45cf0b55ad2793da2ddb35591a8bd29f50c6b297d79e778f75a04cf38328691ca81486763e02c108b3a35cdf1198a4c4bbf639ff0b13869bf7
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -30,7 +30,7 @@ ENABLE_PROCESSED_INPUT = 1
30
30
  # Platform detection
31
31
  #
32
32
 
33
- @@is_windows = @@is_cygwin = @@is_macosx = @@is_linux = @@is_bsdi = @@is_freebsd = @@is_netbsd = @@is_openbsd = @@is_java = false
33
+ @@is_windows = @@is_cygwin = @@is_macosx = @@is_linux = @@is_bsdi = @@is_freebsd = @@is_netbsd = @@is_openbsd = @@is_java = @@is_android = false
34
34
  @@loaded_win32api = false
35
35
  @@loaded_tempfile = false
36
36
  @@loaded_fileutils = false
@@ -81,6 +81,11 @@ def self.is_java
81
81
  @@is_java = (RUBY_PLATFORM =~ /java/) ? true : false
82
82
  end
83
83
 
84
+ def self.is_android
85
+ return @@is_android if @@is_android
86
+ @@is_android = (RUBY_PLATFORM =~ /android/) ? true : false
87
+ end
88
+
84
89
  def self.is_wow64
85
90
  return false if not is_windows
86
91
  is64 = false
@@ -127,6 +132,8 @@ def self.open_browser(url='http://google.com/')
127
132
  Win32API.new("shell32.dll", "ShellExecute", ["PPPPPL"], "L").call(nil, "open", url, nil, nil, 0)
128
133
  when /darwin/
129
134
  system("open #{url}")
135
+ when /android/
136
+ system("am start --user 0 -a android.intent.action.VIEW -d #{url}")
130
137
  else
131
138
  # Search through the PATH variable (if it exists) and chose a browser
132
139
  # We are making an assumption about the nature of "PATH" so tread lightly
@@ -182,6 +189,8 @@ def self.open_webrtc_browser(url='http://google.com/')
182
189
  return true
183
190
  end
184
191
  end
192
+ when /android/
193
+ system("am start --user 0 -a android.intent.action.VIEW -d #{url}")
185
194
  else
186
195
  if defined? ENV['PATH']
187
196
  ['google-chrome', 'chrome', 'chromium', 'firefox' , 'firefox', 'opera'].each do |browser|
@@ -207,6 +216,8 @@ def self.open_email(addr)
207
216
  Win32API.new("shell32.dll", "ShellExecute", ["PPPPPL"], "L").call(nil, "open", "mailto:"+addr, nil, nil, 0)
208
217
  when /darwin/
209
218
  system("open mailto:#{addr}")
219
+ when /android/
220
+ system("am start --user 0 -a android.intent.action.VIEW -d mailto:#{addr}")
210
221
  else
211
222
  # ?
212
223
  end
@@ -223,6 +234,8 @@ def self.play_sound(path)
223
234
  Win32API.new("winmm.dll", "sndPlaySoundA", ["SI"], "I").call(path, 0x20000)
224
235
  when /darwin/
225
236
  system("afplay #{path} >/dev/null 2>&1")
237
+ when /android/
238
+ system("termux-open #{path}")
226
239
  else
227
240
  system("aplay #{path} >/dev/null 2>&1")
228
241
  end
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Core
3
- VERSION = "0.1.12"
3
+ VERSION = "0.1.13"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rex-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Maloney
@@ -88,7 +88,7 @@ cert_chain:
88
88
  G+Hmcg1v810agasPdoydE0RTVZgEOOMoQ07qu7JFXVWZ9ZQpHT7qJATWL/b2csFG
89
89
  8mVuTXnyJOKRJA==
90
90
  -----END CERTIFICATE-----
91
- date: 2017-07-20 00:00:00.000000000 Z
91
+ date: 2018-02-22 00:00:00.000000000 Z
92
92
  dependencies:
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: bundler
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  version: '0'
186
186
  requirements: []
187
187
  rubyforge_project:
188
- rubygems_version: 2.6.8
188
+ rubygems_version: 2.6.13
189
189
  signing_key:
190
190
  specification_version: 4
191
191
  summary: Core libraries required for the Ruby Exploitation (Rex) Suite.
metadata.gz.sig CHANGED
Binary file