Skip to content

Code reworked - added two different salt and aes offsets #3331

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

Merged
merged 2 commits into from
Aug 5, 2018
Merged

Code reworked - added two different salt and aes offsets #3331

merged 2 commits into from
Aug 5, 2018

Conversation

kholia
Copy link
Member

@kholia kholia commented Jul 26, 2018

The additional AES offset is not enabled until we can't prove that it is correct.

This is essentially #3293 (bitlocker2john code reworked).

I am trusting @e-ago in this PR to do the right thing.

@kholia kholia requested a review from magnumripper July 26, 2018 14:49
@e-ago
Copy link
Contributor

e-ago commented Jul 26, 2018

There is a typo in the user password printf. You need to replace this line:
printf("\nUser Password hash:\n$bitlocker$%d$%d$", HASH_UP, SALT_SIZE);
with:
printf("\nUser Password hash:\n");
@kholia

@kholia
Copy link
Member Author

kholia commented Jul 27, 2018

Thanks @e-ago. Fixed now.

Copy link
Member

@magnumripper magnumripper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our code style also says NOT to use camelCase variable names but we break that in many places.

fprintf(stderr, "VMK encrypted with AES-CCM (%lx)\n", (ftell(fp)-2));
found_ccm = 1;
fseek(fp, 3, SEEK_CUR);
static int rp_search_salt_aes() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code style - should be

- static int rp_search_salt_aes() {
+ static int rp_search_salt_aes(void)
+ {

int ret=0, x, y;

for(x=0; x < 2; x++)
{
Copy link
Member

@magnumripper magnumripper Jul 30, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code style - should be

- 	for(x=0; x < 2; x++)
- 	{
+ 	for (x = 0; x < 2; x++) {

Many more similar cases below.

@kholia
Copy link
Member Author

kholia commented Aug 5, 2018

I am going to fix these style issue one last time on @e-ago's behalf.

e-ago and others added 2 commits August 5, 2018 14:58
The additional AES offset is not enabled until we can't prove that it is
correct.
@kholia
Copy link
Member Author

kholia commented Aug 5, 2018

Tested with https://github.com/e-ago/bitcracker/blob/master/Images/imgWin10Compat.vhd (password is p!q=r+s?8904v9Z-0=p'2"4abc).

@kholia kholia merged commit efc59d4 into openwall:bleeding-jumbo Aug 5, 2018
@e-ago
Copy link
Contributor

e-ago commented Aug 8, 2018

@kholia thank you

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

Successfully merging this pull request may close these issues.

3 participants