further update of DNS data retrieval mechanism through SQLi

This commit is contained in:
Miroslav Stampar
2012-04-02 14:05:30 +00:00
parent 1e01203562
commit 1cd3c3f7af
6 changed files with 112 additions and 16 deletions

View File

@@ -1613,7 +1613,7 @@ def getSPLSnippet(dbms, name, **variables):
for _ in variables.keys():
retVal = re.sub(r"%%%s%%" % _, variables[_], retVal)
_ = re.search(r"%([^%]+)%", retVal, re.I)
_ = re.search(r"%(\w+)%", retVal, re.I)
if _:
errMsg = "unresolved variable '%s' in SPL snippet '%s'" % (_.group(1), name)
raise sqlmapGenericException, errMsg