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

Method setArch

lib/core/common.py:464–479  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

462
463 @staticmethod
464 def setArch():
465 msg = "what is the back-end database management system architecture?"
466 msg += "\n[1] 32-bit (default)"
467 msg += "\n[2] 64-bit"
468
469 while True:
470 choice = readInput(msg, default='1')
471
472 if hasattr(choice, "isdigit") and choice.isdigit() and int(choice) in (1, 2):
473 kb.arch = 32 if int(choice) == 1 else 64
474 break
475 else:
476 warnMsg = "invalid value. Valid values are 1 and 2"
477 logger.warning(warnMsg)
478
479 return kb.arch
480
481 # Get methods
482 @staticmethod

Callers 1

getArchMethod · 0.80

Calls 1

readInputFunction · 0.70

Tested by

no test coverage detected