Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is RegTester.py up2date? #38

Open
NiKiZe opened this issue Feb 1, 2015 · 9 comments
Open

Is RegTester.py up2date? #38

NiKiZe opened this issue Feb 1, 2015 · 9 comments

Comments

@NiKiZe
Copy link
Contributor

NiKiZe commented Feb 1, 2015

RegTester does not seem to be updated to work with current code. Is it used to test changes to make sure everything works?
Is there any archive with Hive files and corresponding .reg files that can be used for regression testing?
Would it be appropriate to have small file sets in the repo for testing?

Have some work on an updated version and will prepare a PR after some sleep.

@NiKiZe NiKiZe mentioned this issue Feb 1, 2015
@williballenthin
Copy link
Owner

There's no collection of hives and associated .reg files at the moment. Its a great idea though! Do you have access to any examples that you'd be willing to share?

@NiKiZe
Copy link
Contributor Author

NiKiZe commented Feb 2, 2015

For now only minimal set of BCD files, but it is better then nothing.
These should be collected when issues are found to prevent regressions.
a resources subdirectory in test is my suggestion.

@williballenthin
Copy link
Owner

Sounds good. I'll collect a set of files that I don't mind exposing to the web and upload them as you suggested.

@EricZimmerman
Copy link

Willi we should make the hives part of our unified testing

@williballenthin
Copy link
Owner

Yes, I agree. I'd like to collect the .reg and original hives, and export them test dump format for all of them, too.

@NiKiZe
Copy link
Contributor Author

NiKiZe commented Feb 2, 2015

I agree as well, an automated unit test for all available hive/reg combos.
Are there any good unit testing frameworks available for Python that can serve this purpose?

@EricZimmerman
Copy link

let me know when you are ready and i can make sure you have the latest versions of the updated export format. it should be on google drive as well.

@williballenthin
Copy link
Owner

@NiKiZe surely there are some, but i'm not familiar with any enough to instinctively pick one. I'd welcome suggestions.

@NiKiZe
Copy link
Contributor Author

NiKiZe commented Feb 15, 2015

Sorry, I have not yet had time (or maybe it's more a lack of ideas) to do much on this :/

However came across some interesting things in reg.exe
REG SAVESaves registry key as hive file
REG RESTORERestores a hive file to reg key
It should be possible to use this to only export "problematic" parts of the hives and that way only expose non sensitive data publicly.

a python script running on windows could be used to automate an multitude of tests (or even an cmd script in windows to collect data and then running the python part on any OS)

I think what we have suggested for now is walking all .hive files in testing/resources, and using (same named) .reg files call RegTester and make sure the result is as expected.
I would also suggest that there is sha256 checksums for all files to eliminate problems caused by corruption.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants