Giter Club home page Giter Club logo

metastamp's Introduction

metastamp.py

Metastamp.py is a quick-and-dirty tool that recurses on a directory and extracts filesystem agnostic metadata from files it encounters. It displays them sorting records by date.

You can also specify a --domains parameter pointing to a domain list. Creation dates of the domains will be extracted (via whois) and added to the timeline.

Currently extracted timestamps:

  • PE compile date
  • RTF creation date
  • PDF creation date
  • Domain creation date (via whois)

Requirements

> cat requirements.txt                                                                                                 3827
pefile==1.2.10.post114
python-whois==0.5.2

You can install those by running pip install -r requirements.txt

exiftool cannot be installed via pip, and must be installed "manually". Installation is still pretty straightforward: https://github.com/smarnach/pyexiftool

Usage

Usage is pretty straightforward. Just point the tool to any directory:

$ ./metastamp.py .

If you have a text file with domains you'd like to map to the timeline, specify it with --domains FILE.

$ cat domains.txt
tomchop.me
google.com

$ ls ~/Downloads
152 -rw-r-----@ 1 tomchop  staff  73002 Sep 14 14:56 tmp1.exe
 16 -rw-r-----@ 1 tomchop  staff   6124 Sep 14 14:55 tmp4.exe
 16 -rw-r-----@ 1 tomchop  staff   6124 Sep 14 14:55 tmp5.exe

$ ./metastamp.py --domains domains.txt ~/Downloads

item                          	type                	timestamp
==============================	====================	====================
google.com                    	Domain creation     	1997-09-15 00:00:00
tmp1.exe                      	Compile timestamp   	2009-03-31 09:29:58
tmp4.exe                      	Compile timestamp   	2010-04-14 22:06:53
tmp5.exe                      	Compile timestamp   	2010-04-14 22:06:53
tomchop.me                    	Domain creation     	2011-05-26 13:35:32

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.