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

AttributeError: 'str' object has no attribute 'decode' #110

Open
ghost opened this issue Jan 5, 2024 · 0 comments
Open

AttributeError: 'str' object has no attribute 'decode' #110

ghost opened this issue Jan 5, 2024 · 0 comments

Comments

@ghost
Copy link

ghost commented Jan 5, 2024

Describe the bug
It fails to dump Mario Kart Tour on Windows

To Reproduce
Steps to reproduce the behavior:

  1. Build for Windows
pip3 install -r requirements.txt
python3 setup.py
cd frida-ios-hook
  1. Dump Mario Kart Tour using python3 ioshook -p com.nintendo.zaka -d

Logs

PS F:\Mobile-Modding\iOS\frida-ios-hook-new\frida-ios-hook> python3 ioshook -p com.nintendo.zaka -d


        _|    _|_|      _|_|_|      _|    _|                      _|
            _|    _|  _|            _|    _|    _|_|      _|_|    _|  _|
        _|  _|    _|    _|_|        _|_|_|_|  _|    _|  _|    _|  _|_|
        _|  _|    _|        _|      _|    _|  _|    _|  _|    _|  _|  _|
        _|    _|_|    _|_|_|        _|    _|    _|_|      _|_|    _|    _|
                        https://noobpk.github.io          #noobboy
                    Trace Class/Func & Modify Return Value

[*]___author___: @noobpk
[*]___version___: 3.8

[05-01-24 13:33:25] [ERROR] - [*] Iproxy process for port 2222 is dead.
[?] Do you want start iproxy 2222 22 (yes/no): yes
[05-01-24 13:33:29] [INFO] - [*] Start iproxy
waiting for connection
[05-01-24 13:33:31] [INFO] - [*] Dumping...
accepted connection, fd = 232
waiting for connection
Requesting connecion to USB device handle 15 (serial: 1995f8a7e2b9b18263745b75aa159bd40b29c488), port 22
run_ctos_loop: fd = 232
run_stoc_loop: fd = 232
[05-01-24 13:33:34] [INFO] - Connected (version 2.0, client OpenSSH_8.4)
[05-01-24 13:33:34] [INFO] - Authentication (password) successful!
[05-01-24 13:33:34] [INFO] - Start the target app com.nintendo.zaka
[05-01-24 13:33:34] [INFO] - Dumping Mario Kart to C:\Users\quocd\AppData\Local\Temp
 [frida-ios-dump]: Load  GTLR.framework success.
 [frida-ios-dump]: Load  UnityFramework.framework success.
 [Start Dump]:  /private/var/containers/Bundle/Application/AE45B6A3-8304-4820-9F87-018C415BDF42/zaka.app/zaka
0.00B [00:00, ?B/s]Traceback (most recent call last):
  File "D:\Python3\Lib\site-packages\frida\core.py", line 555, in _on_message
    callback(message, data)
  File "F:\Mobile-Modding\iOS\frida-ios-hook-new\frida-ios-hook\core\utils\dump.py", line 110, in on_message
    scp.get(scp_from, scp_to)
  File "D:\Python3\Lib\site-packages\scp.py", line 277, in get
    self._recv_all()
  File "D:\Python3\Lib\site-packages\scp.py", line 430, in _recv_all
    command[code](msg[1:])
  File "D:\Python3\Lib\site-packages\scp.py", line 480, in _recv_file
    self._progress(path, size, 0, self.peername)
  File "D:\Python3\Lib\site-packages\scp.py", line 147, in <lambda>
    self._progress = lambda *a: progress(*a[:3])
                                ^^^^^^^^^^^^^^^^
  File "F:\Mobile-Modding\iOS\frida-ios-hook-new\frida-ios-hook\core\utils\dump.py", line 95, in progress
    t.desc = os.path.basename(filename).decode("utf-8")
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'decode'
0.00B [00:00, ?B/s]
0.00B [00:00, ?B/s]Traceback (most recent call last):
  File "D:\Python3\Lib\site-packages\frida\core.py", line 555, in _on_message
    callback(message, data)
  File "F:\Mobile-Modding\iOS\frida-ios-hook-new\frida-ios-hook\core\utils\dump.py", line 128, in on_message
    scp.get(scp_from, scp_to, recursive=True)
  File "D:\Python3\Lib\site-packages\scp.py", line 277, in get
    self._recv_all()
  File "D:\Python3\Lib\site-packages\scp.py", line 430, in _recv_all
    command[code](msg[1:])
  File "D:\Python3\Lib\site-packages\scp.py", line 480, in _recv_file
    self._progress(path, size, 0, self.peername)
  File "D:\Python3\Lib\site-packages\scp.py", line 147, in <lambda>
    self._progress = lambda *a: progress(*a[:3])
                                ^^^^^^^^^^^^^^^^
  File "F:\Mobile-Modding\iOS\frida-ios-hook-new\frida-ios-hook\core\utils\dump.py", line 95, in progress
    t.desc = os.path.basename(filename).decode("utf-8")
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'decode'
0.00B [00:00, ?B/s]
0.00B [00:00, ?B/s]
[05-01-24 13:33:35] [INFO] - Generating "Mario Kart.ipa"
'app'
recv failed: connection reset

Desktop (please complete the following information):

  • OS: Windows 11
  • Browser: Chrome
  • Version: 23H2

Smartphone (please complete the following information):

  • Device: iPad 10.2 (2019)
  • OS: iOS
  • Browser: Safari
  • Version: 14.6
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

0 participants