Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in reflutter apk #70

Open
ouyanglong721 opened this issue Jun 2, 2024 · 4 comments
Open

error in reflutter apk #70

ouyanglong721 opened this issue Jun 2, 2024 · 4 comments

Comments

@ouyanglong721
Copy link

I used reflutter to reverse engineer the APK and generated an APK. Then I used blutter to continue to reverse engineer the APK, but an error occurred。

➜ blutter git:(main) python3 blutter.py ../../so/arm64-v8a ../out
Traceback (most recent call last):
File "/root/project/reverse/utils/blutter/blutter.py", line 168, in
main(args.indir, args.outdir, args.rebuild, args.vs_sln, args.no_analysis)
File "/root/project/reverse/utils/blutter/blutter.py", line 100, in main
dart_version, snapshot_hash, flags, arch, os_name = extract_dart_info(libapp_file, libflutter_file)
File "/root/project/reverse/utils/blutter/extract_dart_info.py", line 120, in extract_dart_info
commit_id, dart_version = get_dart_commit(sdk_url)
File "/root/project/reverse/utils/blutter/extract_dart_info.py", line 80, in get_dart_commit
with requests.get(url, headers={"Range": "bytes=0-4096"}, stream=True) as r:
File "/usr/local/python3/lib/python3.10/site-packages/requests/api.py", line 73, in get
return request("get", url, params=params, **kwargs)
File "/usr/local/python3/lib/python3.10/site-packages/requests/api.py", line 59, in request
return session.request(method=method, url=url, **kwargs)
File "/usr/local/python3/lib/python3.10/site-packages/requests/sessions.py", line 575, in request
prep = self.prepare_request(req)
File "/usr/local/python3/lib/python3.10/site-packages/requests/sessions.py", line 486, in prepare_request
p.prepare(
File "/usr/local/python3/lib/python3.10/site-packages/requests/models.py", line 368, in prepare
self.prepare_url(url, params)
File "/usr/local/python3/lib/python3.10/site-packages/requests/models.py", line 439, in prepare_url
raise MissingSchema(
requests.exceptions.MissingSchema: Invalid URL 'None': No scheme supplied. Perhaps you meant https://None?

@worawit
Copy link
Owner

worawit commented Jun 23, 2024

Why don't you use original libflutter.so with Blutter?

reflutter build their own libflutter.so, so it is obvious that the script cannot find flutter version from official release archive.

@ouyanglong721
Copy link
Author

Why don't you use original libflutter.so with Blutter?

reflutter build their own libflutter.so, so it is obvious that the script cannot find flutter version from official release archive.

Of course i can use original, and i also do it,but i think it’s a better way to help me to analyze flutter app by blutter and reflutter ,because i can use blutter to hook and use reflutter to anaylyse http requests.

@worawit
Copy link
Owner

worawit commented Jun 24, 2024

Blutter only uses libflutter.so for getting Dart version. All output is from libapp.so only.

@ouyanglong721
Copy link
Author

Ok.thanks for replying.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants