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

Skip to content

Commit 541cebd

Browse files
committed
More curl-alike options
1 parent d193b6e commit 541cebd

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.11.30"
21+
VERSION = "1.3.11.31"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/parse/cmdline.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,12 @@ def cmdLineParser(argv=None):
145145
# Request options
146146
request = parser.add_argument_group("Request", "These options can be used to specify how to connect to the target URL")
147147

148+
request.add_argument("-A", "--user-agent", dest="agent",
149+
help="HTTP User-Agent header value")
150+
151+
request.add_argument("-H", "--header", dest="header",
152+
help="Extra header (e.g. \"X-Forwarded-For: 127.0.0.1\")")
153+
148154
request.add_argument("--method", dest="method",
149155
help="Force usage of given HTTP method (e.g. PUT)")
150156

@@ -166,9 +172,6 @@ def cmdLineParser(argv=None):
166172
request.add_argument("--drop-set-cookie", dest="dropSetCookie", action="store_true",
167173
help="Ignore Set-Cookie header from response")
168174

169-
request.add_argument("--user-agent", dest="agent",
170-
help="HTTP User-Agent header value")
171-
172175
request.add_argument("--mobile", dest="mobile", action="store_true",
173176
help="Imitate smartphone through HTTP User-Agent header")
174177

@@ -181,9 +184,6 @@ def cmdLineParser(argv=None):
181184
request.add_argument("--referer", dest="referer",
182185
help="HTTP Referer header value")
183186

184-
request.add_argument("-H", "--header", dest="header",
185-
help="Extra header (e.g. \"X-Forwarded-For: 127.0.0.1\")")
186-
187187
request.add_argument("--headers", dest="headers",
188188
help="Extra headers (e.g. \"Accept-Language: fr\\nETag: 123\")")
189189

0 commit comments

Comments
 (0)