Skip to content

Commit

Permalink
added reporting of sector offset, bumped version number, updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
bitsgalore committed Nov 1, 2017
1 parent cfa9371 commit b011d6b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,8 @@ The *image* element holds information about an analysed image. It contains the f

* *fileInfo*: contains general information about the analysed file
* *statusInfo*: contains information about about the status of Isolyzer's attempt at processing the file
* *tests*: contains outcomes of the tests that are performed by Isolyzer
* *sectorOffset*: contains the value of `--offset` as specified by the user (offset in sectors)
* *tests*: contains outcomes of the tests that are performed by Isolyzer
* *fileSystems*: contains technical metadata that are extracted from the filesystem-level headers.

## fileInfo element
Expand Down Expand Up @@ -260,7 +261,7 @@ Below are some examples of Isolyzer's output for different kinds of images. Note
### Example 1: ISO 9660 image has expected size

isolyzer iso9660.iso

Output:

<?xml version="1.0" ?>
Expand All @@ -279,6 +280,7 @@ Output:
<statusInfo>
<success>True</success>
</statusInfo>
<sectorOffset>0</sectorOffset>
<tests>
<containsKnownFileSystem>True</containsKnownFileSystem>
<sizeExpected>442368</sizeExpected>
Expand Down Expand Up @@ -345,6 +347,7 @@ Output:
<statusInfo>
<success>True</success>
</statusInfo>
<sectorOffset>0</sectorOffset>
<tests>
<containsKnownFileSystem>True</containsKnownFileSystem>
<sizeExpected>442368</sizeExpected>
Expand Down Expand Up @@ -391,6 +394,7 @@ Output:
<statusInfo>
<success>True</success>
</statusInfo>
<sectorOffset>0</sectorOffset>
<tests>
<containsKnownFileSystem>False</containsKnownFileSystem>
<sizeExpected>0</sizeExpected>
Expand Down Expand Up @@ -438,6 +442,7 @@ Output:
<statusInfo>
<success>True</success>
</statusInfo>
<sectorOffset>21917</sectorOffset>
<tests>
<containsKnownFileSystem>True</containsKnownFileSystem>
<sizeExpected>6946816</sizeExpected>
Expand Down Expand Up @@ -483,6 +488,7 @@ Output:
<statusInfo>
<success>True</success>
</statusInfo>
<sectorOffset>0</sectorOffset>
<tests>
<containsKnownFileSystem>True</containsKnownFileSystem>
<sizeExpected>579584</sizeExpected>
Expand Down Expand Up @@ -556,6 +562,7 @@ Output:
<statusInfo>
<success>True</success>
</statusInfo>
<sectorOffset>0</sectorOffset>
<tests>
<containsKnownFileSystem>True</containsKnownFileSystem>
<sizeExpected>614400</sizeExpected>
Expand Down Expand Up @@ -600,6 +607,7 @@ Output:
<statusInfo>
<success>True</success>
</statusInfo>
<sectorOffset>0</sectorOffset>
<tests>
<containsKnownFileSystem>True</containsKnownFileSystem>
<sizeExpected>942080</sizeExpected>
Expand Down
4 changes: 3 additions & 1 deletion isolyzer/isolyzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
if len(scriptName) == 0:
scriptName = 'isolyzer'

__version__ = '1.0.0'
__version__ = '1.1.0'

# Create parser
parser = argparse.ArgumentParser(
Expand Down Expand Up @@ -683,6 +683,8 @@ def processImage(image, offset):

imageRoot.append(fileInfo)
imageRoot.append(statusInfo)
# Add offset value
shared.addProperty(imageRoot, "sectorOffset", str(offset))
imageRoot.append(tests)
imageRoot.append(fileSystems)

Expand Down

0 comments on commit b011d6b

Please sign in to comment.