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

Skip to content

Commit 3cf1658

Browse files
committed
Increased default output level from 0 to 1
1 parent 428612b commit 3cf1658

4 files changed

Lines changed: 11 additions & 11 deletions

File tree

doc/ChangeLog

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ sqlmap (0.6.3-1) stable; urgency=low
2020
current database on MySQL and Microsoft SQL Server, the 'public'
2121
scheme on PostgreSQL and the 'USERS' TABLESPACE_NAME on Oracle;
2222
* Minor improvement to set by default in all HTTP requests the standard
23-
HTTP headers (Accept, Accept-Encoding, etc);
23+
client HTTP headers (Accept, Accept-Encoding, etc);
2424
* Minor improvements to sqlmap Debian package files: sqlmap uploaded
2525
to official Debian project repository, on queue at the moment;
2626
* Major bug fix to correctly handle httplib.BadStatusLine exception;
@@ -32,6 +32,7 @@ sqlmap (0.6.3-1) stable; urgency=low
3232
* Minor bug fix to correctly enumerate columns on Microsoft SQL Server;
3333
* Minor bug fix to correctly dump table entries when the column is
3434
provided;
35+
* Increased default output level from 0 to 1;
3536
* Updated documentation.
3637

3738
-- Bernardo Damele A. G. <[email protected]> Day, X YYY 2008 10:00:00 +0000

lib/core/option.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ def __saveCmdline():
612612
if datatype == "boolean":
613613
value = "False"
614614
elif datatype in ( "integer", "float" ):
615-
if option == "threads":
615+
if option in ( "threads", "verbose" ):
616616
value = "1"
617617
else:
618618
value = "0"
@@ -635,13 +635,12 @@ def __setVerbosity():
635635
This function set the verbosity of sqlmap output messages.
636636
"""
637637

638-
if not conf.verbose:
639-
conf.verbose = 0
640-
return
638+
if conf.verbose == None:
639+
conf.verbose = 1
641640

642641
conf.verbose = int(conf.verbose)
643642

644-
if conf.verbose <= 1:
643+
if conf.verbose == 1:
645644
logger.setLevel(logging.INFO)
646645
elif conf.verbose > 1 and conf.eta:
647646
conf.verbose = 1

lib/parse/cmdline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def cmdLineParser():
244244
"in real time")
245245

246246
miscellaneous.add_option("-v", dest="verbose", type="int",
247-
help="Verbosity level: 0-5 (default 0)")
247+
help="Verbosity level: 0-5 (default 1)")
248248

249249
miscellaneous.add_option("--update", dest="updateAll", action="store_true",
250250
help="Update sqlmap to the latest stable version")

sqlmap.conf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,14 +242,14 @@ eta = False
242242

243243
# Verbosity level.
244244
# Valid: integer between 0 and 5
245-
# 0: Silent
246-
# 1: Show info messages
245+
# 0: Show only warning and error messages
246+
# 1: Show also info messages
247247
# 2: Show also debug messages
248248
# 3: Show also HTTP requests
249249
# 4: Show also HTTP responses headers
250250
# 5: Show also HTTP responses page content
251-
# Default: 0
252-
verbose = 0
251+
# Default: 1
252+
verbose = 1
253253

254254
# Update sqlmap to the latest stable version.
255255
# Valid: True or False

0 commit comments

Comments
 (0)