|
14 | 14 | import time |
15 | 15 | import urllib2 |
16 | 16 | import urlparse |
| 17 | +import time |
17 | 18 | import traceback |
18 | 19 |
|
19 | 20 | from extra.safe2bin.safe2bin import safecharencode |
|
22 | 23 | from lib.core.common import calculateDeltaSeconds |
23 | 24 | from lib.core.common import clearConsoleLine |
24 | 25 | from lib.core.common import cpuThrottle |
| 26 | +from lib.core.common import dataToStdout |
25 | 27 | from lib.core.common import evaluateCode |
26 | 28 | from lib.core.common import extractRegexResult |
27 | 29 | from lib.core.common import findMultipartPostBoundary |
@@ -825,16 +827,20 @@ def _randomizeParameter(paramString, randomParameter): |
825 | 827 | warnMsg += "time-based injections because of its high latency time" |
826 | 828 | singleTimeWarnMessage(warnMsg) |
827 | 829 |
|
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) |
831 | 833 |
|
832 | 834 | while len(kb.responseTimes) < MIN_TIME_RESPONSES: |
833 | 835 | Connect.queryPage(content=True) |
| 836 | + dataToStdout('.') |
| 837 | + |
| 838 | + dataToStdout("\n") |
834 | 839 |
|
835 | 840 | 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 " |
838 | 844 | singleTimeWarnMessage(warnMsg) |
839 | 845 |
|
840 | 846 | if not kb.laggingChecked: |
|
0 commit comments