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

Function _setHostname

lib/core/option.py:1535–1546  ·  view source on GitHub ↗

Set value conf.hostname

()

Source from the content-addressed store, hash-verified

1533 conf.httpHeaders.append((HTTP_HEADER.COOKIE, conf.cookie))
1534
1535def _setHostname():
1536 """
1537 Set value conf.hostname
1538 """
1539
1540 if conf.url:
1541 try:
1542 conf.hostname = _urllib.parse.urlsplit(conf.url).netloc.split(':')[0]
1543 except ValueError as ex:
1544 errMsg = "problem occurred while "
1545 errMsg += "parsing an URL '%s' ('%s')" % (conf.url, getSafeExString(ex))
1546 raise SqlmapDataException(errMsg)
1547
1548def _setHTTPTimeout():
1549 """

Callers 1

initFunction · 0.85

Calls 2

getSafeExStringFunction · 0.90
SqlmapDataExceptionClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…