Resume stored OS information from HashDB
()
| 538 | Backend.setVersionList(dbmsVersion) |
| 539 | |
| 540 | def _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 | |
| 571 | def _setResultsFile(): |
| 572 | """ |
no test coverage detected
searching dependent graphs…