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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/rex/compat.rb +5 -2
- data/lib/rex/core/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3e0ea61587118ecd16dfa99cd6f135099fb11847360700de1820968c1d675079
|
|
4
|
+
data.tar.gz: b110df967b5f9cd38ab3241b8cf8f2fc2d09fe7fa85d1a4989f7b07c65a5fcb4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|
-
|
|
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}"
|
data/lib/rex/core/version.rb
CHANGED
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.
|
|
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-
|
|
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
|