Refactoring

This commit is contained in:
Bernardo Damele 2010-11-07 21:55:24 +00:00
parent 7a6c086a27
commit a96467b3e2

View File

@ -309,17 +309,15 @@ class Connect:
if not place: if not place:
place = kb.injPlace place = kb.injPlace
if kb.tamperFunctions: payload = agent.extractPayload(value)
payload = agent.extractPayload(value)
if payload: if payload:
if kb.tamperFunctions:
for function in kb.tamperFunctions: for function in kb.tamperFunctions:
payload = function(payload) payload = function(payload)
value = agent.replacePayload(value, payload) value = agent.replacePayload(value, payload)
payload = agent.extractPayload(value)
if payload:
debugMsg = "payload: %s" % payload debugMsg = "payload: %s" % payload
logger.debug(debugMsg) logger.debug(debugMsg)