-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun-commands.txt
65 lines (49 loc) · 1.48 KB
/
run-commands.txt
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
Installation:
Configuring all system
$ sudo apt-get install python-dev imagemagick libffi-dev libssl-dev swig
$ pip install virtualenv
$ git clone https://code.ua.pt/git/security2015-p2g5
$ cd security2015-p2g5
$ virtualenv venv
$ . venv/bin/activate
$ pip install -r requirements.txt
Install midleware CC package:
$ dpkg -i cartaodecidadao-ubuntu-1.60.0-1608.x86_64.deb
Import Certificate Authority to your browser:
- Go to Certificates/CertificateAuthority
- Open CA-IEDCS.pem with browser (firefox recommended)
Install Server Certificates (on venv):
You need to be on folder security2015-p2g5 and with venv
$ ./install_server_certificates.sh
--------------------------------------------
Start Server
$ cd security2015-p2g5
$ . venv/bin/activate
(venv)$ ./deploy-server.sh
Website
First start Server
Go to browser and open
https://localhost:8000
Now, it's just a normal website
- Register
- Log in
- Buy something
- Logout
Start Player (python files)
$ cd security2015p2g5
$ . venv/bin/activate
$ cd IEDCSPlayer
$ python Player.py
Start Player (exe file downloaded from website)
--------------------------------------------
Credentials
Server Admin: https://localhost:8000/admin
username: admin
password: admin
Website: https://localhost:8000/Account/login/
You can user Register page to create new user
Or you can use one existing:
○ username: user
○ password: user
Player:
Use the same credentials as on website