MCPcopy Index your code
hub / github.com/sqlmapproject/sqlmap / hexConvertField

Method hexConvertField

lib/core/agent.py:450–464  ·  view source on GitHub ↗

Returns hex converted field string

(self, field)

Source from the content-addressed store, hash-verified

448 return request.comment if "comment" in request else ""
449
450 def hexConvertField(self, field):
451 """
452 Returns hex converted field string
453 """
454
455 rootQuery = queries[Backend.getIdentifiedDbms()]
456 hexField = field
457
458 if "hex" in rootQuery and hasattr(rootQuery.hex, "query"):
459 hexField = rootQuery.hex.query % field
460 else:
461 warnMsg = "switch '--hex' is currently not supported on DBMS '%s'" % Backend.getIdentifiedDbms()
462 singleTimeWarnMessage(warnMsg)
463
464 return hexField
465
466 def nullAndCastField(self, field):
467 """

Callers 4

nullAndCastFieldMethod · 0.95
directFunction · 0.80
dnsUseFunction · 0.80
_oneShotErrorUseFunction · 0.80

Calls 2

singleTimeWarnMessageFunction · 0.90
getIdentifiedDbmsMethod · 0.80

Tested by

no test coverage detected