You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,22 +9,24 @@ Our modified version of the wptserve HTTP server implementation can be found in
9
9
## Setup
10
10
- Create a fresh Ubuntu22 container/VM: `lxc launch ubuntu:22.04 <name>` and connect to it `lxc exec <name> bash`
11
11
- Switch to the ubuntu user: `su - ubuntu`
12
-
- Clone this repository: `[email protected]:header-testing/header-testing.git`
12
+
- Clone this repository: `git clone git@github.com:header-testing/header-testing.git`
13
13
- Run the setup file: `cd header-testing/_hp`, `./setup.bash` (reopen all terminals or run `source ~/.bashrc` afterwards)
14
-
- Configure DB settings in [config.json](_hp/config.json)
14
+
- Configure DB settings in [config.json](_hp/tools/config.json); Make sure to create a database with the correct name
15
15
- Setup the database: `cd _hp/tools && poetry run python models.py`
16
16
- Setup certs: either remove `.demo` from the files in `_hp/tools/certs/` to use self-signed certs or add your own certs here
17
17
18
18
## Run Instructions
19
19
- Always start the WPT server first (from the top-most folder): `poetry run -C _hp python wpt serve --config _hp/wpt-config.json`
20
-
- Create the basic and parsing responses: Run `cd _hp/tools && poetry run create_responses.py` (basic), run `cd analysis` and execute `response_header_generation.ipynb` to generate the parsing responses.
20
+
- Create the basic and parsing responses: Run `cd _hp/tools && poetry run python create_responses.py` (basic), run `cd analysis` and execute `response_header_generation.ipynb` to generate the parsing responses.
21
21
- Manually check if the server and the tests are working: Visit http://sub.headers.websec.saarland:80/_hp/tests/framing.sub.html
22
22
- Automatic testrunners:
23
23
-`cd _hp/tools/crawler`
24
-
- Android: `poetry run android_intent.py` (Additional config required)
25
-
- MacOS/Ubuntu: `poetry run desktop_selenium.py`
26
-
- iPadOS/iOS: `poetry run desktop_selenium.py ----gen_page_runner --page_runner_json urls.json --max_urls_until_restart 10000"`, then visit the URLs in that file manually
27
-
- Analysis: Open `_hp/tools/analysis/main_analysis_desktop_basic+parsing.ipynb` (Also contains the mobile analysis)
24
+
- Android: `poetry run python android_intent.py` (Additional config required)
25
+
- MacOS/Ubuntu: `poetry run python desktop_selenium.py` (For a quick test run: `poetry run python desktop_selenium.py --debug_browsers --resp_type debug --ignore_certs`)
26
+
- iPadOS/iOS: `poetry run python desktop_selenium.py ----gen_page_runner --page_runner_json urls.json --max_urls_until_restart 10000"`, then visit the URLs in that file manually
27
+
- Analysis:
28
+
- Run `cd _hp/tools/analysis && poetry run jupyter-lab`
29
+
- Open `_hp/tools/analysis/main_analysis_desktop_basic+parsing.ipynb` (Also contains the mobile analysis)
28
30
29
31
## Inventory
30
32
-`_hp/`: All test and analysis code for the paper:
0 commit comments