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

Compound ZIP parser plugin for Google Takeout #2296

Open
wants to merge 27 commits into
base: master
from

Conversation

@stefanomart
Copy link

@stefanomart stefanomart commented Jan 17, 2019

One line description of pull request

This is a PR about the Compound ZIP parser plugin for Google Takeout dump files.

Description:

This plugin parses the Google Takeout dump.
It parses these services:

  • GMail
  • Google Maps (location history)
  • Google Chrome History
  • My Activity
  • Hangouts
  • Purchases

I made a slight change to the czip logic: I added a method CheckZipFile to czip_plugins\interface.py (this can be overrided by every czip plugin) to check the plugin: it checks if the zip file contains a file 'index.html' and the existence of the keyword 'Google Takeout' or 'Google Takeaway' in the same file.

Like we discussed here, I added the logic of mailbox into plaso.

I hope that all the code styling rules are respected.

Notes:

Checklist:

  • Automated checks (Travis, Codecov, Codefactor )pass
  • No new new dependencies are required or l2tdevtools has been updated
  • Reviewer assigned
Stefano Martinelli and others added 7 commits Jan 16, 2019
@Onager Onager self-requested a review Jan 17, 2019
@Onager Onager self-assigned this Jan 17, 2019
Stefano Martinelli added 3 commits Jan 17, 2019
Stefano Martinelli
Stefano Martinelli
Copy link
Contributor

@Onager Onager left a comment

Hey @stefanomart - I'm guessing this is still a work in progress. Please request a review from me once the test are passing - thanks!

Stefano Martinelli added 2 commits Jan 23, 2019
Stefano Martinelli
Stefano Martinelli
@codecov
Copy link

@codecov codecov bot commented Jan 23, 2019

Codecov Report

Merging #2296 into master will decrease coverage by 1.08%.
The diff coverage is 25.9%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2296      +/-   ##
=========================================
- Coverage   85.88%   84.8%   -1.09%     
=========================================
  Files         455     454       -1     
  Lines       32071   32745     +674     
=========================================
+ Hits        27544   27769     +225     
- Misses       4527    4976     +449
Impacted Files Coverage Δ
plaso/parsers/czip_plugins/oxml.py 92.06% <ø> (ø) ⬆️
plaso/formatters/google_takeout.py 100% <100%> (ø)
plaso/parsers/czip_plugins/interface.py 100% <100%> (+11.76%) ⬆️
plaso/lib/definitions.py 100% <100%> (ø) ⬆️
plaso/parsers/czip_plugins/google_takeout.py 19.3% <19.3%> (ø)
plaso/parsers/presets.py 85.91% <0%> (-14.09%) ⬇️
plaso/filters/interface.py 73.91% <0%> (-6.74%) ⬇️
plaso/containers/event_sources.py 94.11% <0%> (-5.89%) ⬇️
plaso/parsers/text_parser.py 81.4% <0%> (-4.62%) ⬇️
plaso/engine/tagging_file.py 94.44% <0%> (-3.6%) ⬇️
... and 145 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bf94d93...13c2499. Read the comment docs.

Stefano Martinelli added 5 commits Jan 24, 2019
@stefanomart
Copy link
Author

@stefanomart stefanomart commented Jan 27, 2019

Hey @stefanomart - I'm guessing this is still a work in progress. Please request a review from me once the test are passing - thanks!

Hi @Onager - I noticed that CodeFactor doesn't check the updated code, but always check the initial code (10 days ago).

@Onager
Copy link
Contributor

@Onager Onager commented Jan 27, 2019

OK @stefanomart - pylint is passing in Travis, so I'll take a look.

@Onager Onager self-requested a review Jan 27, 2019
@Onager
Copy link
Contributor

@Onager Onager commented Jan 27, 2019

Hey @stefanomart - there's no tests in this PR, could you please add a test for parser?

If you need test data, I noticed there's a public data set here: https://aboutdfir.com/dfir-research/ in the Android nougat image.

Stefano Martinelli added 5 commits Jan 27, 2019
Stefano Martinelli
Stefano Martinelli
Stefano Martinelli
Stefano Martinelli
Stefano Martinelli
@stefanomart
Copy link
Author

@stefanomart stefanomart commented Feb 16, 2019

Hello again @Onager, I noticed that Travis could not complete due to an error: "Unable to locate package python3-tox". I also did not understand why CodeFactor still checks old code (from 17 Jan).
However I added a test-data.
Thanks.

Copy link
Contributor

@Onager Onager left a comment

@stefanomart - checking in on this, it looks like there's still no tests in this PR, just the test data. Are you still working on this?

As to the tox issues, these should be resolved now if you rebase or merge to HEAD. There's currently an issue with dfwinreg, but that's being fixed.

Stefano Martinelli and others added 4 commits Mar 20, 2019
Stefano Martinelli
@stefanomart
Copy link
Author

@stefanomart stefanomart commented Apr 2, 2019

Even if I change the code, CodeFactor keeps to analyze the code uploaded on January 17th.
Am I doing something wrong?

@Onager
Copy link
Contributor

@Onager Onager commented Apr 8, 2019

Hey @stefanomart - don't worry too much about codefactor in this case, the extra pylint check will do most of the checks we'll need to work about.

@Onager Onager self-requested a review Apr 8, 2019
@joachimmetz joachimmetz force-pushed the log2timeline:master branch from 8213f1c to 5157939 Jun 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.