Commit Graph

14 Commits

Author SHA1 Message Date
gabrielg5 27e7e7478d Updating copyright banner... 2024-08-28 17:52:57 -03:00
Gabriel Gonzalez 9b4a139405 Updated Copyright to 2023 2023-07-31 11:48:28 -03:00
Gabriel Gonzalez 8799a1a2c4 Update file banners to reflect Fortra ownership 2022-12-14 17:28:23 -03:00
0xdeaddood 7a18ef5c8b About to tag a release 2022-05-04 11:33:16 -03:00
Martin Gallo e868dba5bc DPAPI: Added some simple tests to blob decryption with and without entropy 2022-04-06 13:52:38 -07:00
Martin Gallo 51b66c71b3 Merge branch 'master' into test-refactor-catchup 2021-07-20 06:57:48 -07:00
Martin Gallo cd4fe47cfc Arrange tagline, copyright and license notes across all source files
This was a pending change to:
- Use the same tagline, copyright and license notice across files.
- Remove authors' contacts that are no longer valid (due to affiliation changes).
- Update repository location.
- Update license file with missing licenses (althought those were already in source files).

This doesn't include any change on the source code, nor any change on current copyright or licenses. Just formatting and phrasing to make our and distro's maintainers life easier.
2021-07-20 10:04:27 -03:00
Martin Gallo 6bb5ea427b Tests: Continue refactor of test cases (#1112)
Continue refactor some of our test cases structure.

Main changes introduced are:
* Moved testing guide as a separate file and added some of the steps to configure the test environment.
* Leveraging unittest.main to catch command-line args and build the default suite.
* Only running GitHub actions workflow once for our own branches/PRs.
* Remote test config file can be specified via an env var now.
* Moved remote test config to a template and ignored config file.
2021-07-02 12:22:14 -03:00
0xdeaddood 142cacb649 Merge pull request #1074 from franferrax/master
WMI objects minor refactors, fixes, and offline parsing tests
2021-06-29 12:35:13 -03:00
Martin Gallo 658e0ab8e1 Tests: First batch of changes on refactoring test cases (#1102)
Tests: First batch of changes on refactoring test cases

This is the first part of a larger effort to refactor some of our test cases structure.

Main changes introduced are:
- Using pytest as the testing framework to organize and mark test cases.
- Replacing custom bash scripts with test cases discovery.
- Integrating pytest-cov plugin to easier coverage collection and reporting.
- Marking remote test cases to being able to pick those during run.
- Abstracted remote test cases configuration in a base class.
- Consolidating pytest, coverage and tox configuration in a single tox.ini file.
- Removed some Python 2.5 support and replaced custom compat checks with six.
- Replace unittest.TextTestRunner.run by unittest.main (cherry-picked from f5dab5ca76, thanks @franferrax !)
2021-06-25 11:19:52 -03:00
Martin Gallo 11f430437d Tests: PEP8 format on misc tests
Made some PEP8 arrangements on misc unit tests modules
2021-06-18 05:48:10 -07:00
Francisco Ferrari Bihurriet f5dab5ca76 Replace unittest.TextTestRunner.run by unittest.main
In this way, tests return the execution status to the OS shell, making the tox run fail and report failures in GitHub (hopefully)
2021-06-08 02:43:53 -03:00
asolino ec77ea3d06 Code cleanup homework
- Optimizing imports
- Removing unused variables
- Still a lot to do.
- Test cases passing OK
2018-12-04 14:47:16 -03:00
asolino b75d710e56 Adding DPAPI / Vaults related structures, testcase and example.
You can unlock masterkeys, credentials and vaults. For the three, you will specify the file name (using -file for
masterkeys and credentials, and -vpol and -vcrd for vaults).
If no other parameter is sent, the contents of these resource will be shown, with their encrypted data as well.
If you specify a -key blob (in the form of '0xabcdef...') that key will be used to decrypt the contents.
In the case of vaults, you might need to also provide the user's sid (and the user password will be asked).
For system secrets, instead of a password you will need to specify the system and security hives.

References: All of the work done by these guys. I just adapted their work to my needs.
https://www.passcape.com/index.php?section=docsys&cmd=details&id=28
https://github.com/jordanbtucker/dpapick
https://github.com/gentilkiwi/mimikatz/wiki/howto-~-credential-manager-saved-credentials (and everything else Ben did )
http://blog.digital-forensics.it/2016/01/windows-revaulting.html
https://www.passcape.com/windows_password_recovery_vault_explorer
https://www.passcape.com/windows_password_recovery_dpapi_master_key
2018-11-08 12:25:30 -03:00