You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extra/vulnserver/vulnserver.py
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@
9
9
10
10
from __future__ importprint_function
11
11
12
+
importbase64
12
13
importjson
13
14
importre
14
15
importsqlite3
@@ -146,7 +147,10 @@ def do_REQUEST(self):
146
147
if"query"inself.params:
147
148
_cursor.execute(self.params["query"])
148
149
elif"id"inself.params:
149
-
_cursor.execute("SELECT * FROM users WHERE id=%s LIMIT 0, 1"%self.params["id"])
150
+
if"base64"inself.params:
151
+
_cursor.execute("SELECT * FROM users WHERE id=%s LIMIT 0, 1"%base64.b64decode("%s==="%self.params["id"], altchars=self.params.get("altchars")).decode())
152
+
else:
153
+
_cursor.execute("SELECT * FROM users WHERE id=%s LIMIT 0, 1"%self.params["id"])
0 commit comments