├── python ├── flask-ctx │ ├── flask_ctx │ │ ├── __init__.py │ │ ├── tests │ │ │ ├── __init__.py │ │ │ └── context_processor_test.py │ │ └── context_processors.py │ ├── requirements.txt │ ├── MANIFEST.in │ ├── setup.cfg │ ├── AUTHORS │ ├── LICENSE │ ├── setup.py │ └── README.rst ├── django-ctx │ ├── django_ctx │ │ ├── __init__.py │ │ ├── tests │ │ │ ├── __init__.py │ │ │ ├── templates │ │ │ │ ├── variable.html │ │ │ │ ├── permutations.html │ │ │ │ ├── protect.html │ │ │ │ └── full_page.html │ │ │ ├── settings.py │ │ │ └── context_processor_test.py │ │ ├── templatetags │ │ │ ├── __init__.py │ │ │ └── ctx_tags.py │ │ ├── templates │ │ │ └── ctx │ │ │ │ ├── protected.html │ │ │ │ └── permutations.html │ │ └── context_processors.py │ ├── requirements.txt │ ├── MANIFEST.in │ ├── setup.cfg │ ├── AUTHORS │ ├── LICENSE │ ├── setup.py │ └── README.rst └── ctx-defense │ ├── ctx_defense │ ├── tests │ │ ├── __init__.py │ │ ├── permuters_test.py │ │ └── app_test.py │ ├── __init__.py │ ├── permuters.py │ └── app.py │ ├── MANIFEST.in │ ├── setup.cfg │ ├── AUTHORS │ ├── LICENSE │ ├── README.rst │ └── setup.py ├── etc ├── experiments │ ├── requirements.txt │ ├── experiment_library.py │ └── experiment.py ├── Black Hat Europe 2016 │ ├── BH-presentation.pdf │ ├── BH-presentation.pptx │ └── BH-eu2016-CTX.tex └── spec │ └── ARCHITECTURE.md ├── .gitignore ├── nodejs ├── ctx-defense │ ├── spec │ │ ├── run.js │ │ ├── support │ │ │ └── jasmine.json │ │ └── ctxspec.js │ ├── package.json │ ├── README.md │ └── ctx.js └── nodejs-ctx-defense │ ├── spec │ ├── run.js │ ├── support │ │ └── jasmine.json │ └── ctxspec.js │ ├── package.json │ ├── nodejs-ctx-defense.js │ ├── LICENSE │ └── README.md ├── Makefile ├── .travis.yml ├── client ├── bower.json ├── package.json ├── __tests__ │ ├── ctx_example.html │ └── ctx.spec.js ├── my.conf.js └── ctx.js ├── README.md └── LICENSE /python/flask-ctx/flask_ctx/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django-ctx/django_ctx/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /etc/experiments/requirements.txt: -------------------------------------------------------------------------------- 1 | ctx-defense 2 | -------------------------------------------------------------------------------- /python/ctx-defense/ctx_defense/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django-ctx/django_ctx/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/flask-ctx/flask_ctx/tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django-ctx/django_ctx/templatetags/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/flask-ctx/requirements.txt: -------------------------------------------------------------------------------- 1 | Flask>=0.10 2 | ctx-defense 3 | -------------------------------------------------------------------------------- /python/django-ctx/django_ctx/tests/templates/variable.html: -------------------------------------------------------------------------------- 1 | {{ ctx }} 2 | -------------------------------------------------------------------------------- /python/django-ctx/requirements.txt: -------------------------------------------------------------------------------- 1 | Django>=1.9 2 | ctx-defense 3 | nose 4 | -------------------------------------------------------------------------------- /python/ctx-defense/MANIFEST.in: -------------------------------------------------------------------------------- 1 | include AUTHORS 2 | include LICENSE 3 | include README.rst 4 | -------------------------------------------------------------------------------- /python/flask-ctx/MANIFEST.in: -------------------------------------------------------------------------------- 1 | include AUTHORS 2 | include LICENSE 3 | include README.rst 4 | -------------------------------------------------------------------------------- /python/django-ctx/django_ctx/tests/templates/permutations.html: -------------------------------------------------------------------------------- 1 | {% load ctx_tags %}{% ctx_permutations %} 2 | -------------------------------------------------------------------------------- /python/django-ctx/django_ctx/tests/templates/protect.html: -------------------------------------------------------------------------------- 1 | {% load ctx_tags %}{% ctx_protect "secret" "origin" %} 2 | -------------------------------------------------------------------------------- /python/django-ctx/django_ctx/templates/ctx/protected.html: -------------------------------------------------------------------------------- 1 |
* HTML tag. 57 | 58 | - Include the ctx *client script* in the template: 59 | ```html 60 | 61 | ``` 62 | 63 | Example 64 | ======= 65 | 66 | ```html 67 | 68 | 69 | 70 | 71 |
72 | 73 |
74 | 75 | 76 |
83 | 84 |