Coder Social home page Coder Social logo

kamicater / lg-gallery-decryptor Goto Github PK

View Code? Open in Web Editor NEW
15.0 4.0 6.0 29 KB

Decrypt your encrypted images (*.jpg.dm) and videos (*.mp4.dm) from the LG Gallery App.

License: GNU General Public License v3.0

Python 100.00%
lg phone decryption dm encryptoin gallery images jpg mp4 videos

lg-gallery-decryptor's Introduction

LG Gallery Decryptor

Decrypt your encrypted images (*.jpg.dm) and videos (*.mp4.dm) from the LG Gallery App. You need to know your gmail address. It's also possible to decrypt your multimedia files if you don't remember your gmail address.

Based on the paper "A study on LG content lock and data aquisition from apps based on content lock function" from Giyoon Kim, Myungseo Park and Jongsung Kim from 28 September 2021.

Please use at your own advice. There is no error handling.

Installation

Install the needed dependencies:

python3 -m pip install -r requirements.txt

How to use:

You can use the help to see an explanation of all of the arguments:

python3 lgdecryptor.py --help

Example decrypting a single file:

python3 lgdecryptor.py [email protected] 20161230_133055.jpg.dm

Example decrypting multiple files:

python3 lgdecryptor.py [email protected] 20161230_133055.jpg.dm 20161230_134050.mp4.dm

Example decrypting multiple files using globbing:

python3 lgdecryptor.py [email protected] *.dm

The output directory can be changed as so:

python3 lgdecryptor.py -o decrypted/ [email protected] *.dm

lg-gallery-decryptor's People

Contributors

kamicater avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lg-gallery-decryptor's Issues

AttributeError: 'NoneType' object has no attribute 'group'

Hi, I am trying to run this script on a video, but it fails to find lgeflock.

E:\x>python lgdecryptor.py 20190204_235306.mp4.dm
Start decrypting file 20190204_235306.mp4.dm
Traceback (most recent call last):
  File "E:\x\lgdecryptor.py", line 210, in <module>
    main()
  File "E:\x\lgdecryptor.py", line 170, in main
    lgeflock, iv, imagestartbyte = get_lgeflock_iv_imagestart(image_path_encrypted)
  File "E:\x\lgdecryptor.py", line 136, in get_lgeflock_iv_imagestart
    lgeflock = result_lgeflock.group(1)
AttributeError: 'NoneType' object has no attribute 'group'

.

.

TypeError: can only concatenate str

Hello
Thank you very much for your work, I hope i can restore my files too which taken from broken phone and couldn't restore for a long time.

i have tryed your script but couldn't work it, any help will be perfect, when I run with my files I got that console

C:\test>python lgdecryptor.py Screenshot.png.dm
Start decrypting file Screenshot.png.dm
lgeflock: [email protected]
iv: b'XXXXXXXXXX'
File information read successfully
Retrieving decryption key
Traceback (most recent call last):
File "C:\test\lgdecryptor.py", line 211, in
main()
File "C:\test\lgdecryptor.py", line 190, in main
dk = decryptlg(gmail, lgeflock)
File "C:\test\lgdecryptor.py", line 39, in decryptlg
getword(h1, h1_sha)
File "C:\test\lgdecryptor.py", line 21, in getword
return hexvalue[(index * 8):(index * 8 + 8)]
TypeError: can only concatenate str (not "int") to str

how to solve this problem?

Regards and thank you very much again for your work.

P.S: i have marked with words xxxxxx for private things, as your scripted worked there.

Please help

Can you please help me how to do it?
Im not into coding and I have lot of files to decrypt but in the "How to" is only way by writing them one by one

Probably user errors

@Brollyzeven
Your line C:\Users\mwall>Python C:\Users\mwall\Desktop\LG\lgdecryptor.py 20141123_174651.mp4 (2020_06_29 03_16_15 UTC).dm is wrong. Read the How to again:

python lgdecryptor.py encrypted/20161230_133055.jpg.dm

So in your case:

C:\Users\mwall>cd C:\Users\mwall\Desktop\LG\
C:\Users\mwall\Desktop\LG>Python lgdecryptor.py encrypted\20141123_174651.mp4.dm

or probably

C:\Users\mwall>cd C:\Users\mwall\Desktop\LG\
C:\Users\mwall\Desktop\LG>Python lgdecryptor.py "encrypted\20141123_174651.mp4 (2020_06_29 03_16_15 UTC).dm"

Notice the quotes!

Does it work on LG C360 ?

Hi,
I just found an old phone I've when I was younger and I've lost the pin for unlock the Gallery App but I don't remember there was an gmail necessary at this time so does it work with only the pin ?
Thanks

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.