File: README.md

package info (click to toggle)
diskscan 0.21-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 1,656 kB
  • sloc: ansic: 11,136; python: 338; xml: 138; sh: 41; makefile: 34
file content (37 lines) | stat: -rw-r--r-- 1,021 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# libscsicmd

A library to create SCSI commands (CDBs) and parse the results, also for ATA commands and results.

This library doesn't deal with actually submitting the CDBs or getting the results from the storage device, only with
the commands themselves. The actual sending of the command is different between the different OSes and this library
tries to be OS agnostic.

## Build

The build system is using cmake, you need to get it before you can build.

To build, run:

    cmake . && make

For a developer debug build use:

    cmake -DCMAKE_BUILD_TYPE=Debug .

To build for American Fuzzy Lop instrumentation:

    cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_C_COMPILER=/usr/bin/afl-gcc -DCMAKE_C_FLAGS=-DAFL_HARDEN=1 .

## Testing

Testing is either done manually with some raw data collected from SCSI devices
with test/collect\_raw\_data or with American Fuzzy Lop (AFL) for parsing
problems.

Using AFL:

    afl-fuzz -t 200 -i afl/testcase -o afl/finding test/parse_scsi

## Author

Baruch Even <baruch@ev-en.org>