MCPcopy Create free account
hub / github.com/sqlmapproject/sqlmap / _selectRhost

Method _selectRhost

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

Source from the content-addressed store, hash-verified

264 return self._skeletonSelection(connStr, maxValue=65535, default=randomRange(1025, 65535))
265
266 def _selectRhost(self):
267 if self.connectionStr.startswith("bind"):
268 message = "what is the back-end DBMS address? [Enter for '%s' (detected)] " % self.remoteIP
269 address = readInput(message, default=self.remoteIP)
270
271 if not address:
272 address = self.remoteIP
273
274 return address
275
276 elif self.connectionStr.startswith("reverse"):
277 return None
278
279 else:
280 raise SqlmapDataException("unexpected connection type")
281
282 def _selectLhost(self):
283 if self.connectionStr.startswith("reverse"):

Callers 1

_prepareIngredientsMethod · 0.95

Calls 2

readInputFunction · 0.90
SqlmapDataExceptionClass · 0.90

Tested by

no test coverage detected