Ability to encode payloads, Fixed a bug in bruteforcer

This commit is contained in:
Somdev Sangwan
2018-11-13 16:47:00 +05:30
committed by GitHub
parent bbf9201356
commit 65abbd265f
6 changed files with 58 additions and 22 deletions

View File

@@ -1,10 +1,13 @@
import re
from core.config import badTags
from core.encoders import base64
from core.config import xsschecker
def htmlParser(response):
def htmlParser(response, encoding):
rawResponse = response
response = response.text
if encoding:
response = response.replace(encoding(xsschecker), xsschecker)
tags = [] # tags in which the input is reflected
locations = [] # contexts in which the input is reflected
attributes = [] # attribute names