MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / _sandBoxCheck

Method _sandBoxCheck

plugins/dbms/access/fingerprint.py:29–43  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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"

Callers 1

getFingerprintMethod · 0.95

Calls 1

isVersionWithinMethod · 0.80

Tested by

no test coverage detected