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

Method _selectLhost

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

Source from the content-addressed store, hash-verified

280 raise SqlmapDataException("unexpected connection type")
281
282 def _selectLhost(self):
283 if self.connectionStr.startswith("reverse"):
284 message = "what is the local address? [Enter for '%s' (detected)] " % self.localIP
285 address = readInput(message, default=self.localIP)
286
287 if not address:
288 address = self.localIP
289
290 return address
291
292 elif self.connectionStr.startswith("bind"):
293 return None
294
295 else:
296 raise SqlmapDataException("unexpected connection type")
297
298 def _selectConnection(self):
299 return self._skeletonSelection("connection type", self._msfConnectionsList)

Callers 1

_prepareIngredientsMethod · 0.95

Calls 2

readInputFunction · 0.90
SqlmapDataExceptionClass · 0.90

Tested by

no test coverage detected