[GH-ISSUE #890] lastpass2john.py no longer works #495

Closed
opened 2026-10-14 03:10:26 +07:00 by bsakaguchi · 12 comments
Owner

Originally created by @jfoug on GitHub (Dec 15, 2014).
Original GitHub issue: https://github.com/openwall/john/issues/890

The format of the lastpass has changed, I believe, and this tool no longer works. I think the actual hash function is the same, by reading the LastPass site, the algorithm sounds the same. BUT the tool no longer works.

Originally created by @jfoug on GitHub (Dec 15, 2014). Original GitHub issue: https://github.com/openwall/john/issues/890 The format of the lastpass has changed, I believe, and this tool no longer works. I think the actual hash function is the same, by reading the LastPass site, the algorithm sounds the same. BUT the tool no longer works.
bsakaguchi 2026-10-14 03:10:26 +07:00
Author
Owner

@magnumripper commented on GitHub (Dec 15, 2014):

We should probably fix this, or leave lastpass out of Jumbo-1

<!-- gh-comment-id:66947291 --> @magnumripper commented on GitHub (Dec 15, 2014): We should probably fix this, or leave lastpass out of Jumbo-1
Author
Owner

@kholia commented on GitHub (Dec 15, 2014):

Let's leave LastPass out of J1.

I haven't checked in a while but it seems that LastPass folks are full of shit and still believe in keeping their crypto details unpublished.

<!-- gh-comment-id:66951391 --> @kholia commented on GitHub (Dec 15, 2014): Let's leave LastPass out of J1. I haven't checked in a while but it seems that LastPass folks are full of shit and still believe in keeping their crypto details unpublished.
Author
Owner

@jfoug commented on GitHub (Dec 15, 2014):

I think you are right. They do list the algo, and finding iteration was easy. But finding the hash, not so easy.

I agree with keeping it out of J1 (but in unused, if someone really wants to make it work), then figuring it out and putting it back in.

Putting this on J2 milestone

<!-- gh-comment-id:66952467 --> @jfoug commented on GitHub (Dec 15, 2014): I think you are right. They do list the algo, and finding iteration was easy. But finding the hash, not so easy. I agree with keeping it out of J1 (but in unused, if someone really wants to make it work), then figuring it out and putting it back in. Putting this on J2 milestone
Author
Owner

@magnumripper commented on GitHub (Dec 15, 2014):

I had already moved to J2 milestone and you moved it back :)

<!-- gh-comment-id:66967472 --> @magnumripper commented on GitHub (Dec 15, 2014): I had already moved to J2 milestone and you moved it back :)
Author
Owner

@magnumripper commented on GitHub (Dec 15, 2014):

Hmm no you didn't, and I didn't. The GitHub message just confused me.

<!-- gh-comment-id:66967534 --> @magnumripper commented on GitHub (Dec 15, 2014): Hmm no you didn't, and I didn't. The GitHub message just confused me.
Author
Owner

@magnumripper commented on GitHub (Dec 18, 2014):

Now that J1 was released, I put this back in the bleeding tree.

<!-- gh-comment-id:67516660 --> @magnumripper commented on GitHub (Dec 18, 2014): Now that J1 was released, I put this back in the bleeding tree.
Author
Owner

@kholia commented on GitHub (Mar 4, 2015):

I am in favor of dropping this format, and declaring LastPass to be "crap" ;)

<!-- gh-comment-id:77128197 --> @kholia commented on GitHub (Mar 4, 2015): I am in favor of dropping this format, and declaring LastPass to be "crap" ;) - http://www.tobtu.com/lastpass.php - https://github.com/HyShai/lastpass-pythonista (ideas for fixing this ticket)
Author
Owner

@magnumripper commented on GitHub (Mar 4, 2015):

The fact it's crap make it all the more suitable for JtR though.

<!-- gh-comment-id:77242421 --> @magnumripper commented on GitHub (Mar 4, 2015): The fact it's crap make it all the more suitable for JtR though.
Author
Owner

@nuartvision commented on GitHub (Aug 10, 2015):

how about trying to bring it back?

Encryption can be tested here (JS): https://lastpass.com/js/enc.php

testlastpasstest(at)mailinator.com with default 5000 rounds and "L@$tP@$$w0rd" successfully decrypts third line from .sch file "!2bcHEw27rUPFfgSC/YKJTQ==|2uSR44lBLHUVCf2pZp1+KItS/91XtIrMP8Yli2xO94I=" as email address

image

<!-- gh-comment-id:129407633 --> @nuartvision commented on GitHub (Aug 10, 2015): how about trying to bring it back? Encryption can be tested here (JS): https://lastpass.com/js/enc.php testlastpasstest(at)mailinator.com with default 5000 rounds and "L@$tP@$$w0rd" successfully decrypts third line from .sch file "!2bcHEw27rUPFfgSC/YKJTQ==|2uSR44lBLHUVCf2pZp1+KItS/91XtIrMP8Yli2xO94I=" as email address ![image](https://cloud.githubusercontent.com/assets/1858405/9170030/03c03050-3f68-11e5-8320-e3efca2b3688.png)
Author
Owner
<!-- gh-comment-id:141050980 --> @kholia commented on GitHub (Sep 17, 2015): https://systemoverlord.com/blog/2015/09/16/what-the-lastpass-cli-tells-us-about-lastpass-design/ https://github.com/lastpass/lastpass-cli These might help us fix this format.
Author
Owner

@Fist0urs commented on GitHub (Jan 29, 2016):

Ok, I've taken a quick look to this shit and actually the problem seems to be, for me, to find the iteration number.

By default number of iterations for pbkdf2-sha256 is 5000, but users can lower this (I don't know the condition, I've read something related to premium account or thing like that(?)), and if user lowers it to 1, then raw-sha256 is used.

Concerning AES 256, there is two possibilities:

  • the blob begins with '!' => the next 16 bytes are the salt used for CBC mode and last 32 bytes are ciphertext
  • otherwise ECB mode is used

And I haven't seen anyway to get iteration number just looking at the blob :( (well, I don't really know this software. I just know that it is quite used so we should take a look...)

<!-- gh-comment-id:177023820 --> @Fist0urs commented on GitHub (Jan 29, 2016): Ok, I've taken a quick look to this shit and actually the problem seems to be, for me, to find the iteration number. By default number of iterations for pbkdf2-sha256 is 5000, but users can lower this (I don't know the condition, I've read something related to premium account or thing like that(?)), and if user lowers it to 1, then raw-sha256 is used. Concerning AES 256, there is two possibilities: - the blob begins with '!' => the next 16 bytes are the salt used for CBC mode and last 32 bytes are ciphertext - otherwise ECB mode is used And I haven't seen anyway to get iteration number just looking at the blob :( (well, I don't really know this software. I just know that it is quite used so we should take a look...)
Author
Owner

@kholia commented on GitHub (Aug 15, 2017):

Both LastPass v3.x and LastPass CLI are now supported properly with the recent PRs.

<!-- gh-comment-id:322369246 --> @kholia commented on GitHub (Aug 15, 2017): Both LastPass v3.x and LastPass CLI are now supported properly with the recent PRs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
openwall/john#495
No description provided.