# history dump # # Dump the entire history of the scripting console of this instance of Binary Ninja to the log import binaryninjaui #needed to load PySide from binaryninja import log_info from PySide6.QtCore import QSettings settings = QSettings() history = settings.value("script/history") for line in history: log_info(line)