Skip to content
/ pytime Public

pytime.py mimics some functionality of mactime, but written in python.

License

Notifications You must be signed in to change notification settings

aubsec/pytime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pytime

###https://github.comi/aubsec/pytime.git

The purpose of this Python project is to replicate functions of the mactime perl script in Python-3 while modifying some of the output. It also personally serves as practice in programming in Python-3 and utilizing vim.

pytime generates timelines from a body file. Body files can be generated from a number of other applications, most commonly from the TSK fls, log2timeline, and from volatility.

Usage

pytime takes up to three arguments. The argument -b must be used to identify the body file to be parsed. Optionally the -s and -e arguments can be used to specify a start and end date using the date format of "YYYY-MM-DD".

Argument Description
-h, --help show this help message and exit
-b, --body Input body file
-s, --start Optional. Start date in format "YYYY-MM-DD"
-e, --end Optional. End date in format "YYYY-MM-DD"

A Start [-s] date and End [-e] date can be specified in format "YYYY-MM-DD".

  • If no date arguments are specified, the program will parse all data in the body file (Example 1).
  • If only the start date is specified, it will parse all data from the start date to the end of the file (Example 2).
  • If the end date is specified, it will parse all data from the beginning of the file to the specified end date (Example 3).
  • If both a start and end date is specified, only dates between the start and endl will be parsed (Example 4).

Examples

  1. pytime -b bodyfile.body
  2. pytime -b bodyfile.body -s 2016-01-01
  3. pytime -b bodyfile.body -e 2016-02-01
  4. pytime -b bodyfile.body -s 2016-01-01 -e 2016-02-01

Credits

Matthew Aubert

License

pytime.py Used for timeline creation in digital investigations.

Copyright (C) 2016 Matthew Aubert

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

pytime.py mimics some functionality of mactime, but written in python.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages