diff --git a/plugins/dbms/postgresql/fingerprint.py b/plugins/dbms/postgresql/fingerprint.py index 29d0af462..ed090c985 100644 --- a/plugins/dbms/postgresql/fingerprint.py +++ b/plugins/dbms/postgresql/fingerprint.py @@ -107,7 +107,9 @@ class Fingerprint(GenericFingerprint): infoMsg = "actively fingerprinting %s" % DBMS.PGSQL logger.info(infoMsg) - if inject.checkBooleanExpression("2=(SELECT DIV(6, 3))"): + if inject.checkBooleanExpression("LENGTH(to_char(1, 'EEEE'))>0"): + Backend.setVersion(">= 9.0.3") + elif inject.checkBooleanExpression("2=(SELECT DIV(6, 3))"): Backend.setVersion(">= 8.4.0") elif inject.checkBooleanExpression("EXTRACT(ISODOW FROM CURRENT_TIMESTAMP)<8"): Backend.setVersionList([">= 8.3.0", "< 8.4"])