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

Skip to content

Commit 0a0c696

Browse files
committed
Minor update
1 parent 0977f6d commit 0a0c696

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

extra/vulnserver/vulnserver.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,17 +139,24 @@ def do_REQUEST(self):
139139
self.end_headers()
140140

141141
try:
142+
output = ""
143+
144+
if self.params.get("echo", ""):
145+
output += "%s<br>" % self.params["echo"]
146+
142147
with _lock:
143148
_cursor.execute("SELECT * FROM users WHERE id=%s LIMIT 0, 1" % self.params.get("id", ""))
144149
results = _cursor.fetchall()
145150

146-
output = "<b>SQL results:</b>\n"
151+
output += "<b>SQL results:</b>\n"
147152
output += "<table border=\"1\">\n"
153+
148154
for row in results:
149155
output += "<tr>"
150156
for value in row:
151157
output += "<td>%s</td>" % value
152158
output += "</tr>\n"
159+
153160
output += "</table>\n"
154161
output += "</body></html>"
155162
except Exception as ex:

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.76"
21+
VERSION = "1.3.11.77"
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

6666
TESTS = (
6767
("-r <request> --flush-session", ("CloudFlare",)),
68+
("-u '<url>&echo=foobar*' --flush-session", ("might be vulnerable to cross-site scripting",)),
6869
("-u <url> --flush-session --forms --crawl=2 --banner", ("total of 2 targets", "might be injectable", "Type: UNION query", "banner: '3")),
6970
("-u <url> --flush-session --data='{\"id\": 1}' --banner", ("might be injectable", "3 columns", "Payload: {\"id\"", "Type: boolean-based blind", "Type: time-based blind", "Type: UNION query", "banner: '3")),
7071
("-u <url> --flush-session --data='<root><param name=\"id\" value=\"1*\"/></root>' --union-char=1 --mobile --banner --smart", ("might be injectable", "Payload: <root><param name=\"id\" value=\"1", "Type: boolean-based blind", "Type: time-based blind", "Type: UNION query", "banner: '3")),

0 commit comments

Comments
 (0)