lib/tasks/saas_google_groups_check.rb
## Default method, subclasses must override this
Default method, subclasses must override this
Default method subclasses must override this
def run
    super
    domain = _get_entity_name
    uri = "https://groups.google.com/a/#{domain}/forum/#!search/a"
    text = http_get_body uri
    if text =~ /gpf_stats.js/  && !text =~ /This group is on a private domain/
      _log_good "Success! Domain is configured and public."
      service_name = "groups.google.com"
      _create_linked_issue("google_groups_leak", {
        "uri" => uri,
        "username" => "#{domain}",
        "service" => service_name})
    elsif text =~ /This group is on a private domain/
      _log "This domain is configured in G Suite, but is not public."
    else
      _log "Unknown..."
    end
  end
def run super domain = _get_entity_name uri = "https://groups.google.com/a/#{domain}/forum/#!search/a" text = http_get_body uri if text =~ / gpf_stats.js / && ! text =~ / This group is on a private domain / _log_good "Success! Domain is configured and public." service_name = "groups.google.com" _create_linked_issue ( "google_groups_leak" , { "uri" => uri , "username" => "#{domain}" , "service" => service_name } ) elsif text =~ / This group is on a private domain / _log "This domain is configured in G Suite, but is not public." else _log "Unknown..." end end
Default method, subclasses must override this
Default method subclasses must override this
# good