CreditTone / hooker

🔥🔥hooker是一个基于frida实现的逆向工具包。为逆向开发人员提供统一化的脚本包管理方式、通杀脚本、自动化生成hook脚本、内存漫游探测activity和service、firda版JustTrustMe、disable ssl pinning
Apache License 2.0
3.65k stars 924 forks source link

Unable to attach using identifier #55

Open gaplan opened 2 years ago

gaplan commented 2 years ago

Screen Shot 2022-07-13 at 07 24 09

  PID  Name                          Identifier                                   
-----  ----------------------------  ---------------------------------------------
 7313  AirDroid                      com.sand.airdroid                            
 8263  Calendar                      com.samsung.android.calendar                 
 7572  Contacts                      com.samsung.android.contacts                 
 7572  Contacts                      com.samsung.android.contacts                 
26770  Dergilik                      com.arneca.dergilik.main3x                   
 5384  Google                        com.google.android.googlequicksearchbox      
 5384  Google                        com.google.android.googlequicksearchbox      
 6258  Google Play Store             com.android.vending                          
26635  Instagram Lite                com.instagram.lite                           
 6180  Lite                          com.facebook.lite                            
 6831  Magisk                        com.topjohnwu.magisk                         
26939  Official TWRP App             me.twrp.twrpapp                              
25921  S Voice                       com.samsung.voiceserviceplatform             
26081  Samsung Music                 com.sec.android.app.music                    
19360  TikTok                        com.zhiliaoapp.musically                     
27067  TikTok Lite                   com.zhiliaoapp.musically.go                  
 3608  抖音                            com.ss.android.ugc.aweme                     
Enter the need to attach package.
:    com.ss.android.ugc.aweme
It's com.ss.android.ugc.aweme that you have attached app.
Traceback (most recent call last):
  File "/Users/selcukakbulut/temp/andro/hooker/hooker.py", line 93, in attach
    online_session = rdev.attach(target)
  File "/opt/homebrew/lib/python3.9/site-packages/frida/core.py", line 26, in wrapper
    return f(*args, **kwargs)
  File "/opt/homebrew/lib/python3.9/site-packages/frida/core.py", line 165, in attach
    return Session(self._impl.attach(self._pid_of(target), *args, **kwargs))
  File "/opt/homebrew/lib/python3.9/site-packages/frida/core.py", line 193, in _pid_of
    return self.get_process(target).pid
  File "/opt/homebrew/lib/python3.9/site-packages/frida/core.py", line 26, in wrapper
    return f(*args, **kwargs)
  File "/opt/homebrew/lib/python3.9/site-packages/frida/core.py", line 121, in get_process
    raise _frida.ProcessNotFoundError("unable to find process with name '%s'" % process_name)
frida.ProcessNotFoundError: unable to find process with name 'com.ss.android.ugc.aweme'

--------------------------------------------------
CreditTone commented 1 year ago

Is the app process running?

gaplan commented 1 year ago

Nope.

Oldman19 commented 1 year ago

屏幕截图 2022-07-13 在 07 24 09

  PID  Name                          Identifier                                   
-----  ----------------------------  ---------------------------------------------
 7313  AirDroid                      com.sand.airdroid                            
 8263  Calendar                      com.samsung.android.calendar                 
 7572  Contacts                      com.samsung.android.contacts                 
 7572  Contacts                      com.samsung.android.contacts                 
26770  Dergilik                      com.arneca.dergilik.main3x                   
 5384  Google                        com.google.android.googlequicksearchbox      
 5384  Google                        com.google.android.googlequicksearchbox      
 6258  Google Play Store             com.android.vending                          
26635  Instagram Lite                com.instagram.lite                           
 6180  Lite                          com.facebook.lite                            
 6831  Magisk                        com.topjohnwu.magisk                         
26939  Official TWRP App             me.twrp.twrpapp                              
25921  S Voice                       com.samsung.voiceserviceplatform             
26081  Samsung Music                 com.sec.android.app.music                    
19360  TikTok                        com.zhiliaoapp.musically                     
27067  TikTok Lite                   com.zhiliaoapp.musically.go                  
 3608  抖音                            com.ss.android.ugc.aweme                     
Enter the need to attach package.
:    com.ss.android.ugc.aweme
It's com.ss.android.ugc.aweme that you have attached app.
Traceback (most recent call last):
  File "/Users/selcukakbulut/temp/andro/hooker/hooker.py", line 93, in attach
    online_session = rdev.attach(target)
  File "/opt/homebrew/lib/python3.9/site-packages/frida/core.py", line 26, in wrapper
    return f(*args, **kwargs)
  File "/opt/homebrew/lib/python3.9/site-packages/frida/core.py", line 165, in attach
    return Session(self._impl.attach(self._pid_of(target), *args, **kwargs))
  File "/opt/homebrew/lib/python3.9/site-packages/frida/core.py", line 193, in _pid_of
    return self.get_process(target).pid
  File "/opt/homebrew/lib/python3.9/site-packages/frida/core.py", line 26, in wrapper
    return f(*args, **kwargs)
  File "/opt/homebrew/lib/python3.9/site-packages/frida/core.py", line 121, in get_process
    raise _frida.ProcessNotFoundError("unable to find process with name '%s'" % process_name)
frida.ProcessNotFoundError: unable to find process with name 'com.ss.android.ugc.aweme'

--------------------------------------------------

Did you solve this problem, I also encountered the same error