Skip to content

Commit

Permalink
Thanks adfoster for spec fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
h00die committed Feb 22, 2024
1 parent e7ca948 commit d85f257
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
4 changes: 3 additions & 1 deletion spec/lib/msf/core/exploit/remote/x11.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: binary -*-

require 'spec_helper'

RSpec.describe Msf::Exploit::Remote::X11 do
Expand Down Expand Up @@ -92,7 +94,7 @@
)
expect(request.to_binary_s).to eq(free_gc)
request = Msf::Exploit::Remote::X11::X11FREEGRAPHICALCONTEXTREQUEST.read(free_gc)
expect(request.opcode).to eq(43)
expect(request.opcode).to eq(60)
expect(request.gc).to eq(33554432)
end
end
Expand Down
13 changes: 2 additions & 11 deletions spec/lib/msf/core/exploit/remote/x11/connect.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: binary -*-

require 'spec_helper'

RSpec.describe Msf::Exploit::Remote::X11::Connect do
Expand Down Expand Up @@ -1247,15 +1249,4 @@
expect(response.screen_height_in_pixels).to eq(832)
end
end

describe 'handles connection response 3' do
it do
response = Msf::Exploit::Remote::X11::X11CONNECTION.read(conn_resp3)
expect(response.success).to eq(1)
expect(response.resource_id_base).to eq(52428800)
expect(response.vendor).to eq('The X.Org Foundation')
expect(response.screen_width_in_pixels).to eq(958)
expect(response.screen_height_in_pixels).to eq(832)
end
end
end
2 changes: 2 additions & 0 deletions spec/lib/msf/core/exploit/remote/x11/extensions.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: binary -*-

require 'spec_helper'

RSpec.describe Msf::Exploit::Remote::X11::Extensions do
Expand Down
2 changes: 2 additions & 0 deletions spec/lib/msf/core/exploit/remote/x11/xkeyboard.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# -*- coding: binary -*-

require 'spec_helper'

RSpec.describe Msf::Exploit::Remote::X11::Xkeyboard do
Expand Down

0 comments on commit d85f257

Please sign in to comment.