Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
73 changes: 69 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
}
},
{
"name": "Firefox & BurpProxy",
"name": "Firefox & Proxy",
"type": "firefox",
"request": "launch",
"reAttach": true,
Expand All @@ -66,19 +66,84 @@
"skipFiles": [
"static/src/externalLibraries/**"
],
"preferences": { // Burp Proxy
"preferences": { // Burp/mitmproxy etc.
"network.proxy.http": "127.0.0.1",
"network.proxy.http_port": 8080,
"network.proxy.type": 1,
"network.proxy.allow_hijacking_localhost": true
}
}
},
{
"name": "Statistics Generator",
"type": "debugpy",
"request": "launch",
"module": "app.statistics.statistics2",
"args": [
"${input:statsGroup}",
"--log",
"info",
"${input:skipScreenshots}",
"--allowDebug"
],
"env": {
"REVERSIM_INSTANCE": "${input:instancePath}"
},
"justMyCode": true,
"console": "integratedTerminal",
},
{
"name": "Statistics3",
"type": "debugpy",
"request": "launch",
"module": "app.statistics3.statistics3",
"args": [
],
"env": {
"REVERSIM_INSTANCE": "${input:instancePath}"
},
"justMyCode": true,
"console": "integratedTerminal",
},
],
"inputs": [
{
"id": "screenshotGeneratorPseudonym",
"description": "The pseudonym to generate the screenshots with. Create it by starting the game in a group with the level viewer.",
"type": "promptString"
}
},
{
"id": "statsGroup",
"description": "The script to be used to generate the csv file. \"app/statistics/csvGenerators/\"",
"type": "promptString",
"default": "paper"
},
{
"id": "statsFolder",
"description": "Select the folder containing the log files",
"type": "promptString",
"default": "instance/statistics"
},
{
"id": "skipScreenshots",
"type": "pickString",
"description": "Set this flag if the validation of the screenshots shall be skipped",
"default": "--skipScreenshots",
"options": [
"",
"--skipScreenshots"
]
},
{
"id": "configFile",
"description": "Select the gameConfig.json that was used for this group",
"type": "promptString",
"default": "instance/conf/gameConfig.json"
},
{
"id": "instancePath",
"description": "Select the instance folder that was used to launch the game",
"type": "promptString",
"default": "instance"
},
]
}
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

// Syntax highlighting for Jinja templates
"files.associations": {
"**/templates/*.html": "jinja",
"**/templates/*.html": "jinja-html",
"**/logFile_*.txt": "log",
},

Expand Down Expand Up @@ -130,6 +130,7 @@
"gameplay",
"gamerule",
"gamerules",
"gamestate",
"getpid",
"gnds",
"graphviz",
Expand All @@ -156,6 +157,7 @@
"ipympl",
"ISDEBUGGROUP",
"itsdangerous",
"jquery",
"kaniko",
"keepends",
"kolloqskill",
Expand Down Expand Up @@ -184,6 +186,7 @@
"Nmbr",
"noopener",
"noreferrer",
"noscript",
"NOTREACHED",
"NOTSTARTED",
"nullable",
Expand Down Expand Up @@ -224,6 +227,7 @@
"splitted",
"sqlalchemy",
"sqlite",
"stylesheet",
"subfolders",
"Teilnehmer",
"thinkaloud",
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@

# Labels as per:
# https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
MAINTAINER Max Planck Institute for Security and Privacy

Check warning on line 18 in Dockerfile

View workflow job for this annotation

GitHub Actions / build-and-push-image

The MAINTAINER instruction is deprecated, use a label instead to define an image author

MaintainerDeprecated: Maintainer instruction is deprecated in favor of using label More info: https://docs.docker.com/go/dockerfile/rule/maintainer-deprecated/
LABEL org.opencontainers.image.authors="Max Planck Institute for Security and Privacy"
# NOTE Also change the version in config.py
LABEL org.opencontainers.image.version="2.1.2"
LABEL org.opencontainers.image.version="2.1.3"
LABEL org.opencontainers.image.licenses="AGPL-3.0-only"
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."
LABEL org.opencontainers.image.source="https://github.com/emsec/ReverSim"
Expand Down
2 changes: 1 addition & 1 deletion app/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from flask_httpauth import HTTPTokenAuth # type: ignore

from app.config import BEARER_TOKEN_BYTES
from app.gameConfig import BEARER_TOKEN_BYTES
from app.model.ApiKey import ApiKey
from app.storage.database import db
from app.utilsGame import safe_join
Expand Down
Loading