Code Monkey home page Code Monkey logo

abuseimgstorage's Introduction

AbuseImgStorage

A quick video-tutorial

Watch it on https://www.youtube.com/watch?v=dCPOZLrOG8o

To fragment a file into "images" ;)

user@computer ~/AbuseImgStorage/FileComposer> python3 Fragmentor.py chunk PATH_TO_FILE

It will create 2-5MB chunks, that will display a small image (to avoid overloading too much). Also, and this is important, it will generate a .db file. KEEP IT. This file is needed to reconstruct the original from the chunks.

  • Maybe you want a different max or min size for the chunks.

    • You can alter the min size limit with the modifier -m or --min-size followed by the size in MB.

    user@computer ~/AbuseImgStorage/FileComposer> python3 Fragmentor.py chunk PATH_TO_FILE -m SIZE_IN_MB

    • You can alter the max size limit with the modifier -M or --max-size followed by the size in MB.

    user@computer ~/AbuseImgStorage/FileComposer> python3 Fragmentor.py chunk PATH_TO_FILE -M SIZE_IN_MB

To reconstruct the original file from the pieces:

Make sure the .db file is in the same folder as the pieces. Also, on this very first version, the names of the pieces should be the same as the ones created during the fragmentation process.

user@computer ~/AbuseImgStorage/FileComposer> python3 Fragmentor.py reconstruct PATH_TO_DB

It will recreate the original file the chunks were made from.

To check the integrity of the reconstructed files:

If you have both files, the original and the reconstructed one, and want to check if they're really the same, you can do it:

user@computer ~/AbuseImgStorage/FileComposer> python3 Fragmentor.py check PATH_TO_ORIGINAL PATH_TO_RECONSTRUCTED

Use it at your own discretion.

Need help? ask for it: user@computer ~/AbuseImgStorage/FileComposer> python3 Fragmentor.py {chunk, reconstruct, check} --help

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.