Module: Msf::Exploit::Remote::HTTP::Gitea::URIs
- Included in:
- Msf::Exploit::Remote::HTTP::Gitea
- Defined in:
- lib/msf/core/exploit/remote/http/gitea/uris.rb
Instance Method Summary collapse
-
#gitea_url_login ⇒ String
Returns the Gitea Login URL.
-
#gitea_url_repo_create ⇒ String
Returns the Gitea Create repository URL.
-
#gitea_url_repo_migrate ⇒ String
Returns the Gitea Migrate repository URL.
-
#gitea_url_repo_settings(path) ⇒ String
Returns the Gitea Settings repository URL.
Instance Method Details
#gitea_url_login ⇒ String
Returns the Gitea Login URL
7 8 9 |
# File 'lib/msf/core/exploit/remote/http/gitea/uris.rb', line 7 def gitea_url_login normalize_uri(target_uri.path, 'user', 'login') end |
#gitea_url_repo_create ⇒ String
Returns the Gitea Create repository URL
14 15 16 |
# File 'lib/msf/core/exploit/remote/http/gitea/uris.rb', line 14 def gitea_url_repo_create normalize_uri(target_uri.path, 'repo', 'create') end |
#gitea_url_repo_migrate ⇒ String
Returns the Gitea Migrate repository URL
21 22 23 |
# File 'lib/msf/core/exploit/remote/http/gitea/uris.rb', line 21 def gitea_url_repo_migrate normalize_uri(target_uri.path, 'repo', 'migrate') end |
#gitea_url_repo_settings(path) ⇒ String
Returns the Gitea Settings repository URL
28 29 30 |
# File 'lib/msf/core/exploit/remote/http/gitea/uris.rb', line 28 def gitea_url_repo_settings(path) normalize_uri(target_uri.path, path, 'settings') end |