Skip to content

Security info not parsed ! #529

@xkostrna

Description

@xkostrna

Detailed problem description

I've created a project in ETS6. This project contains secure device and this project is protected by password. Using your library I'm able to pass path to a project export and project password to an object which can then parse the export to Python. Like this:

knxproj: XKNXProj = XKNXProj(path="C:/..../myproject.knxproj", password="..")
data = knxproj.parse()

This is pretty good however there is very important information missing in the result of the parse method ! Missing information are:

  • DeviceAuthenticationCode
  • DeviceAuthenticationCodeHash
  • DeviceManagementPassword
  • DeviceManagementPasswordHash
  • ToolKey

Device which I've used for secure project is IP Interface Secure N 148/23 and this device has also passwords for it's bus interfaces.

How I found this:

  1. I've manually extracted project export using 7zip.
  2. I found another .zip file in the project called P-0267 so I've un-zipped it using project password hash (your function in xknxproject.zip.extractor -> _generate_ets6_zip_password).
  3. Inside P-0267 I've found file called 0.xml and there was the missing data listed above.

Question

Do you plan on adding any feature to add this secure info ? Maybe some typed dict called secure_info. Thank you very much !

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