Skip to content

doc-dump.py - no longer displaying document template information #9

@re-fox

Description

@re-fox

Using a previous version of the tool it was possible to get information on a remote template. New versions result in the following error -> SttbfAssoc::dump() wanted to read beyond the end of the stream

To reproduce:

$ git checkout 953c2e65c059c8542b977d7a42fccf26b0397e66
$ python2 doc-dump.py .9e23a08981ae336068905c771754f7ea26b19d3d978b1bd554a4202a165b3072

...snipped...
<fcSttbfAssoc value="0x3bea" offset="0x19e"/>
<lcbSttbfAssoc value="0x7c" offset="0x1a2">
<sttbfAssoc type="SttbfAssoc" offset="15338" size="124 bytes">
<fExtend value="0xffff"/>
<cData value="0x12"/>
<cbExtra value="0x0"/>
<cchData index="0x0" meaning="Unused. MUST be ignored." offset="15346" size="0 bytes">
<string value=""/>
</cchData>
<cchData index="0x1" meaning="The path of the associated document template (2), if it is not the default Normal template." offset="15348" size="41 bytes">
<string value="https://checklicensekey.com/ebriated.dotm"/>
</cchData>
...snipped...

When using the current version directly from the main branch, an error is tossed.

$ git checkout master
$ python3 doc-dump.py .9e23a08981ae336068905c771754f7ea26b19d3d978b1bd554a4202a165b3072

...snipped...
<fcSttbfAssoc value="0x3bea" offset="0x19e"/>
<lcbSttbfAssoc value="0x7c" offset="0x1a2">
<sttbfAssoc type="SttbfAssoc" offset="15338" size="124 bytes">
<fExtend value="0xffff"/>
<cData value="0x12"/>
<cbExtra value="0x0"/>
<info what="SttbfAssoc::dump() wanted to read beyond the end of the stream"/>
</sttbfAssoc>
...snipped...

A copy of the document is uploaded here (password: infected). Use caution when handling the attachment.
9e23a08981ae336068905c771754f7ea26b19d3d978b1bd554a4202a165b3072.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions