Browse Source

Add Metasploit data web service rackup file

Matthew Kienow 6 months ago
parent
commit
e7e0503f3e
No account linked to committer's email address
1 changed files with 20 additions and 0 deletions
  1. 20
    0
      msf-ws.ru

+ 20
- 0
msf-ws.ru View File

@@ -0,0 +1,20 @@
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 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
+# Note: setup Rails environment before calling require
17
+require 'msf/core/web_services/metasploit_api_app'
18
+
19
+# run Msf::WebServices::JsonRpcApp
20
+run MetasploitApiApp

Loading…
Cancel
Save