This functions is called to: 1. Sort the tests, getSortedInjectionTests() - detection phase. 2. Etc.
()
| 504 | |
| 505 | @staticmethod |
| 506 | def getIdentifiedDbms(): |
| 507 | """ |
| 508 | This functions is called to: |
| 509 | |
| 510 | 1. Sort the tests, getSortedInjectionTests() - detection phase. |
| 511 | 2. Etc. |
| 512 | """ |
| 513 | |
| 514 | dbms = None |
| 515 | |
| 516 | if not kb: |
| 517 | pass |
| 518 | elif not kb.get("testMode") and conf.get("dbmsHandler") and getattr(conf.dbmsHandler, "_dbms", None): |
| 519 | dbms = conf.dbmsHandler._dbms |
| 520 | elif Backend.getForcedDbms() is not None: |
| 521 | dbms = Backend.getForcedDbms() |
| 522 | elif Backend.getDbms() is not None: |
| 523 | dbms = Backend.getDbms() |
| 524 | elif kb.get("injection") and kb.injection.dbms: |
| 525 | dbms = unArrayizeValue(kb.injection.dbms) |
| 526 | elif Backend.getErrorParsedDBMSes(): |
| 527 | dbms = unArrayizeValue(Backend.getErrorParsedDBMSes()) |
| 528 | elif conf.get("dbms"): |
| 529 | dbms = conf.get("dbms") |
| 530 | |
| 531 | return aliasToDbmsEnum(dbms) |
| 532 | |
| 533 | @staticmethod |
| 534 | def getVersion(): |