bug fix for --dns-domain with --technique=TS

This commit is contained in:
Miroslav Stampar 2012-04-04 18:01:39 +00:00
parent 80228f67f6
commit c89a4162e2

View File

@ -502,6 +502,8 @@ class Connect:
string match check ('--string' command line parameter) string match check ('--string' command line parameter)
""" """
value = value.replace("[SLEEPTIME]", str(conf.timeSec)) if value else value
if conf.direct: if conf.direct:
return direct(value, content) return direct(value, content)
@ -519,9 +521,6 @@ class Connect:
if not place: if not place:
place = kb.injection.place or PLACE.GET place = kb.injection.place or PLACE.GET
if timeBasedCompare:
value = value.replace("[SLEEPTIME]", str(conf.timeSec))
raise404 = place != PLACE.URI if raise404 is None else raise404 raise404 = place != PLACE.URI if raise404 is None else raise404
payload = agent.extractPayload(value) payload = agent.extractPayload(value)