Coder Social home page Coder Social logo

wdpassport-utils's Introduction

wdpassport-utils

WD Passport Ultra Complete Utilities for Linux.

Intro

This script let you unlock, change password and erase Western Digital Passport devices on Linux platform.

Install

In order to run this script you need to install "lsscsi" command and "py_sg" library.

For example on Ubuntu you can install the missing dependancies with

sudo apt-get install python-pip python-dev lsscsi
sudo pip install py_sg

Usage

Run script as root.

There are few options:

-h, --help            show this help message and exit

Lists all possible arguments.

-s, --status          Check device status and encryption type

Get device encryption status and cipher suites used.

-u, --unlock          Unlock

You will be asked to enter the unlock password. If everything is fine device will be unlocked.

-m, --mount           Enable mount point for an unlocked device

After unlock, your operating system still thinks that your device is a strange thing attached to his usb port and he don't know how to manage. You need this option to force the O.S. to rescan the device and handle it as a normal external usb harddrive.

-c, --change_passwd   Change (or disable) password

This option let you to encrypt your device, remove password protection and change your current password. If device is "without lock" and you want it to be password protect leave the "OLD password" field empty and choose insert the new password. If the device is password protected and you want to be as a normal unencrypted device, inser the old password and leave the "NEW password" field empty. If you only want to change password do it as usual.

-e, --erase           Secure erase device

"Erase" the device. This will remove the internal key associated to you password and all your data will be unaccessible. You will also lose your partition table and you will need to create a new one (you can use fdisk and mkfs).

-d DEVICE, --device DEVICE  Force device path (ex. /dev/sdb). Usually you don't need this option.

The script will try to auto detect the current device path of your WD Passport device. If something is wrong or you want to manually specify the device path yourself you can use this option.

Disclaimer

I based my research on Dan Lukes (FreeBSD version) and KenMacD (very simple unlocker) works. I'm in no way sponsored by or connected with Western Digital. Use any of the information contained in this repository at your own risk. I accept no responsibility.

wdpassport-utils's People

Contributors

0-duke avatar

Watchers

James Cloos avatar  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.