Coder Social home page Coder Social logo

suchitreddi / memorywipe Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 2.99 MB

A tool for linux devices to securely wipe their storage and make sensitive data unrecoverable.

Home Page: https://suchitreddi.github.io/Work/memory_forensics.html

License: GNU General Public License v3.0

Shell 43.65% Python 56.35%
autopsy command-line-tool data-sanitization digital-forensics hdparm imaging iot raspberrypi recovery shell-script

memorywipe's Introduction

memorywipe's People

Contributors

p1utoze avatar suchitreddi avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

p1utoze

memorywipe's Issues

Creating a python version of the script

To make the script compatible with different operating systems other than linux, a python version of the tool is required.
os.system can be used to achieve this.

Incorrect input partition error

Let's say the target partition for an operation for example Cryptographic Erasure is /dev/sda1.
But because of some previous operation, this partition is already unmounted.

Let's say the user doesn't know how to give the partition and inputs sda1 when asked.

Expected behavior:
The user should be warned of this incorrect input, and result should be shown as unmounting failure.

Actual behavior:
It shows sda1 successfully unmounted.

Cause:
In the chk_unmount() function, the logic used for checking if a device is mounted:
if grep -qs "$partition" /proc/mounts; then
So, when sda1 is not present, it returns success.

Add a command line verification tool (PhotoRec / Scalpel)

Right now, verification is done by extracting images from the target device into another system running Autopsy.
Autopsy uses "scalpel" among other tools to retrieve data from the disk image.

I aim to add that command line version of the tool if possible so that verification can be done automatically on the device running memorywipe script.

Enhancing the script's working

Making the script more user friendly.
--> Introduce default options
--> Improve error handling
--> Automate as much as possible ...

Installation check failure

The logic used for checking existing installation does not work if the installation package name is not used as a primary command. For example, sg3-utils is the download package. But sg3-utils -v doesn't work, but sg_sanitize works. So, packages like this will fail this installation check.

This is a minor issue as it doesn't affect the actual sanitization process.

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.