-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.py
77 lines (55 loc) · 4.31 KB
/
config.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
'''
HOST = the TQ server to run against. Format must be in 'https://364-ova02.threatq.com/'
TQUSER = the initial user to use for login.py for very first run. After which "USER" will be used in all scripts
USER = This is the primary user that will be used. This user and other users are setup with 'addUsers.py' and 'ldap.p'
SOURCE = this is used to set the source box on several import UIs. Not important what the string is.
LONGRUN = will add a 20 min pause between method runs in each of the setup scripts. this is used to
WEBDRIVER = Defines which browser will be used across all setup scripts
'''
import subprocess
class CONFIG:
username = 'clint.hart'
hostname = 'te-22257' # Selenium automation will run against this host
SAML = False
# hostname = '10.20.0.151' # qa-platinum01
IPADDR = '44.230.223.102 '
waittime = 4
graphhost = ["te-22257"] # use for python server metric collection and graphing
if '.' in hostname:
server = hostname
else:
server = '%s.threatq.com' % hostname.lower()
HOST = 'https://' + server + '/' # Used primarily for all scripts
TIEHOST = 'https://upgrade01.threatq.com/' # Used in ExportCSV.py
TQUSER = ['[email protected]', 'ChangeMePlease!'] # Mainly used for initial login and ldap.py setup
USER = ['[email protected]', 'ChangeMePlease!'] #Default TQ system user
users = [
["Adversary Reader", "ChangeMePlease!", "[email protected]", "Administrative Access", "Adversary Reader Process"],
["Clint.Hart", "ChangeMePlease!", "[email protected]", "Maintenance Account", "Malware Attack"],
["john.doe", "ChangeMePlease!", "[email protected]", "Primary Contributor Access","DDoS Attack"],
["Han Solo", "ChangeMePlease!", "[email protected]", "Primary Contributor Access","DDoS Attack"],
["Jack Reacher", "ChangeMePlease!", "[email protected]", "Administrative Access", "Wannacry Incident"],
["John.Wick", "ChangeMePlease!", "[email protected]", "Administrative Access", "Unknown breach"],
["James.Bond", "ChangeMePlease!","[email protected]", "Read Only Access", "Russian Intrusion"],
["Bob Observer", "ChangeMePlease!", "[email protected]", "Read Only Access", "unknown breach"],
["Alice Contributor", "ChangeMePlease!", "[email protected]", "Primary Contributor Access", "DDos Attack"],
["Sue Maintenancer", "ChangeMePlease!", "[email protected]", "Maintenance Account", "DDos Attack"],
["Dave Administrator", "ChangeMePlease!", "[email protected]", "Administrative Access", "DDoS Attack"],
["[email protected]", "ChangeMePlease!", "[email protected]", "Administrative Access", "DDoS Attack"],
["[email protected]", "ChangeMePlease!", "[email protected]", "Maintenance Account","DDoS Attack"],
["[email protected]", "ChangeMePlease!", "[email protected]", "Primary Contributor Access", "DDoS Attack"],
["[email protected]", "ChangeMePlease!", "[email protected]","Read Only Access", "DDoS Attack"],
["tanuj", "ChangeMePlease!", "[email protected]", "Administrative Access", "DDoS Attack"],
["clinthart", "ChangeMePlease!", "[email protected]", "Primary Contributor Access", "DDoS Attack"],
["Guest", "ChangeMePlease!", "[email protected]", "Read Only Access", "DDoS Attack"],
["tqadmin1", "ChangeMePlease!", "[email protected]", "Administrative Access", "Wannacry Incident"],
["contributor", "ChangeMePlease!", "[email protected]", "Primary Contributor Access", "Wannacry Incident"],
["maintenance", "ChangeMePlease!", "[email protected]", "Maintenance Account", "Wannacry Incident"],
["read-only", "ChangeMePlease!", "[email protected]", "Read Only Access", "Wannacry Incident"]
]
SOURCE = 'Jack Reacher' # used to set the source text in the scripts
LONGRUN = False # If you wish to add 20 min wait to test auto logout.
WEBDRIVER = 'Chrome' # Chrome or Firefox are the possible values here.
MYSQLROOT = 'thisismySQLrootpassword'
# MYSQLROOT = 'thisismyrootpassword'
TQBACKUP = 'threatq_backup.tgz'