wdpass
WD Passport Ultra Complete Utilities for Linux.
Thanks to:
- Dan Lenski for py_sg (Python2)
- 0-duke and derekhe for wdpassport-utils (Python2)
- tvladyslav for Python3 migration of py_sg and wdpassport-utils
Intro
This script let you unlock, change password and erase Western Digital Passport devices on Linux platform.
Requirements
- Install
lsscsipackage or any package that provideslsscsicommand in your linux distro.
Install
Install the latest version from PyPi
sudo python3 -m pip install wdpass
Install the latest version manually
- Provide
<Python.h>header file by installing Python Developer Package. (usuallypython3-devorpython3-devel) - Install the latest py3_sg from py3_sg
- And finally install
wdpassfrom this repository.
For example on Ubuntu:
sudo apt install lsscsi python3-dev
sudo python3 -m pip install https://github.com/tvladyslav/py3_sg/archive/master.zip
sudo python3 -m pip install https://github.com/7aman/wdpass/archive/master.zip
Usage
Run wdpass 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.
-us, --unlock_with_saved_passwd Unlock with the password saved
Unlock using the saved password. If everything is fine device will be unlocked.
-sp, --save_passwd Save password
When unlock password, it will save user password to passwd.bin, so you can use "-us" for next time to auto unlock.
-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 re-scan the device and handle it as a normal external usb hard drive.
-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, insert 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'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.
Metadata
Release files for wdpass 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wdpass-0.1.0.tar.gz | 9.8 kB | Without provenance | Details for wdpass-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wdpass-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for wdpass-0.1.0-py3-none-any.whl |
Total release size: 18.5 kB
Release files / wdpass-0.1.0.tar.gz
| Download URL | wdpass-0.1.0.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b37e815d44b8f65370c4b0ba98d0abb80e51976c9cb1707208e717dcf2e94bf8
|
|
BLAKE2b-256 checksum How to use checksums |
7eb9875b4270317bb3cea26acdb07f6b33c85417b814852bcced96e6053e8c77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / wdpass-0.1.0-py3-none-any.whl
| Download URL | wdpass-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ec74c97707885d56dc17a954b3acaf835e04d5238f18f5aacedb0feb41ae437
|
|
BLAKE2b-256 checksum How to use checksums |
3a946cd56c0be4e8ec6d3aef5b8518ad04b26de22ba2fc5a841601edabbc5a8c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Security for wdpass 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.