Coder Social home page Coder Social logo

depthsecurity / pymeta Goto Github PK

View Code? Open in Web Editor NEW

This project forked from m8sec/pymeta

1.0 1.0 1.0 24 KB

Pymeta will search the web for files on a domain to download and extract metadata. This technique can be used to identify: domains, usernames, software/version numbers and naming conventions.

License: GNU General Public License v3.0

Python 90.97% Shell 9.03%

pymeta's Introduction

pymeta

  

Pymeta is a Python3 rewrite of the tool PowerMeta, created by dafthack in PowerShell. It uses specially crafted search queries to identify and download the following file types (pdf, xls, xlsx, doc, docx, ppt, pptx) from a given domain using Google and Bing. Once downloaded, metadata is extracted from these files using Phil Harvey's exiftool. This is a common place for penetration testers to find internal domain names, usernames, software/version numbers, and identify an organization's naming conventions.

Pymeta can also be pointed at a directory to extract metadata from files manually downloaded using the '-dir' command line argument. See the 'Usage', and 'All Options' sections for more information.

During metadata extraction, unique 'Author', 'Creator', and 'Producer' fields will be written to the terminal. However, more verbose output can be accomplished by generating a csv report with the '-csv' command line argument.

Pymeta is written in python3, use the setup.sh script to ensure all required libraries are installed.

Getting Started

In the Linux terminal run:

  1. git clone https://github.com/m8r0wn/pymeta
  2. sudo chmod +x pymeta/setup.sh
  3. sudo ./pymeta/setup.sh

Usage

  • Search Google and Bing for files within example.com and extract metadata to terminal:
    python3 pymeta.py -d example.com

  • Search Google only for files within example.com and extract metadata to a csv report:
    python3 pymeta.py -d example.com -s google -csv

  • Extract metadata from files within the given directory and create csv report:
    python3 pymeta.py -dir ../Downloads/ -csv

All Options

-h, --help      show help message and exit
-d DOMAIN       Target domain
-dir FILE_DIR   Directory of files to extract Metadata
-s ENGINE       Search engine to use: google, bing, all (Default: all)
-m MAX_RESULTS  Max results to collect per file type (Default: 50)
-csv            write all metadata to CSV (Default: display in terminal)

Credit

pymeta's People

Contributors

m8sec avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

argonauta666

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.