Skip to content

Commit a338b4a

Browse files
committed
Merge branch 'feature/MSP-10029/core-search' into staging/electro-release
Support search
2 parents 9db951c + 14fa49c commit a338b4a

File tree

3 files changed

+20
-22
lines changed

3 files changed

+20
-22
lines changed

Gemfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ group :db do
77
# Needed for Msf::DbManager
88
gem 'activerecord', '>= 3.0.0', '< 4.0.0'
99
# Metasploit::Credential database models
10-
gem 'metasploit-credential', git: 'github-metasploit-credential:rapid7/metasploit-credential.git', tag: 'v0.7.1.pre.electro.pre.release'
10+
gem 'metasploit-credential', '>= 0.7.10.pre.core.pre.search', '< 0.8'
1111
# Database models shared between framework and Pro.
12-
gem 'metasploit_data_models', '>= 0.18.0', '< 0.19'
12+
gem 'metasploit_data_models', '~> 0.19'
1313
# Needed for module caching in Mdm::ModuleDetails
1414
gem 'pg', '>= 0.11'
1515
end

Gemfile.lock

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,3 @@
1-
GIT
2-
remote: github-metasploit-credential:rapid7/metasploit-credential.git
3-
revision: d5784729bf65a6419a05e2aaac1be217c4f93ff1
4-
tag: v0.7.1.pre.electro.pre.release
5-
specs:
6-
metasploit-credential (0.7.1.pre.electro.pre.release)
7-
metasploit-concern (~> 0.1.0)
8-
metasploit-model (>= 0.25.6)
9-
metasploit_data_models (>= 0.18.0.pre.compatibility, < 0.19)
10-
rubyntlm
11-
rubyzip (~> 1.1)
12-
131
PATH
142
remote: .
153
specs:
@@ -53,6 +41,8 @@ GEM
5341
i18n (~> 0.6, >= 0.6.4)
5442
multi_json (~> 1.0)
5543
arel (3.0.3)
44+
arel-helpers (2.0.0)
45+
activerecord (>= 3.1.0, < 5)
5646
bcrypt (3.1.7)
5747
builder (3.0.4)
5848
coderay (1.1.0)
@@ -70,11 +60,19 @@ GEM
7060
json (1.8.1)
7161
metasploit-concern (0.1.1)
7262
activesupport (~> 3.0, >= 3.0.0)
63+
metasploit-credential (0.7.10.pre.core.pre.search)
64+
metasploit-concern (~> 0.1.0)
65+
metasploit-model (>= 0.25.6)
66+
metasploit_data_models (~> 0.19)
67+
pg
68+
rubyntlm
69+
rubyzip (~> 1.1)
7370
metasploit-model (0.25.6)
7471
activesupport
75-
metasploit_data_models (0.18.0)
72+
metasploit_data_models (0.19.0)
7673
activerecord (>= 3.2.13, < 4.0.0)
7774
activesupport
75+
arel-helpers
7876
metasploit-concern (~> 0.1.0)
7977
metasploit-model (>= 0.25.1, < 0.26)
8078
pg
@@ -161,9 +159,9 @@ DEPENDENCIES
161159
factory_girl (>= 4.1.0)
162160
factory_girl_rails
163161
fivemat (= 1.2.1)
164-
metasploit-credential!
162+
metasploit-credential (>= 0.7.10.pre.core.pre.search, < 0.8)
165163
metasploit-framework!
166-
metasploit_data_models (>= 0.18.0, < 0.19)
164+
metasploit_data_models (~> 0.19)
167165
network_interface (~> 0.0.1)
168166
pcaprub
169167
pg (>= 0.11)

spec/lib/msf/ui/command_dispatcher/db_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@
7373
describe "-p" do
7474
before(:each) do
7575
host = FactoryGirl.create(:mdm_host, :workspace => framework.db.workspace, :address => "192.168.0.1")
76-
FactoryGirl.create(:mdm_service, :host => host, :port => 1024, name: 'Service1')
77-
FactoryGirl.create(:mdm_service, :host => host, :port => 1025, name: 'Service2')
78-
FactoryGirl.create(:mdm_service, :host => host, :port => 1026, name: 'Service3')
76+
FactoryGirl.create(:mdm_service, :host => host, :port => 1024, name: 'Service1', proto: 'udp')
77+
FactoryGirl.create(:mdm_service, :host => host, :port => 1025, name: 'Service2', proto: 'tcp')
78+
FactoryGirl.create(:mdm_service, :host => host, :port => 1026, name: 'Service3', proto: 'udp')
7979
end
8080
it "should list services that are on a given port" do
8181
db.cmd_services "-p", "1024,1025"
@@ -85,8 +85,8 @@
8585
"",
8686
"host port proto name state info",
8787
"---- ---- ----- ---- ----- ----",
88-
"192.168.0.1 1024 snmp Service1 open ",
89-
"192.168.0.1 1025 snmp Service2 open "
88+
"192.168.0.1 1024 udp Service1 open ",
89+
"192.168.0.1 1025 tcp Service2 open "
9090
]
9191
end
9292
end

0 commit comments

Comments
 (0)