Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update BitsParser.py to fix a problem if a directory is passed as input #8

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

herosi
Copy link

@herosi herosi commented Apr 22, 2024

If a directory is passed with -i and --caveall, the -o option will overwrite the output file again and again. Therefore, all results except for the last one will be lost. To avoid it, I changed the mode "w" to "a" when opening the output file given with -o option.

digitalsleuth and others added 6 commits October 8, 2022 23:26
If a directory is passed with -i, the -o option will overwrite the output file again and again. Therefore, all results except for the last one will be lost. To avoid it, I changed the mode "w" to "a" when opening the output file given with -o option.
Exception occurred processing file qmgr.db: Traceback (most recent call last):
  File "C:\tools\BitsParser\BitsParser.py", line 369, in process_file
    jobs = self.load_qmgr10_jobs(file_data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\tools\BitsParser\BitsParser.py", line 319, in load_qmgr10_jobs
    jobs = self.load_qmgr10_db(file_data)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\tools\BitsParser\BitsParser.py", line 245, in load_qmgr10_db
    files_table = ese.openTable("Files")
                  ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\tools\BitsParser\ese\ese.py", line 644, in openTable
    cursor['LongValues'] = self.__getLongValues(cursor['TableData']['LongValues']['FatherDataPageNumber'])
                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'FatherDataPageNumber'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants