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

Skip to content

Commit f52d81c

Browse files
committed
Merge branch 'master' of github.com:sqlmapproject/sqlmap
2 parents 0b71c85 + a3acf72 commit f52d81c

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

lib/request/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ def decodePage(page, contentEncoding, contentType):
245245
# e.g. ’…™
246246
if "&#" in page:
247247
page = re.sub('&#(\d+);', lambda _: unichr(int(_.group(1))), page)
248-
248+
249249
# e.g. ζ
250250
page = re.sub('&([^;]+);', lambda _: unichr(htmlEntities[_.group(1)]) if htmlEntities.get(_.group(1), 0) > 255 else _.group(0), page)
251251

lib/utils/restapi.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
See the file 'doc/COPYING' for copying permission
66
"""
77

8-
import argparse
8+
import optparse
99
import os
1010
import sys
1111
import threading
@@ -210,12 +210,12 @@ def client(host, port):
210210
Standalone REST-JSON API wrapper function
211211
"""
212212

213-
parser = argparse.ArgumentParser()
214-
parser.add_argument("-s", "--server", help="Act as a REST-JSON API server", default=RESTAPI_SERVER_PORT, action="store_true", required=False)
215-
parser.add_argument("-c", "--client", help="Act as a REST-JSON API client", default=RESTAPI_SERVER_PORT, action="store_true", required=False)
216-
parser.add_argument("-H", "--host", help="Host of the REST-JSON API server", default="0.0.0.0", action="store", required=False)
217-
parser.add_argument("-p", "--port", help="Port of the the REST-JSON API server", default=RESTAPI_SERVER_PORT, action="store", required=False)
218-
args = parser.parse_args()
213+
parser = optparse.OptionParser()
214+
parser.add_option("-s", "--server", help="Act as a REST-JSON API server", default=RESTAPI_SERVER_PORT, action="store_true")
215+
parser.add_option("-c", "--client", help="Act as a REST-JSON API client", default=RESTAPI_SERVER_PORT, action="store_true")
216+
parser.add_option("-H", "--host", help="Host of the REST-JSON API server", default="0.0.0.0", action="store")
217+
parser.add_option("-p", "--port", help="Port of the the REST-JSON API server", default=RESTAPI_SERVER_PORT, action="store")
218+
(args, _) = parser.parse_args()
219219

220220
if args.server is True:
221221
restAPIrun(args.host, args.port)

tamper/space2mssqlblank.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def tamper(payload, **kwargs):
8383
retVal += random.choice(blanks)
8484

8585
continue
86-
86+
8787
retVal += payload[i]
8888

8989
return retVal

0 commit comments

Comments
 (0)