-
Notifications
You must be signed in to change notification settings - Fork 22
/
reserved.py
44 lines (36 loc) · 1.55 KB
/
reserved.py
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
41
42
43
44
reserved_names = [
# Names that might be used for phishing
'about', 'account', 'admin', 'administrator', 'anonymous', 'billing',
'board', 'calendar', 'contact', 'copyright', 'data', 'development',
'donate', 'dotfile', 'email', 'example', 'feedback', 'forum', 'image',
'inbox', 'index', 'invite', 'jabber', 'legal', 'main', 'manage',
'media', 'message', 'mobile', 'official', 'payment', 'photos',
'picture', 'policy', 'portal', 'press', 'private', 'sitemap', 'staff',
'staging', 'status', 'user', 'username',
# Usernames reserved in Debian
'root', 'daemon', 'bin', 'sys', 'sync', 'games', 'man', 'lp',
'proxy', 'www-data', 'backup', 'list', 'irc', 'gnats', 'nobody',
'ntpd', 'statd', 'sshd', 'messagebus', 'unbound', 'postfix',
'postgres', 'nslcd', 'glances', 'oident', 'bitlbee', 'redis',
'epmd',
# #! service names
'chat', 'finger', 'git', 'im', 'irc', 'ldap', 'mail', 'voip', 'www',
'mumble'
# Non-RFC2142 email aliases
'mailer-daemon', 'nobody', 'root', 'team'
# RFC2142 mailbox names
# Business related
'info', 'marketing', 'sales', 'support',
# Network operations
'abuse', 'noc', 'security'
# Support for specific services
'ftp', 'hostmaster', 'news', 'usenet',
'uucp', 'postmaster', 'webmaster', 'www'
]
reserved_usernames = reserved_names
reserved_usernames += [name + 's'
for name in reserved_names
if name[-1] != 's']
RESERVED_USERNAMES = frozenset(reserved_usernames)
del reserved_usernames
del reserved_names