blkinfo
This little project is just a conceptual work used for my thesis about documentation of forensic processes.
It's purpose is to output basic necessary infos about all attached block devices in a fast usable format. Forensic staff would be able to use this as a first step to document the system they are working on.
However, this project is just a CONCEPT - it shows how one step of documentation COULD be done - or moreover, what kind of output would be useful - as a small part of the overall forensic process. One limitation is that the script does only accept block devices and no images. Additionally, the script has not been extensively tested with all possible device configurations.
It uses Linux lsblk command to gather information about the block devices.
Installation
pip install pyblkinfo
Usage
- Run with
blkinfo <optional path> - Output is written to stdout
- Stores log in your home dir
blkinfo.log
Example log
Device: sda
Model: VBOX HARDDISK
Table: dos
Bytes: 107,374,182,400
Sectors: 209,715,200 - 512 bytes
┌────────┬─────────┬─────────────┬─────────────┬─────────────────┬───────┬────────────┬─────────┐
│ PART │ START │ END │ SECTORS │ BYTES │ FS │ TYPE │ LABEL │
├────────┼─────────┼─────────────┼─────────────┼─────────────────┼───────┼────────────┼─────────┤
│ sda1 │ 2,048 │ 209,712,509 │ 209,710,462 │ 107,371,756,544 │ btrfs │ 0x83 Linux │ │
└────────┴─────────┴─────────────┴─────────────┴─────────────────┴───────┴────────────┴─────────┘
Metadata
Release files for pyblkinfo 0.1.8
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 |
|---|---|---|---|---|
| pyblkinfo-0.1.8.tar.gz | 4.5 kB | Without provenance | Details for pyblkinfo-0.1.8.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyblkinfo-0.1.8-py3-none-any.whl | Python 3 | none | any | Details for pyblkinfo-0.1.8-py3-none-any.whl |
Total release size: 9.9 kB
Release files / pyblkinfo-0.1.8.tar.gz
| Download URL | pyblkinfo-0.1.8.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8219279d87b20ca15a40bce89744d86e107554f269b14482aec9015ae9dde566
|
|
BLAKE2b-256 checksum How to use checksums |
092ff7653304808f4b3392e9b258afca8c9c9d0bdc14e9020096078bbe3accd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Release files / pyblkinfo-0.1.8-py3-none-any.whl
| Download URL | pyblkinfo-0.1.8-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
16e5ab43da3d2c665346981a5b30d9b1f81a1a5e33611e1c6380a77f371e8b70
|
|
BLAKE2b-256 checksum How to use checksums |
41a72a4e1f5e9a84bab3bd160781063f0d6f68802433489b551516a7ab05440c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.7
|
Security for pyblkinfo 0.1.8
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.