Land #14197, start testing on Ruby 2.7
This commit is contained in:
+2
-1
@@ -13,6 +13,7 @@ language: ruby
|
||||
rvm:
|
||||
- '2.5.8'
|
||||
- '2.6.6'
|
||||
- '2.7.2'
|
||||
|
||||
env:
|
||||
- CMD='bundle exec rake rspec-rerun:spec SPEC_OPTS="--tag content"'
|
||||
@@ -43,7 +44,7 @@ before_install:
|
||||
- ls -la ./.git/hooks
|
||||
- ./.git/hooks/post-merge
|
||||
# Update the bundler
|
||||
- gem update --system 3.0.6
|
||||
- gem update --system
|
||||
- gem install bundler
|
||||
before_script:
|
||||
- cp config/database.yml.travis config/database.yml
|
||||
|
||||
+1
-1
@@ -462,4 +462,4 @@ DEPENDENCIES
|
||||
yard
|
||||
|
||||
BUNDLED WITH
|
||||
1.17.3
|
||||
2.1.4
|
||||
|
||||
@@ -19,11 +19,13 @@ RSpec.describe Msf::Exploit::Remote::SMB::Server::Share do
|
||||
|
||||
let(:response_length) { 39 }
|
||||
let(:valid_response) do
|
||||
value =
|
||||
"\x00\x00\x00\x23\xff\x53\x4d\x42" +
|
||||
"\x04\x00\x00\x00\x00\x88\x01\xc8" +
|
||||
"\x00\x00\x00\x00\x00\x00\x00\x00" +
|
||||
"\x00\x00\x00\x00\x00\x00\x48\x47" +
|
||||
"\x00\x00\x44\x43\x00\x00\x00"
|
||||
value.b
|
||||
end
|
||||
|
||||
before(:example) do
|
||||
|
||||
@@ -20,6 +20,7 @@ RSpec.describe Msf::Exploit::Remote::SMB::Server::Share do
|
||||
|
||||
let(:default_response_length) { 73 }
|
||||
let(:default_response) do
|
||||
value =
|
||||
"\x00\x00\x00\x45\xff\x53\x4d\x42" +
|
||||
"\x72\x00\x00\x00\x00\x88\x01\xc8" +
|
||||
"\x00\x00\x00\x00\x00\x00\x00\x00" +
|
||||
@@ -30,8 +31,10 @@ RSpec.describe Msf::Exploit::Remote::SMB::Server::Share do
|
||||
"\x00\x00\x00\x00\x00\x00\x00\x00" +
|
||||
"\x00\x00\x00\x00\x00\x00\x00\x00" +
|
||||
"\x00"
|
||||
value.b
|
||||
end
|
||||
let(:valid_request) do
|
||||
value =
|
||||
"\x00\x00\x00\x85\xff\x53\x4d\x42\x72\x00\x00\x00\x00\x18\x43\xc8" +
|
||||
"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xfe" +
|
||||
"\x00\x00\x00\x00\x00\x62\x00\x02\x50\x43\x20\x4e\x45\x54\x57\x4f" +
|
||||
@@ -41,6 +44,7 @@ RSpec.describe Msf::Exploit::Remote::SMB::Server::Share do
|
||||
"\x73\x20\x33\x2e\x31\x61\x00\x02\x4c\x4d\x31\x2e\x32\x58\x30\x30" +
|
||||
"\x32\x00\x02\x4c\x41\x4e\x4d\x41\x4e\x32\x2e\x31\x00\x02\x4e\x54" +
|
||||
"\x20\x4c\x4d\x20\x30\x2e\x31\x32\x00"
|
||||
value.b
|
||||
end
|
||||
let(:valid_response_length) { 81 }
|
||||
let(:challenge_length) { 8 }
|
||||
|
||||
@@ -13,6 +13,7 @@ RSpec.shared_context 'Msf::StringIO' do
|
||||
end
|
||||
|
||||
s.msf_data = ''
|
||||
s.binmode
|
||||
|
||||
s
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user