How to parse a CWE file

Hi
Is there anyone who knows if it is possible to parse a cwe file (on windows) to find information about what firmwares that are included and their versions.

I would prefer a method where I simply read the file and extracts the information.

Best regards
Kurt

Hello Kurt,

You should run (on Linux!):
swicwe -P file.cwe

KR.

Hi Flu

Thank you for your response. I am aware of the linux solution. But unfortunatly that is not an option since I need to parse the file on a windows host.

BR

Kurt

Hi @kurt1

We don’t have a purely native solution for Windows.
That being said, swicwe works perfectly well in a Docker container or in Windows 10 WSL (Windows Subsystem for Linux) contexts.
As an example in this case, once swicwe gets installed in WSL, you can simply invoke it like this from a Windows cmd:

bash.exe -c "swicwe -P /mnt/c/path/to/my/file.cwe"