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

Function _resumeOS

lib/core/target.py:540–569  ·  view source on GitHub ↗

Resume stored OS information from HashDB

()

Source from the content-addressed store, hash-verified

538 Backend.setVersionList(dbmsVersion)
539
540def _resumeOS():
541 """
542 Resume stored OS information from HashDB
543 """
544
545 value = hashDBRetrieve(HASHDB_KEYS.OS)
546
547 if not value:
548 return
549
550 os = value
551
552 if os and os != 'None':
553 infoMsg = "resuming back-end DBMS operating system '%s' " % os
554 logger.info(infoMsg)
555
556 if conf.os and conf.os.lower() != os.lower():
557 message = "you provided '%s' as back-end DBMS operating " % conf.os
558 message += "system, but from a past scan information on the "
559 message += "target URL sqlmap assumes the back-end DBMS "
560 message += "operating system is %s. " % os
561 message += "Do you really want to force the back-end DBMS "
562 message += "OS value? [y/N] "
563
564 if not readInput(message, default='N', boolean=True):
565 conf.os = os
566 else:
567 conf.os = os
568
569 Backend.setOs(conf.os)
570
571def _setResultsFile():
572 """

Callers 1

_resumeHashDBValuesFunction · 0.85

Calls 4

hashDBRetrieveFunction · 0.90
readInputFunction · 0.90
infoMethod · 0.80
setOsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…