(self)
| 27 | GenericFingerprint.__init__(self, DBMS.ACCESS) |
| 28 | |
| 29 | def _sandBoxCheck(self): |
| 30 | # Reference: http://milw0rm.com/papers/198 |
| 31 | retVal = None |
| 32 | table = None |
| 33 | |
| 34 | if Backend.isVersionWithin(("97", "2000")): |
| 35 | table = "MSysAccessObjects" |
| 36 | elif Backend.isVersionWithin(("2002-2003", "2007")): |
| 37 | table = "MSysAccessStorage" |
| 38 | |
| 39 | if table is not None: |
| 40 | result = inject.checkBooleanExpression("EXISTS(SELECT CURDIR() FROM %s)" % table) |
| 41 | retVal = "not sandboxed" if result else "sandboxed" |
| 42 | |
| 43 | return retVal |
| 44 | |
| 45 | def _sysTablesCheck(self): |
| 46 | infoMsg = "executing system table(s) existence fingerprint" |
no test coverage detected