rex-core 0.1.29 → 0.1.31

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
  SHA256:
3
- metadata.gz: 9f0da6a56290d62fbe1e04a4d56d24093a1d11495972de01ba73184cda25756c
4
- data.tar.gz: 23c9aeb74bb5e659bc74d04b7f9b3ad0ff56069ef7a651d793adfddda4de3308
3
+ metadata.gz: 3e0ea61587118ecd16dfa99cd6f135099fb11847360700de1820968c1d675079
4
+ data.tar.gz: b110df967b5f9cd38ab3241b8cf8f2fc2d09fe7fa85d1a4989f7b07c65a5fcb4
5
5
  SHA512:
6
- metadata.gz: aacea250c0e98e0579fed06c944851552fd6cd850cea566e26ed80fff4158f05a4cee6631f0ee644126a614aaf82ba1cd1004ed3c774a3fecefc7e2bf6e16834
7
- data.tar.gz: 88fc2060bd625b3a5085965c17a28ddba2d2f752f768d34fbe83b7a9c4511ae66d2aed4db8d0b7e70fc6c655bb738e726a4e916d9e7df51e15ae850393a2bc24
6
+ metadata.gz: 98593ce7a951c4ecad04e5db2d558fc83e6659504e1fb71bac45390213038def2f989f5835f5db10a1a0efd196c9478225cc13916a27c2bc16b666d6c4af89a3
7
+ data.tar.gz: 57f91c129ac52a5a9a93b6b8f51d970040de8e06097e4e7d6b3c0854fab46e825019d34023a72f0d650fff82eb863a0f77486a6447fe8da4948707f3bd00b9cd
checksums.yaml.gz.sig CHANGED
Binary file
@@ -10,24 +10,30 @@ on:
10
10
 
11
11
  jobs:
12
12
  test:
13
- runs-on: ubuntu-18.04
13
+ runs-on: ${{ matrix.os }}
14
14
  timeout-minutes: 40
15
15
 
16
16
  strategy:
17
17
  fail-fast: true
18
18
  matrix:
19
19
  ruby:
20
- - 2.6
21
- - 2.7
22
- - 3.0
23
- - 3.1
20
+ - '2.7'
21
+ - '3.0'
22
+ - '3.1'
23
+ - '3.2'
24
+ os:
25
+ - ubuntu-20.04
26
+ - ubuntu-latest
27
+ exclude:
28
+ - { os: ubuntu-latest, ruby: '2.7' }
29
+ - { os: ubuntu-latest, ruby: '3.0' }
24
30
  test_cmd:
25
31
  - bundle exec rspec
26
32
 
27
33
  env:
28
34
  RAILS_ENV: test
29
35
 
30
- name: Ruby ${{ matrix.ruby }} - ${{ matrix.test_cmd }}
36
+ name: ${{ matrix.os }} - Ruby ${{ matrix.ruby }} - ${{ matrix.test_cmd }}
31
37
  steps:
32
38
  - name: Checkout code
33
39
  uses: actions/checkout@v2
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.29"
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.29
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-11 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