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

Instance Method Details

#gitea_url_loginString

Returns the Gitea Login URL

Returns:

  • (String)

    Gitea Login URL



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

def 
  normalize_uri(target_uri.path, 'user', 'login')
end

#gitea_url_repo_createString

Returns the Gitea Create repository URL

Returns:

  • (String)

    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_migrateString

Returns the Gitea Migrate repository URL

Returns:

  • (String)

    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

Returns:

  • (String)

    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