summaryrefslogtreecommitdiffstats
path: root/src/utils/hw_inventory.py
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-12-10 17:00:13 +0100
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-12-11 15:16:34 +0100
commit855768e1448e39012ea35964306f57586852f417 (patch)
tree44cbb7e17176ea1a5d298d007bb3257e9e588786 /src/utils/hw_inventory.py
parentaa570e66e6e65ef18575531b1e165694301ed5e2 (diff)
src: refactor windows hive code
Remove usage of hivexget as a subprocess and use Python hivex to inspect the Windows Registry. Use registry path constants defined in src.utils.winreg Remove windows_is64bit() funcion as the code to identify the architecture relies on a broken Registry query. Fixing the query proved to be a challenge and the only implication is the removal of the string "64 bits" at the end of the listed Windows OS installed in each partition. Use utility function in src.utils.winreg to make the software inventory code more compact. Rewrite onliner in _fill_package_set function and parse the registry with a for loop.
Diffstat (limited to 'src/utils/hw_inventory.py')
0 files changed, 0 insertions, 0 deletions