Skip to main content

Conceptual block device information output.

Project description

PyPI Python Version License: MIT Ubuntu

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 │         │
└────────┴─────────┴─────────────┴─────────────┴─────────────────┴───────┴────────────┴─────────┘

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyblkinfo-0.1.8.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyblkinfo-0.1.8-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file pyblkinfo-0.1.8.tar.gz.

File metadata

  • Download URL: pyblkinfo-0.1.8.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for pyblkinfo-0.1.8.tar.gz
Algorithm Hash digest
SHA256 8219279d87b20ca15a40bce89744d86e107554f269b14482aec9015ae9dde566
MD5 95afcb74da2337154e56b28b7b617779
BLAKE2b-256 092ff7653304808f4b3392e9b258afca8c9c9d0bdc14e9020096078bbe3accd4

See more details on using hashes here.

File details

Details for the file pyblkinfo-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: pyblkinfo-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.7

File hashes

Hashes for pyblkinfo-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 16e5ab43da3d2c665346981a5b30d9b1f81a1a5e33611e1c6380a77f371e8b70
MD5 a3357efd62b0ced2c5c2dd175ef02515
BLAKE2b-256 41a72a4e1f5e9a84bab3bd160781063f0d6f68802433489b551516a7ab05440c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page