Add Metasploit data web service rackup file

GSoC/Meterpreter_Web_Console
Matthew Kienow 2019-01-14 23:26:00 -05:00
parent d8515ba056
commit e7e0503f3e
No known key found for this signature in database
GPG Key ID: 40787F8B1EAC6E41
1 changed files with 20 additions and 0 deletions

20
msf-ws.ru Normal file
View File

@ -0,0 +1,20 @@
# msf-ws.ru
# Metasploit data web service
require 'pathname'
@framework_path = '.'
root = Pathname.new(@framework_path).expand_path
@framework_lib_path = root.join('lib')
$LOAD_PATH << @framework_lib_path unless $LOAD_PATH.include?(@framework_lib_path)
require 'msfenv'
if ENV['MSF_LOCAL_LIB']
$LOAD_PATH << ENV['MSF_LOCAL_LIB'] unless $LOAD_PATH.include?(ENV['MSF_LOCAL_LIB'])
end
# Note: setup Rails environment before calling require
require 'msf/core/web_services/metasploit_api_app'
# run Msf::WebServices::JsonRpcApp
run MetasploitApiApp