Skip to content

Commit 310f8b0

Browse files
authored
Merge pull request #6 from emsec/dev
Fix - [object Object] in crash reporter - Pseuodnyms starting with 0 are discarded in crash reporter - screenshots are taken too early before switch click is correctly rendered - timeout not cleared for IntroduceElements and IntroduceDrawingTools - skip button could be double clicked since clearing the tweens would cause the `setInteractive()` to be called early Changes: - new statistics parser (statistics3) - refactor gameConfig to be a class instead of a module
2 parents ecbdda8 + 5664a63 commit 310f8b0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1746
-946
lines changed

.vscode/launch.json

Lines changed: 69 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
}
5858
},
5959
{
60-
"name": "Firefox & BurpProxy",
60+
"name": "Firefox & Proxy",
6161
"type": "firefox",
6262
"request": "launch",
6363
"reAttach": true,
@@ -66,19 +66,84 @@
6666
"skipFiles": [
6767
"static/src/externalLibraries/**"
6868
],
69-
"preferences": { // Burp Proxy
69+
"preferences": { // Burp/mitmproxy etc.
7070
"network.proxy.http": "127.0.0.1",
7171
"network.proxy.http_port": 8080,
7272
"network.proxy.type": 1,
7373
"network.proxy.allow_hijacking_localhost": true
7474
}
75-
}
75+
},
76+
{
77+
"name": "Statistics Generator",
78+
"type": "debugpy",
79+
"request": "launch",
80+
"module": "app.statistics.statistics2",
81+
"args": [
82+
"${input:statsGroup}",
83+
"--log",
84+
"info",
85+
"${input:skipScreenshots}",
86+
"--allowDebug"
87+
],
88+
"env": {
89+
"REVERSIM_INSTANCE": "${input:instancePath}"
90+
},
91+
"justMyCode": true,
92+
"console": "integratedTerminal",
93+
},
94+
{
95+
"name": "Statistics3",
96+
"type": "debugpy",
97+
"request": "launch",
98+
"module": "app.statistics3.statistics3",
99+
"args": [
100+
],
101+
"env": {
102+
"REVERSIM_INSTANCE": "${input:instancePath}"
103+
},
104+
"justMyCode": true,
105+
"console": "integratedTerminal",
106+
},
76107
],
77108
"inputs": [
78109
{
79110
"id": "screenshotGeneratorPseudonym",
80111
"description": "The pseudonym to generate the screenshots with. Create it by starting the game in a group with the level viewer.",
81112
"type": "promptString"
82-
}
113+
},
114+
{
115+
"id": "statsGroup",
116+
"description": "The script to be used to generate the csv file. \"app/statistics/csvGenerators/\"",
117+
"type": "promptString",
118+
"default": "paper"
119+
},
120+
{
121+
"id": "statsFolder",
122+
"description": "Select the folder containing the log files",
123+
"type": "promptString",
124+
"default": "instance/statistics"
125+
},
126+
{
127+
"id": "skipScreenshots",
128+
"type": "pickString",
129+
"description": "Set this flag if the validation of the screenshots shall be skipped",
130+
"default": "--skipScreenshots",
131+
"options": [
132+
"",
133+
"--skipScreenshots"
134+
]
135+
},
136+
{
137+
"id": "configFile",
138+
"description": "Select the gameConfig.json that was used for this group",
139+
"type": "promptString",
140+
"default": "instance/conf/gameConfig.json"
141+
},
142+
{
143+
"id": "instancePath",
144+
"description": "Select the instance folder that was used to launch the game",
145+
"type": "promptString",
146+
"default": "instance"
147+
},
83148
]
84149
}

.vscode/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
// Syntax highlighting for Jinja templates
4343
"files.associations": {
44-
"**/templates/*.html": "jinja",
44+
"**/templates/*.html": "jinja-html",
4545
"**/logFile_*.txt": "log",
4646
},
4747

@@ -130,6 +130,7 @@
130130
"gameplay",
131131
"gamerule",
132132
"gamerules",
133+
"gamestate",
133134
"getpid",
134135
"gnds",
135136
"graphviz",
@@ -156,6 +157,7 @@
156157
"ipympl",
157158
"ISDEBUGGROUP",
158159
"itsdangerous",
160+
"jquery",
159161
"kaniko",
160162
"keepends",
161163
"kolloqskill",
@@ -184,6 +186,7 @@
184186
"Nmbr",
185187
"noopener",
186188
"noreferrer",
189+
"noscript",
187190
"NOTREACHED",
188191
"NOTSTARTED",
189192
"nullable",
@@ -224,6 +227,7 @@
224227
"splitted",
225228
"sqlalchemy",
226229
"sqlite",
230+
"stylesheet",
227231
"subfolders",
228232
"Teilnehmer",
229233
"thinkaloud",

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ARG PROMETHEUS_MULTIPROC_DIR="/tmp/prometheus_multiproc"
1818
MAINTAINER Max Planck Institute for Security and Privacy
1919
LABEL org.opencontainers.image.authors="Max Planck Institute for Security and Privacy"
2020
# NOTE Also change the version in config.py
21-
LABEL org.opencontainers.image.version="2.1.2"
21+
LABEL org.opencontainers.image.version="2.1.3"
2222
LABEL org.opencontainers.image.licenses="AGPL-3.0-only"
2323
LABEL org.opencontainers.image.description="Ready to deploy Docker container to use ReverSim for research. ReverSim is an open-source environment for the browser, originally developed at the Max Planck Institute for Security and Privacy (MPI-SP) to study human aspects in hardware reverse engineering."
2424
LABEL org.opencontainers.image.source="https://github.com/emsec/ReverSim"

app/authentication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from flask_httpauth import HTTPTokenAuth # type: ignore
66

7-
from app.config import BEARER_TOKEN_BYTES
7+
from app.gameConfig import BEARER_TOKEN_BYTES
88
from app.model.ApiKey import ApiKey
99
from app.storage.database import db
1010
from app.utilsGame import safe_join

0 commit comments

Comments
 (0)