ydkhatri / Android

Android forensics related scripts
https://swiftforensics.com
MIT License
6 stars 1 forks source link

providers settings getting error #2

Open yssreddy1961 opened 2 years ago

yssreddy1961 commented 2 years ago

yssreddy@boss:~$ python3 providers_settings_parser.py Traceback (most recent call last): File "providers_settings_parser.py", line 31, in "name" / String(this.name_len, 'utf8'), NameError: name 'String' is not defined

getting above error in linux python3

ydkhatri commented 2 years ago

You probably don't have the Construct module installed

pip install construct should fix it.

On Sat, Dec 4, 2021, 5:16 PM yssreddy1961 @.***> wrote:

@.***:~$ python3 providers_settings_parser.py Traceback (most recent call last): File "providers_settings_parser.py", line 31, in "name" / String(this.name_len, 'utf8'), NameError: name 'String' is not defined

getting above error in linux python3

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ydkhatri/Android/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFCHUGQNRY2QJ3W4REGRRDUPGW35ANCNFSM5JLHAM4Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

yssreddy1961 commented 2 years ago

i have already installed construct module as listed below. any particular version is required ?

yssreddy@boss:~$ pip3 list| grep construct construct 2.10.67 yssreddy@boss:~$

ydkhatri commented 2 years ago

Are you running python 3.10?

yssreddy1961 commented 2 years ago

yssreddy@boss:~$ python3 -V Python 3.7.3 yssreddy@boss:~$

running python 3.7.3

CherryDT commented 6 months ago

Replace all occurrences of String( by PaddedString( - make sure not to replace PascalString( though (and neither fromstring().

You can also download my fixed version from here.

Marcony1 commented 3 months ago

Replace all occurrences of String( by PaddedString( - make sure not to replace PascalString( though (and neither fromstring().

You can also download my fixed version from here.

Amazing. Your fix works perfectly for me.