支持完整响应报文匹配
This commit is contained in:
18
HaE/HaE.py
18
HaE/HaE.py
@@ -58,11 +58,9 @@ class BurpExtender(IBurpExtender, ITab,IHttpListener, IMessageEditorTabFactory):
|
|||||||
if messageIsRequest:
|
if messageIsRequest:
|
||||||
return
|
return
|
||||||
content = messageInfo.getResponse()
|
content = messageInfo.getResponse()
|
||||||
r = self._helpers.analyzeResponse(content)
|
# content 为响应正文信息
|
||||||
msg = content[r.getBodyOffset():].tostring()
|
|
||||||
# msg 为响应正文信息
|
|
||||||
info = getConfig()
|
info = getConfig()
|
||||||
results = findContent(info, msg)
|
results = findContent(info, content)
|
||||||
colorList = []
|
colorList = []
|
||||||
if results != {}:
|
if results != {}:
|
||||||
for i in results:
|
for i in results:
|
||||||
@@ -205,13 +203,11 @@ class MarkINFOTab(IMessageEditorTab):
|
|||||||
|
|
||||||
# 非响应 没有匹配到不返回Tab标签页
|
# 非响应 没有匹配到不返回Tab标签页
|
||||||
def isEnabled(self, content, isRequest):
|
def isEnabled(self, content, isRequest):
|
||||||
r = self._helpers.analyzeResponse(content)
|
|
||||||
msg = content[r.getBodyOffset():].tostring()
|
|
||||||
info = getConfig()
|
info = getConfig()
|
||||||
if not isRequest:
|
if not isRequest:
|
||||||
content = findContent(info, msg)
|
contents = findContent(info, content)
|
||||||
if content != {}:
|
if contents != {}:
|
||||||
for i in content:
|
for i in contents:
|
||||||
if info[i]['extract'] == 1 :
|
if info[i]['extract'] == 1 :
|
||||||
return True
|
return True
|
||||||
|
|
||||||
@@ -220,10 +216,8 @@ class MarkINFOTab(IMessageEditorTab):
|
|||||||
# 判断是否有内容
|
# 判断是否有内容
|
||||||
if content:
|
if content:
|
||||||
if not isRequest:
|
if not isRequest:
|
||||||
r = self._helpers.analyzeResponse(content)
|
|
||||||
msg = content[r.getBodyOffset():].tostring()
|
|
||||||
info = getConfig()
|
info = getConfig()
|
||||||
contents = findContent(info, msg)
|
contents = findContent(info, content)
|
||||||
result = ""
|
result = ""
|
||||||
for i in contents:
|
for i in contents:
|
||||||
if info[i]['extract'] == 1 :
|
if info[i]['extract'] == 1 :
|
||||||
|
|||||||
Reference in New Issue
Block a user