1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
##
# This file is part of WhatWeb and may be subject to
# redistribution and commercial restrictions. Please see the WhatWeb
# web site for more information on licensing and terms of use.
# https://morningstarsecurity.com/research/whatweb
##
Plugin.define do
name "Slack-Workspace"
authors [
'bcoles', # v0.1 - 2020-09-13
]
version "0.1"
description "A Slack workspace is made up of channels where team members can communicate and work together. When you join a workspace, you'll need to create a Slack account using your email address."
website "https://slack.com/intl/en/help/articles/212675257-Join-a-Slack-workspace"
dorks [
]
matches [
]
passive do
m = []
return m unless @base_uri.to_s =~ %r{^https://[^\s^/]+?\.slack\.com}
team_name = @body.to_s.scan(%r{teamName":"(.+?)"}).flatten.first
if team_name
m << { :string=>team_name }
end
email_domain = @body.to_s.scan(%r{formattedEmailDomains":"(.+?)"}).flatten.first
if email_domain
m << { :string=>email_domain }
end
m
end
end
|