|
44 | 44 | from lib.core.exception import sqlmapUserQuitException |
45 | 45 | from lib.core.session import setString |
46 | 46 | from lib.core.session import setRegexp |
| 47 | +from lib.core.unescaper import unescaper |
47 | 48 | from lib.request.connect import Connect as Request |
48 | 49 | from lib.request.templates import getPageTemplate |
49 | | -from plugins.dbms.firebird.syntax import Syntax as Firebird |
50 | | -from plugins.dbms.postgresql.syntax import Syntax as PostgreSQL |
51 | | -from plugins.dbms.mssqlserver.syntax import Syntax as MSSQLServer |
52 | | -from plugins.dbms.oracle.syntax import Syntax as Oracle |
53 | | -from plugins.dbms.mysql.syntax import Syntax as MySQL |
54 | | -from plugins.dbms.access.syntax import Syntax as Access |
55 | | -from plugins.dbms.sybase.syntax import Syntax as Sybase |
56 | | -from plugins.dbms.sqlite.syntax import Syntax as SQLite |
57 | | -from plugins.dbms.maxdb.syntax import Syntax as MaxDB |
58 | 50 |
|
59 | 51 | def unescape(string, dbms): |
60 | | - unescaper = { |
61 | | - "Access": Access.unescape, |
62 | | - "Firebird": Firebird.unescape, |
63 | | - "MaxDB": MaxDB.unescape, |
64 | | - "Microsoft SQL Server": MSSQLServer.unescape, |
65 | | - "MySQL": MySQL.unescape, |
66 | | - "Oracle": Oracle.unescape, |
67 | | - "PostgreSQL": PostgreSQL.unescape, |
68 | | - "SQLite": SQLite.unescape, |
69 | | - "Sybase": Sybase.unescape |
70 | | - } |
71 | | - |
72 | 52 | if dbms in unescaper and "WAITFOR DELAY " not in string: |
73 | 53 | return unescaper[dbms](string) |
74 | 54 | else: |
|
0 commit comments