mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
adding switch --eval
This commit is contained in:
@@ -3135,4 +3135,11 @@ def getHostHeader(url):
|
||||
if any(map(lambda x: retVal.endswith(':%d' % x), [80, 443])):
|
||||
retVal = retVal.split(':')[0]
|
||||
|
||||
return retVal
|
||||
return retVal
|
||||
|
||||
def executeCode(code, variables=None):
|
||||
try:
|
||||
exec(code, variables)
|
||||
except Exception, ex:
|
||||
errMsg = "an error occured while evaluating provided code ('%s'). " % ex
|
||||
raise sqlmapGenericException, errMsg
|
||||
|
||||
Reference in New Issue
Block a user