Mirror of metasploit
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

msf-json-rpc.ru 635B

123456789101112131415161718192021
  1. # msf-json-rpc.ru
  2. # Start using thin:
  3. # thin --rackup msf-json-rpc.ru --address localhost --port 8081 --environment development --tag msf-json-rpc start
  4. #
  5. require 'pathname'
  6. @framework_path = '.'
  7. root = Pathname.new(@framework_path).expand_path
  8. @framework_lib_path = root.join('lib')
  9. $LOAD_PATH << @framework_lib_path unless $LOAD_PATH.include?(@framework_lib_path)
  10. require 'msfenv'
  11. if ENV['MSF_LOCAL_LIB']
  12. $LOAD_PATH << ENV['MSF_LOCAL_LIB'] unless $LOAD_PATH.include?(ENV['MSF_LOCAL_LIB'])
  13. end
  14. # Note: setup Rails environment before calling require
  15. require 'msf/core/web_services/json_rpc_app'
  16. run Msf::WebServices::JsonRpcApp