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.

local.rb 640B

1234567891011121314151617181920212223242526
  1. # -*- coding: binary -*-
  2. ###
  3. #
  4. # A specialization of the {Exploit exploit module class} that is geared
  5. # toward exploits that are performed locally. Locally, in this case,
  6. # is defined as an exploit that is realized by means other than
  7. # network communication.
  8. #
  9. ###
  10. class Msf::Exploit::Local < Msf::Exploit
  11. require 'msf/core/post_mixin'
  12. include Msf::PostMixin
  13. #
  14. # Returns the fact that this exploit is a local exploit.
  15. #
  16. def exploit_type
  17. Msf::Exploit::Type::Local
  18. end
  19. def run_simple(opts = {}, &block)
  20. raise NotImplementedError, ' - This way of running the local exploit is currently not supported.'
  21. end
  22. end