Skip to content
Permalink
aa6981837c
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
35 lines (18 sloc) 581 Bytes
{% extends "levelBase.html" %}
{% block content %}
{% markdown %}
The developer knows that ```script``` tags are bad, so removes them from the output.
This time, we are using a regexp
### Filter
```python
def filter(data):
regexp = re.compile("<\/?script>", re.IGNORECASE)
payload = re.sub("", payload)
return payload
```
??? tip "Hint"
We cant stop the script tags being found.
However, What happens to the output *after* the script is removed.
{% endmarkdown%}
{% endblock content%}
{# Overload the default form with a defaultForm block #}