Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 746cbdb

Browse files
committed
Added support for takeover functionalities on PgSQL 8.4 running on Windows
1 parent 1100b37 commit 746cbdb

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

plugins/dbms/postgresql.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -452,10 +452,15 @@ def udfInjectCmd(self):
452452

453453
banVer = kb.bannerFp["dbmsVersion"]
454454

455-
if banVer >= "8.3":
455+
if banVer >= "8.4":
456+
majorVer = "8.4"
457+
elif banVer >= "8.3":
456458
majorVer = "8.3"
457-
else:
459+
elif banVer >= "8.2":
458460
majorVer = "8.2"
461+
else:
462+
errMsg = "unsupported feature on versions of PostgreSQL before 8.2"
463+
raise sqlmapUnsupportedFeatureException, errMsg
459464

460465
if kb.os == "Windows":
461466
self.udfLocalFile += "/postgresql/windows/%s/lib_postgresqludf_sys.dll" % majorVer
6.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)