Minor update regarding shell history file

This commit is contained in:
Miroslav Stampar
2014-09-16 08:58:25 +02:00
parent ffa7e2f6e9
commit 45f5548113
2 changed files with 5 additions and 4 deletions

View File

@@ -16,11 +16,11 @@ from lib.core.data import paths
from lib.core.enums import OS
def saveHistory():
historyPath = os.path.expanduser(paths.SQLMAP_HISTORY)
historyPath = os.path.expanduser(paths.SQLMAP_SHELL_HISTORY)
readline.write_history_file(historyPath)
def loadHistory():
historyPath = os.path.expanduser(paths.SQLMAP_HISTORY)
historyPath = os.path.expanduser(paths.SQLMAP_SHELL_HISTORY)
if os.path.exists(historyPath):
try: