Skip to content

Commit 2d85ef7

Browse files
committed
Clean up db startup script
1 parent 293d1ed commit 2d85ef7

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

msfdb

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,10 @@
11
#!/usr/bin/env ruby
22
# -*- coding: binary -*-
33
#
4-
# This user interface provides users with a command console interface to the
5-
# framework.
6-
#
4+
# Starts the HTTP DB Service interface
75

8-
#
9-
# Standard Library
10-
#
11-
12-
# msfbase = __FILE__
13-
# while File.symlink?(msfbase)
14-
# msfbase = File.expand_path(File.readlink(msfbase), File.dirname(msfbase))
15-
# end
16-
#
17-
# $:.unshift(File.expand_path(File.join(File.dirname(msfbase), 'lib')))
18-
# require 'msfenv'
196

207
require 'pathname'
21-
22-
#
23-
# Project
24-
#
25-
26-
# @see https://github.com/rails/rails/blob/v3.2.17/railties/lib/rails/generators/rails/app/templates/script/rails#L3-L5
278
require Pathname.new(__FILE__).realpath.expand_path.parent.join('config', 'boot')
289
require 'msf/core/db_manager/http/http_db_manager_service'
2910
HttpDBManagerService.new().start(:Port => '8080', :Host => '0.0.0.0')

0 commit comments

Comments
 (0)