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

allow 'sqlite connect' to download temp files #392

Merged
merged 1 commit into from
Feb 17, 2021

Conversation

mame82
Copy link
Contributor

@mame82 mame82 commented Jul 28, 2020

If sqlite connect does download the database file only (without temp files for "Shared Memory" and "Write-Ahead-Log") not all DB data is visible for inspection.

A test has been done TikTok for Android, where a database is accessed with sqlite connect before and after applying the patch from this PR. See this summary for reference:

https://github.com/mame82/objection/blob/android_sqlite_shm/sqlite_patch.md

I have not done tests to re-upload those temporary files after the database was altered (--sync option), thus the respective code is disabled. It could be enabled by setting write_back_tmp_sqlite to True here

@leonjza
Copy link
Member

leonjza commented Jul 28, 2020

Nice! Thanks for this. I'm spread a bit thin at the moment but will definitely give this a test soon.

@leonjza leonjza merged commit 772154f into sensepost:master Feb 17, 2021
@leonjza
Copy link
Member

leonjza commented Feb 17, 2021

Sorry for the time this took and thank you for contributing! 🙌

if use_wal:
upload([local_path + '-wal', full_remote_file + '-wal'])
if use_jnl:
upload([local_path + '-journal', full_remote_file + '-journal'])
else:
click.secho('NOT synchronizing changes back to device. Use --sync if you want that.', fg='green')

# maak skoon
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haha! I just saw this one 💜

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.

None yet

2 participants