Module: Msf::Exploit::Remote::HTTP::Moodle::URIs

Included in:
Msf::Exploit::Remote::HTTP::Moodle
Defined in:
lib/msf/core/exploit/remote/http/moodle/uris.rb

Instance Method Summary collapse

Instance Method Details

#moodle_admin_addon_installString

Returns the Moodle Admin Addon Installation URL

Returns:

  • (String)

    Moodle admin addon installation URL



42
43
44
# File 'lib/msf/core/exploit/remote/http/moodle/uris.rb', line 42

def moodle_admin_addon_install
  normalize_uri(target_uri.path, 'admin', 'tool', 'installaddon', 'index.php')
end

#moodle_ajax_serviceString

Returns the Moodle Ajax Service URL

Returns:

  • (String)

    Moodle Ajax Service URL



28
29
30
# File 'lib/msf/core/exploit/remote/http/moodle/uris.rb', line 28

def moodle_ajax_service
  normalize_uri(target_uri.path, 'lib', 'ajax', 'service.php')
end

#moodle_enrol_ajaxString

Returns the Moodle AJAX Course Enrollment URL

Returns:

  • (String)

    Moodle AJAX course enrolment URL



21
22
23
# File 'lib/msf/core/exploit/remote/http/moodle/uris.rb', line 21

def moodle_enrol_ajax
  normalize_uri(target_uri.path, 'enrol', 'manual', 'ajax.php')
end

#moodle_url_loginString

Returns the Moodle Login URL

Returns:

  • (String)

    Moodle Login URL



7
8
9
# File 'lib/msf/core/exploit/remote/http/moodle/uris.rb', line 7

def 
  normalize_uri(target_uri.path, 'login', 'index.php')
end

#moodle_url_loginasString

Returns the Moodle Loginas URL

Returns:

  • (String)

    Moodle Login URL



14
15
16
# File 'lib/msf/core/exploit/remote/http/moodle/uris.rb', line 14

def moodle_url_loginas
  normalize_uri(target_uri.path, 'course', 'loginas.php')
end

#moodle_user_homeString

Returns the Moodle User Home URL

Returns:

  • (String)

    Moodle User Home URL



35
36
37
# File 'lib/msf/core/exploit/remote/http/moodle/uris.rb', line 35

def moodle_user_home
  normalize_uri(target_uri.path, 'user', 'index.php')
end