Coder Social home page Coder Social logo

Comments (9)

kamicater avatar kamicater commented on May 27, 2024

First of all iv is no secret value because it's just in plain sight in the image file itself.

Which Python version do you use? Only Python 3 is supported. Type python --version to clarify.

When you put in your gmail address, did you preserve the leading b? The line should look like this:

gmail = b'[email protected]'

Hope that helps.

from lg-gallery-decryptor.

ocen avatar ocen commented on May 27, 2024

First of all iv is no secret value because it's just in plain sight in the image file itself.

Which Python version do you use? Only Python 3 is supported. Type python --version to clarify.

When you put in your gmail address, did you preserve the leading b? The line should look like this:

gmail = b'[email protected]'

Hope that helps.

I do use Python 3.9.1 and I did gmail like you said, only filled between '[email protected]' , didn't touch anything else and I got that error.

is it possible to work without gmail?
i had some e-mail address long time ago and which I remember them %100 and tested one by one but no luck, is this console error some how related with gmail or something else?

from lg-gallery-decryptor.

kamicater avatar kamicater commented on May 27, 2024

I can confirm it's a bug. Thank you for pointing it out. It happened because I changed some code 'last minute'. It should be easily fixed.

No, the gmail address is required.

from lg-gallery-decryptor.

ocen avatar ocen commented on May 27, 2024

thank you very much, will be waiting for fix,
I wish I could write some code like you and help to fix before you write, so I can support too,

as I readed their pdf before, there was a way to without gmail, am I right wrong?

from lg-gallery-decryptor.

kamicater avatar kamicater commented on May 27, 2024

Please tell me if that helped because I like to close the issue.

The gmail address is needed. But if you don't remember it can be decrypted from the image file itself. Altough this part of the paper is not included in this tool.

from lg-gallery-decryptor.

ocen avatar ocen commented on May 27, 2024

Thank you very much, it worked perfect.
as i see there is only little bug left, "decrypted" folder must be created before running script.
otherwise consol error appears but file is created same folder where .py runned.
if "decrypted" folder created, no error.

btw can you create tool or guide if we forget gmail address how to get it from the image file itself?

Regards, thank you again

from lg-gallery-decryptor.

kamicater avatar kamicater commented on May 27, 2024

You are correct, the handling regarding the decrypted directory could be improved. Also I should have stated that the images should be in a folder called encrypted. But this tool is just a 'quick and dirty' solution to retrieve lost images and then to throw it away. The code could be improved in many many ways.

This tool is the implementation of algorithm 4 in the mentioned paper. To retrieve the gmail address one need to implement algorithm 2. It's just a simple operation on LGEID2 with a constant value. I have no inclination to do so.

This issue is closed now. I'm glad I could help.

from lg-gallery-decryptor.

Brollyzeven avatar Brollyzeven commented on May 27, 2024

Hello, thank you for this code. I am trying to decrypt an old LG phone I broke a while back. I am in way, way over my head and I have been trying to get this work for over 5 hours now. Any help would be greatly appreciated. I am trying to decrypt over 274 .jpg and .mp4 and I haven't even got the first one finished yet :-(

I am using Python 3.11 should I be using something different?

I have my encrypted and decrypted files and my lgdecryptor in this folder:
C:\Users\mwall\Desktop\LG\decrypted
C:\Users\mwall\Desktop\LG\encrypted
C:\Users\mwall\Desktop\LG\lgdecryptor.py

I keep getting this error
C:\Users\mwall>Python C:\Users\mwall\Desktop\LG\lgdecryptor.py 20141123_174651.mp4 (2020_06_29 03_16_15 UTC).dm
Start decrypting file 20141123_174651.mp4
Traceback (most recent call last):
File "C:\Users\mwall\Desktop\LG\lgdecryptor.py", line 210, in
main()
File "C:\Users\mwall\Desktop\LG\lgdecryptor.py", line 170, in main
lgeflock, iv, imagestartbyte = get_lgeflock_iv_imagestart(image_path_encrypted)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\mwall\Desktop\LG\lgdecryptor.py", line 125, in get_lgeflock_iv_imagestart
cipher_file = open(image_path, "rb")
^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: './encrypted\20141123_174651.mp4'

Am I supposed to change anything other than adding my e-mail in the code below?

def main():

# your gmail address on your phone when the files have been encrypted
gmail = b'[email protected]'

# folders of encrypted and decrypted files
encrypt_dir = './encrypted'
decrypt_dir = ''

image

from lg-gallery-decryptor.

kamicater avatar kamicater commented on May 27, 2024

@Brollyzeven
#4

from lg-gallery-decryptor.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.