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

Skip to content

Commit 17d74fc

Browse files
committed
cosmeticado
1 parent cd337d9 commit 17d74fc

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

lib/techniques/brute/use.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,11 @@ def tableExistsThread():
7575
iolock.release()
7676

7777
if conf.threads > 1:
78-
debugMsg = "starting %d thread%s" % (conf.threads, ("s" if conf.threads > 1 else ""))
78+
debugMsg = "starting %d threads" % conf.threads
7979
logger.debug(debugMsg)
80+
else:
81+
warnMsg = "running in a single-thread mode. this could take a while."
82+
logger.warn(warnMsg)
8083

8184
# Start the threads
8285
for numThread in range(conf.threads):
@@ -172,8 +175,11 @@ def columnExistsThread():
172175
iolock.release()
173176

174177
if conf.threads > 1:
175-
debugMsg = "starting %d thread%s" % (conf.threads, ("s" if conf.threads > 1 else ""))
178+
debugMsg = "starting %d threads" % conf.threads
176179
logger.debug(debugMsg)
180+
else:
181+
warnMsg = "running in a single-thread mode. this could take a while."
182+
logger.warn(warnMsg)
177183

178184
# Start the threads
179185
for numThread in range(conf.threads):

0 commit comments

Comments
 (0)