GithubHelp home page GithubHelp logo

megagoofil's Introduction

Introduction

This is a little bash-script I wrote to augment the power of opsdisk's metagoofil fork with some parsing and filtering. So far parsing and filtering works for pdf-files. Other formats (doc, docx, xls, xlsx, ... ) are planned.

Requirements:

Installation

After installing all the required software clone this repository into your /HOME folder:

git clone htts://github.com/TalmarGrosskotz/megagoofil

Then make the script executable:

cd megagoofil
chmod +x megagoofil.sh

Usage

Attention! Up to this stage all parameters are required. Later versions will likely supply standard values for some of them.

Move into the megagoofil directory:

cd ~/megagoofil

Start the script with

./megagoofil.sh -d <DOMAIN> -l <SEARCHFINDS> -n <DOWNLOADS> -o <OUTPUTDIR> -t <FILETYPE>
Parameter Explanation
-d sets the domain you want to search (e.g. your-domain.xyz)
-l sets the number of search results used
-n sets the number of documents actually downloaded
-o sets the directory where all the files will be downloaded to (will be created if it doesn't exist)
-f sets the filetype looked for (only "pdf" so far)

The script will then search the domain for files and download them into the specified directory. After that it will tried to convert the downloaded files into .txt and also save them into the output directory. Then it will safe the author of each document (if provided in the pdf's metadata) into a file called "author.txt" and all email-adresses found in the document into a file called emails.txt.

#To-Do

  • add more filetypes
  • add defaults for -l, -n, -o
  • parsing for email-addresses produces some false positives which need to be removed

megagoofil's People

Contributors

jobilert avatar

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.