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

Skip to content

Commit d40a238

Browse files
committed
Make --keep-alive public
1 parent 8625763 commit d40a238

4 files changed

Lines changed: 9 additions & 3 deletions

File tree

doc/ChangeLog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ sqlmap (0.9-1) stable; urgency=low
1010
(Bernardo).
1111
* Added support to fetch unicode data (Bernardo and Miroslav).
1212
* Added support for SOAP based web services requests (Bernardo).
13+
* Added support to use persistent HTTP(s) connection for speed
14+
improvement, --keep-alive switch (Miroslav).
1315
* Added safe URL feature, --safe-url and --safe-freq (Miroslav).
1416
* Added --use-between switch to use BETWEEN syntax in inferencial
1517
statement and bypass firewalls filtering '>' character (Bernardo and

lib/core/optiondict.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
"aType": "string",
5050
"aCred": "string",
5151
"aCert": "string",
52+
"keepAlive": "boolean",
5253
"proxy": "string",
5354
"ignoreProxy": "boolean",
5455
"threads": "integer",

lib/parse/cmdline.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ def cmdLineParser():
113113
help="HTTP authentication certificate ("
114114
"key_file,cert_file)")
115115

116+
request.add_option("--keep-alive", dest="keepAlive", action="store_true",
117+
help="Use persistent HTTP(s) connections")
118+
116119
request.add_option("--proxy", dest="proxy",
117120
help="Use a HTTP proxy to connect to the target url")
118121

@@ -454,9 +457,6 @@ def cmdLineParser():
454457
parser.add_option("--common-prediction", dest="useCommonPrediction", action="store_true",
455458
help=SUPPRESS_HELP)
456459

457-
parser.add_option("--keep-alive", dest="keepAlive", action="store_true",
458-
help=SUPPRESS_HELP)
459-
460460
parser.add_option_group(target)
461461
parser.add_option_group(request)
462462
parser.add_option_group(injection)

sqlmap.conf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ aCred =
8585
# Syntax: key_file,cert_file
8686
aCert =
8787

88+
# Use persistent HTTP(s) connections
89+
keepAlive = False
90+
8891
# Use a HTTP proxy to connect to the target url.
8992
# Syntax: http://address:port
9093
proxy =

0 commit comments

Comments
 (0)