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

Skip to content

Commit 60c7fb3

Browse files
committed
Minor update
1 parent e6edecb commit 60c7fb3

4 files changed

Lines changed: 6 additions & 1 deletion

File tree

extra/vulnserver/vulnserver.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ def do_REQUEST(self):
161161
def do_GET(self):
162162
self.do_REQUEST()
163163

164+
def do_PUT(self):
165+
self.do_REQUEST()
166+
164167
def do_POST(self):
165168
length = int(self.headers.get("Content-length", 0))
166169
if length:

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.38"
21+
VERSION = "1.3.11.39"
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/core/testing.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def vulnTest():
6565
("--flush-session", ("CloudFlare",)),
6666
("--flush-session --data='{\"id\": 1}' --banner", ("Payload: {\"id\"", "banner: '3")),
6767
("--flush-session --data='<root><param name=\"id\" value=\"1*\"/></root>' --banner", ("Payload: <root><param name=\"id\" value=\"1", "banner: '3")),
68+
("--flush-session --method=PUT --data='id=1' --banner", ("Parameter: id (PUT)", "banner: '3")),
6869
("--flush-session -H 'id: 1*' --tables", ("Parameter: id #1* ((custom) HEADER)", " users ")),
6970
("--flush-session --cookie=\"PHPSESSID=d41d8cd98f00b204e9800998ecf8427e; id=1*; id2=2\" --tables", ("Cookie #1* ((custom) HEADER)", " users ")),
7071
("--flush-session --parse-errors --eval=\"id2=2\" --referer=\"localhost\"", (": syntax error", "Type: boolean-based blind", "Type: time-based blind", "Type: UNION query", "back-end DBMS: SQLite", "3 columns")),

lib/request/methodrequest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class MethodRequest(_urllib.request.Request):
1414

1515
def set_method(self, method):
1616
self.method = method.upper()
17+
print("%s,%s" % (type(self.method), type(self.data)))
1718

1819
def get_method(self):
1920
return getattr(self, 'method', _urllib.request.Request.get_method(self))

0 commit comments

Comments
 (0)