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

Skip to content

Commit be81c20

Browse files
committed
Minor layout adjustment
1 parent 2aadc5c commit be81c20

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

lib/techniques/blind/inference.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ def downloadThread():
183183
if conf.threadContinue:
184184
charStart = time.time()
185185
val = getChar(curidx)
186+
186187
if val is None:
187188
raise sqlmapValueException, "failed to get character at index %d (expected %d total)" % (curidx, length)
188189
else:
@@ -196,13 +197,18 @@ def downloadThread():
196197
elif conf.verbose >= 1:
197198
startCharIndex = 0
198199
endCharIndex = 0
200+
199201
for i in xrange(length):
200202
if value[i] is not None:
201203
endCharIndex = max(endCharIndex, i)
204+
202205
output = ''
206+
203207
if endCharIndex > conf.progressWidth:
204208
startCharIndex = endCharIndex - conf.progressWidth
209+
205210
count = 0
211+
206212
for i in xrange(startCharIndex, endCharIndex):
207213
output += '_' if value[i] is None else value[i]
208214

@@ -224,6 +230,7 @@ def downloadThread():
224230
iolock.release()
225231

226232
except (sqlmapConnectionException, sqlmapValueException), errMsg:
233+
print
227234
conf.threadException = True
228235
logger.error("thread %d: %s" % (numThread + 1, errMsg))
229236

@@ -241,6 +248,7 @@ def downloadThread():
241248
raise sqlmapThreadException, "user aborted"
242249

243250
except:
251+
print
244252
conf.threadException = True
245253
errMsg = unhandledException()
246254
logger.error("thread %d: %s" % (numThread + 1, errMsg))

0 commit comments

Comments
 (0)