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

Method _selectPort

lib/takeover/metasploit.py:261–264  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

259 return _payloadStr
260
261 def _selectPort(self):
262 for connType, connStr in self._portData.items():
263 if self.connectionStr.startswith(connType):
264 return self._skeletonSelection(connStr, maxValue=65535, default=randomRange(1025, 65535))
265
266 def _selectRhost(self):
267 if self.connectionStr.startswith("bind"):

Callers 1

_prepareIngredientsMethod · 0.95

Calls 3

_skeletonSelectionMethod · 0.95
randomRangeFunction · 0.90
itemsMethod · 0.80

Tested by

no test coverage detected