CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
rapid7

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: rapid7/metasploit-framework
Path: blob/master/msf-ws.ru
Views: 11655
1
# msf-ws.ru
2
# Metasploit data web service
3
4
require 'pathname'
5
@framework_path = '.'
6
root = Pathname.new(@framework_path).expand_path
7
@framework_lib_path = root.join('lib')
8
$LOAD_PATH << @framework_lib_path.to_path unless $LOAD_PATH.include?(@framework_lib_path)
9
10
require 'msfenv'
11
12
if ENV['MSF_LOCAL_LIB']
13
$LOAD_PATH << ENV['MSF_LOCAL_LIB'] unless $LOAD_PATH.include?(ENV['MSF_LOCAL_LIB'])
14
end
15
16
run Msf::WebServices::MetasploitApiApp
17
18