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

Improve Android backup extract commands #2920

Merged

Conversation

JJK96
Copy link
Contributor

@JJK96 JJK96 commented Oct 27, 2024

The previous commands used dd with a small block-size, slowing down the process unnecessarily. Tail accomplishes the same results much faster.

In addition, the python command tries to decode the content in Python 3. The new commands read and write from/to buffers instead to operate on binary data.

Thank you for submitting a Pull Request to the OWASP MASTG. Please make sure that:

  • Your contribution is written in the 2nd person (e.g. you)
  • Your contribution is written in an active present form for as much as possible.
  • You have made sure that the reference section is up to date (e.g. please add sources you have used, make sure that the references to MITRE/MASVS/etc. are up to date)
  • Your contribution has proper formatted markdown and/or code
  • Any references to website have been formatted as [TEXT](URL “NAME”)
  • You verified/tested the effectiveness of your contribution (e.g.: is the code really an effective remediation? Please verify it works!)

The previous commands used dd with a small block-size, slowing down the process unnecessarily. Tail accomplishes the same results much faster. 

In addition, the python command tries to decode the content in Python 3. The new commands read and write from/to buffers instead to operate on binary data.
@cpholguera cpholguera requested a review from serek8 October 28, 2024 11:14
@cpholguera cpholguera merged commit 593782a into OWASP:master Nov 4, 2024
4 checks passed
serek8 pushed a commit to serek8/owasp-mstg that referenced this pull request Jan 2, 2025
The previous commands used dd with a small block-size, slowing down the process unnecessarily. Tail accomplishes the same results much faster. 

In addition, the python command tries to decode the content in Python 3. The new commands read and write from/to buffers instead to operate on binary data.
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.

3 participants