def _resumeOS():
 value = hashDBRetrieve(HASHDB_KEYS.OS)
 if (not value):
  return
 os = value
 if (os and (os != 'None')):
  infoMsg = ("resuming back-end DBMS operating system '%s' " % os)
  logger.info(infoMsg)
  if (conf.os and (conf.os.lower() != os.lower())):
   message = ("you provided '%s' as back-end DBMS operating " % conf.os)
   message += 'system, but from a past scan information on the '
   message += 'target URL sqlmap assumes the back-end DBMS '
   message += ('operating system is %s. ' % os)
   message += 'Do you really want to force the back-end DBMS '
   message += 'OS value? [y/N] '
   test = readInput(message, default='N')
   if ((not test) or (test[0] in ('n', 'N'))):
    conf.os = os
  else:
   conf.os = os
  Backend.setOs(conf.os)

def _resumeOS ( ) : value = hashDBRetrieve ( HASHDB_KEYS . OS ) if ( not value ) : return os = value if ( os and ( os != 'None' ) ) : infoMsg = ( "resuming back-end DBMS operating system '%s' " % os ) logger . info ( infoMsg ) if ( conf . os and ( conf . os . lower ( ) != os . lower ( ) ) ) : message = ( "you provided '%s' as back-end DBMS operating " % conf . os ) message += 'system, but from a past scan information on the ' message += 'target URL sqlmap assumes the back-end DBMS ' message += ( 'operating system is %s. ' % os ) message += 'Do you really want to force the back-end DBMS ' message += 'OS value? [y/N] ' test = readInput ( message , default = 'N' ) if ( ( not test ) or ( test [ 0 ] in ( 'n' , 'N' ) ) ) : conf . os = os else : conf . os = os Backend . setOs ( conf . os )
resume stored os information from hashdb .