Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f1f53a5

Browse files
committed
Minor cosmetic update
1 parent 490d512 commit f1f53a5

1 file changed

Lines changed: 11 additions & 5 deletions

File tree

lib/request/connect.py

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
import time
1515
import urllib2
1616
import urlparse
17+
import time
1718
import traceback
1819

1920
from extra.safe2bin.safe2bin import safecharencode
@@ -22,6 +23,7 @@
2223
from lib.core.common import calculateDeltaSeconds
2324
from lib.core.common import clearConsoleLine
2425
from lib.core.common import cpuThrottle
26+
from lib.core.common import dataToStdout
2527
from lib.core.common import evaluateCode
2628
from lib.core.common import extractRegexResult
2729
from lib.core.common import findMultipartPostBoundary
@@ -825,16 +827,20 @@ def _randomizeParameter(paramString, randomParameter):
825827
warnMsg += "time-based injections because of its high latency time"
826828
singleTimeWarnMessage(warnMsg)
827829

828-
warnMsg = "time-based comparison needs larger statistical "
829-
warnMsg += "model. Making a few dummy requests, please wait.."
830-
singleTimeWarnMessage(warnMsg)
830+
warnMsg = "[%s] [WARNING] time-based comparison requires " % time.strftime("%X")
831+
warnMsg += "larger statistical model, please wait"
832+
dataToStdout(warnMsg)
831833

832834
while len(kb.responseTimes) < MIN_TIME_RESPONSES:
833835
Connect.queryPage(content=True)
836+
dataToStdout('.')
837+
838+
dataToStdout("\n")
834839

835840
elif not kb.testMode:
836-
warnMsg = "it is very important not to stress the network adapter's "
837-
warnMsg += "bandwidth during usage of time-based payloads"
841+
warnMsg = "it is very important not to stress the network adapter "
842+
warnMsg += "during usage of time-based payloads to prevent potential "
843+
warnMsg += "errors "
838844
singleTimeWarnMessage(warnMsg)
839845

840846
if not kb.laggingChecked:

0 commit comments

Comments
 (0)