Major bug fix to forge SQL injection payload on Oracle

This commit is contained in:
Bernardo Damele 2009-01-13 23:15:57 +00:00
parent bc448211c5
commit fd7cb9101c

View File

@ -334,7 +334,7 @@ class Agent:
elif fieldsNoSelect:
concatQuery = "'%s'||%s||'%s'" % (temp.start, concatQuery, temp.stop)
if kb.dbms == "Oracle" and ( fieldsSelect or fieldsNoSelect ):
if kb.dbms == "Oracle" and " FROM " not in concatQuery and ( fieldsSelect or fieldsNoSelect ):
concatQuery += " FROM DUAL"
elif kb.dbms == "Microsoft SQL Server":