rscloura / Doldrums

A Flutter/Dart reverse engineering tool
769 stars 116 forks source link

Unsupported Dart version #5

Closed Shivanshu10 closed 3 years ago

Shivanshu10 commented 3 years ago
Traceback (most recent call last):                                                                                                                                                                                                         
  File "src/main.py", line 53, in <module>                                                                                                                                                                                                 
    isolate = parseELF(args.file)                                                                                                                                                                                                          
  File "src/main.py", line 27, in parseELF                                                                                                                                                                                                 
    vm = Snapshot(blobs[0], offsets[0], blobs[1], offsets[1])                                                                                                                                                                              
  File "/home/shivanshu/Documents/Projects/hackthebox/Doldrums/src/Snapshot.py", line 27, in __init__                                                                                                                                      
    self.parseHeader()                                                                                                                                                                                                                     
  File "/home/shivanshu/Documents/Projects/hackthebox/Doldrums/src/Snapshot.py", line 48, in parseHeader                                                                                                                                   
    raise Exception('Unsupported Dart version: ' + self.hash)                                                                                                                                                                              
Exception: Unsupported Dart version: fe3d63536e7ae14d452e925a8406afeb   
rscloura commented 3 years ago

Hi. It would appear you're trying to parse a file that was built using a different Dart version than the one Doldrum targets. No production release of Dart has the hash fe3d63536e7ae14d452e925a8406afeb shown in the error message. Are you using a dev or beta release of Dart?

shortstopyomin commented 3 years ago

Hi, Traceback (most recent call last): File "/Users/yomin/Documents/Doldrums/src/main.py", line 53, in isolate = parseELF(args.file) File "/Users/yomin/Documents/Doldrums/src/main.py", line 27, in parseELF vm = Snapshot(blobs[0], offsets[0], blobs[1], offsets[1]) File "/Users/yomin/Documents/Doldrums/src/Snapshot.py", line 27, in init self.parseHeader() File "/Users/yomin/Documents/Doldrums/src/Snapshot.py", line 48, in parseHeader raise Exception('Unsupported Dart version: ' + self.hash) Exception: Unsupported Dart version: 9e2165577cef0f0f70f9ff072107920c

beta channel: Flutter 1.25.0-83

Could you give any suggestion?

rscloura commented 3 years ago

Hi! Unfortunately, Doldrums currently only supports the latest Dart full release (2.10), and not the most recent beta or dev releases. The format has suffered significant changes, and the tool will need to be updated once there is a new production release.

Shivanshu10 commented 3 years ago

Yes it is build on beta version flutter