File tree Expand file tree Collapse file tree 11 files changed +1964
-2045
lines changed
documentation/modules/auxiliary/scanner/http
metasploit/framework/command
modules/auxiliary/scanner/http Expand file tree Collapse file tree 11 files changed +1964
-2045
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,6 @@ source 'https://rubygems.org'
3
3
# spec.add_runtime_dependency '<name>', [<version requirements>]
4
4
gemspec name : 'metasploit-framework'
5
5
6
-
7
- gem 'thin'
8
- gem 'sinatra'
9
-
10
6
# separate from test as simplecov is not run on travis-ci
11
7
group :coverage do
12
8
# code coverage for tests
Original file line number Diff line number Diff line change 62
62
ruby_smb (= 0.0.18 )
63
63
rubyntlm
64
64
rubyzip
65
+ sinatra
65
66
sqlite3
66
67
sshkey
68
+ thin
67
69
tzinfo
68
70
tzinfo-data
69
71
windows_error
@@ -378,6 +380,7 @@ PLATFORMS
378
380
DEPENDENCIES
379
381
factory_girl_rails
380
382
fivemat
383
+ google-protobuf (= 3.5.1 )
381
384
metasploit-aggregator
382
385
metasploit-framework !
383
386
octokit
@@ -387,8 +390,6 @@ DEPENDENCIES
387
390
rspec-rails
388
391
rspec-rerun
389
392
simplecov
390
- sinatra
391
- thin
392
393
timecop
393
394
yard
394
395
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -44,11 +44,7 @@ class Metasploit::Framework::Command::Base
44
44
#
45
45
# @return (see parsed_options)
46
46
def self . require_environment!
47
- # TODO: Look into removing Rails.application (save ~20mb)
48
- # return self.parsed_options if ( self.parsed_options.options.database.remote_process)
49
-
50
47
parsed_options = self . parsed_options
51
-
52
48
# RAILS_ENV must be set before requiring 'config/application.rb'
53
49
parsed_options . environment!
54
50
ARGV . replace ( parsed_options . positional )
@@ -83,9 +79,7 @@ def self.parsed_options_class_name
83
79
84
80
def self . start
85
81
parsed_options = require_environment!
86
- is_db_remote = false # parsed_options.options.database.remote_process
87
- application = is_db_remote ? nil : Rails . application
88
- new ( application : application , parsed_options : parsed_options ) . start
82
+ new ( application : Rails . application , parsed_options : parsed_options ) . start
89
83
end
90
84
91
85
#
Original file line number Diff line number Diff line change @@ -12,28 +12,20 @@ def init_module_paths(opts={})
12
12
return
13
13
end
14
14
15
- #is_remote_db = opts.delete(:is_remote_database)
16
15
allowed_module_paths = [ ]
17
-
18
- #if (!is_remote_db)
19
- extract_engine_module_paths ( Rails . application ) . each do |path |
20
- allowed_module_paths << path
21
- end
22
- #else
23
- # allowed_module_paths << "/home/chlee/rapid7/metasploit-framework/modules"
24
- #end
16
+ extract_engine_module_paths ( Rails . application ) . each do |path |
17
+ allowed_module_paths << path
18
+ end
25
19
26
20
if Msf ::Config . user_module_directory
27
21
allowed_module_paths << Msf ::Config . user_module_directory
28
22
end
29
23
30
- #unless (is_remote_db)
31
- ::Rails ::Engine . subclasses . map ( &:instance ) . each do |engine |
32
- extract_engine_module_paths ( engine ) . each do |path |
33
- allowed_module_paths << path
34
- end
24
+ ::Rails ::Engine . subclasses . map ( &:instance ) . each do |engine |
25
+ extract_engine_module_paths ( engine ) . each do |path |
26
+ allowed_module_paths << path
35
27
end
36
- # end
28
+ end
37
29
38
30
# If additional module paths have been defined globally, then load them.
39
31
# They should be separated by semi-colons.
Original file line number Diff line number Diff line change @@ -94,7 +94,6 @@ class Msf::DBManager
94
94
include Msf ::DBManager ::Web
95
95
include Msf ::DBManager ::Workspace
96
96
97
-
98
97
# Provides :framework and other accessors
99
98
include Msf ::Framework ::Offspring
100
99
Original file line number Diff line number Diff line change @@ -113,16 +113,14 @@ def initialize(framework)
113
113
114
114
last_seen_timer = Time . now . utc
115
115
116
- if framework . db . active
117
- ::ActiveRecord ::Base . connection_pool . with_connection do
118
- values . each do |s |
119
- # Update the database entry on a regular basis, marking alive threads
120
- # as recently seen. This notifies other framework instances that this
121
- # session is being maintained.
122
- if s . db_record
123
- s . db_record . last_seen = Time . now . utc
124
- s . db_record . save
125
- end
116
+ ::ActiveRecord ::Base . connection_pool . with_connection do
117
+ values . each do |s |
118
+ # Update the database entry on a regular basis, marking alive threads
119
+ # as recently seen. This notifies other framework instances that this
120
+ # session is being maintained.
121
+ if s . db_record
122
+ s . db_record . last_seen = Time . now . utc
123
+ s . db_record . save
126
124
end
127
125
end
128
126
end
You can’t perform that action at this time.
0 commit comments