rex-core 0.1.30 → 0.1.31

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: 98826de275548f6674346489347c1eadfdbcc00b469fc837b3f5bae4121f055f
4
- data.tar.gz: 83c9d9fa15c5825da09f75bc4d9160181a7fb09fc0089920a14d0d2e133d93e4
3
+ metadata.gz: 3e0ea61587118ecd16dfa99cd6f135099fb11847360700de1820968c1d675079
4
+ data.tar.gz: b110df967b5f9cd38ab3241b8cf8f2fc2d09fe7fa85d1a4989f7b07c65a5fcb4
5
5
  SHA512:
6
- metadata.gz: 22b36ef36d70b2128f91dde72ff553668cdfe54c9d02b5c9d9f53f18ec4fd72fc1a24363bae1568a2acb8b0fb4674274163f411713116b7073ea33f7350bacd1
7
- data.tar.gz: 1cfc97198648dd56168567ddb9a7e2ccf489c7f5828caf2f632843dd4f9d4d0126270a1d4d71b85e49a5edc19609af6d2ec81138f3aabbbbb8f23c705b0ab7d0
6
+ metadata.gz: 98593ce7a951c4ecad04e5db2d558fc83e6659504e1fb71bac45390213038def2f989f5835f5db10a1a0efd196c9478225cc13916a27c2bc16b666d6c4af89a3
7
+ data.tar.gz: 57f91c129ac52a5a9a93b6b8f51d970040de8e06097e4e7d6b3c0854fab46e825019d34023a72f0d650fff82eb863a0f77486a6447fe8da4948707f3bd00b9cd
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/rex/compat.rb CHANGED
@@ -138,7 +138,9 @@ def self.open_browser(url='http://google.com/')
138
138
  else
139
139
  # Search through the PATH variable (if it exists) and chose a browser
140
140
  # We are making an assumption about the nature of "PATH" so tread lightly
141
- if defined? ENV['PATH']
141
+ #
142
+ # If DISPLAY is not set, most unix graphical tools will not work.
143
+ if ENV['PATH'] && ENV['DISPLAY']
142
144
  # "xdg-open" is more general than "sensible-browser" and can be useful for lots of
143
145
  # file types -- text files, pcaps, or URLs. It's nearly always
144
146
  # going to use the application the user is expecting. If we're not
@@ -194,7 +196,8 @@ def self.open_webrtc_browser(url='http://google.com/')
194
196
  url = "file://#{url}" if url.to_s.start_with?('/')
195
197
  system("am start --user 0 -a android.intent.action.VIEW -d #{url}")
196
198
  else
197
- if defined? ENV['PATH']
199
+ # If DISPLAY is not set, most unix graphical tools will not work.
200
+ if ENV['PATH'] && ENV['DISPLAY']
198
201
  ['google-chrome', 'chrome', 'chromium', 'firefox' , 'firefox', 'opera'].each do |browser|
199
202
  ENV['PATH'].split(':').each do |path|
200
203
  browser_path = "#{path}/#{browser}"
@@ -1,5 +1,5 @@
1
1
  module Rex
2
2
  module Core
3
- VERSION = "0.1.30"
3
+ VERSION = "0.1.31"
4
4
  end
5
5
  end
data.tar.gz.sig CHANGED
Binary file
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.30
4
+ version: 0.1.31
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: 2023-01-31 00:00:00.000000000 Z
96
+ date: 2023-05-02 00:00:00.000000000 Z
97
97
  dependencies:
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: rake
metadata.gz.sig CHANGED
Binary file