|
31 | 31 | from lib.core.data import paths |
32 | 32 | from lib.core.data import queries |
33 | 33 | from lib.core.patch import unisonRandom |
| 34 | +from lib.core.settings import IS_WIN |
34 | 35 |
|
35 | 36 | def vulnTest(): |
36 | 37 | """ |
@@ -72,8 +73,8 @@ def vulnTest(): |
72 | 73 | ("-u <url> -z \"tec=B\" --hex --fresh-queries --threads=4 --sql-query=\"SELECT * FROM users\"", ("SELECT * FROM users [5]", "nameisnull")), |
73 | 74 | ("-u \"<url>&echo=foobar*\" --flush-session", ("might be vulnerable to cross-site scripting",)), |
74 | 75 | ("-u \"<url>&query=*\" --flush-session --technique=Q --banner", ("Title: SQLite inline queries", "banner: '3.")), |
75 | | - ("-d <direct> --flush-session --dump -T users --dump-format=SQLITE --binary-fields=name --where \"id=3\"", ("7775", "179ad45c6ce2cb97cf1029e212046e81 (testpass)", "dumped to SQLITE database")), |
76 | | - ("-d <direct> --flush-session --banner --schema --sql-query=\"UPDATE users SET name='foobar' WHERE id=5; SELECT * FROM users; SELECT 987654321\"", ("banner: '3.", "INTEGER", "TEXT", "id", "name", "surname", "5, foobar, nameisnull", "'987654321'",)), |
| 76 | + ("-d \"<direct>\" --flush-session --dump -T users --dump-format=SQLITE --binary-fields=name --where \"id=3\"", ("7775", "179ad45c6ce2cb97cf1029e212046e81 (testpass)", "dumped to SQLITE database")), |
| 77 | + ("-d \"<direct>\" --flush-session --banner --schema --sql-query=\"UPDATE users SET name='foobar' WHERE id=5; SELECT * FROM users; SELECT 987654321\"", ("banner: '3.", "INTEGER", "TEXT", "id", "name", "surname", "5, foobar, nameisnull", "'987654321'",)), |
77 | 78 | ("--purge -v 3", ("~ERROR", "~CRITICAL", "deleting the whole directory tree")), |
78 | 79 | ) |
79 | 80 |
|
@@ -149,6 +150,10 @@ def _thread(): |
149 | 150 | status = '%d/%d (%d%%) ' % (count, len(TESTS), round(100.0 * count / len(TESTS))) |
150 | 151 | dataToStdout("\r[%s] [INFO] complete: %s" % (time.strftime("%X"), status)) |
151 | 152 |
|
| 153 | + if IS_WIN and "uraj" in options: |
| 154 | + options = options.replace(u"\u0161u\u0107uraj", "sucuraj") |
| 155 | + checks = [check.replace(u"\u0161u\u0107uraj", "sucuraj") for check in checks] |
| 156 | + |
152 | 157 | for tag, value in (("<url>", url), ("<base>", base), ("<direct>", direct), ("<tmpdir>", tmpdir), ("<request>", request), ("<log>", log), ("<multiple>", multiple), ("<config>", config), ("<base64>", url.replace("id=1", "id=MZ=%3d"))): |
153 | 158 | options = options.replace(tag, value) |
154 | 159 |
|
|
0 commit comments