frida.ProcessNotFoundError:
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 20/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- android, python
- Lĩnh vực
- mobile-dev, reverse-engineering
Hướng nghiên cứu
Bắt đầu tại dòng 33 của Tracking.py, nơi get_usb_device().attach('com.app.test') gây ra ProcessNotFoundError, và xác minh rằng package đích đang chạy trên trình giả lập Bluestacks Android 4.4.4 đã root. Được xem là hoàn tất khi setup được báo cáo có thể tìm và attach vào process được yêu cầu, với mọi chi tiết cần thiết để tái hiện đã được ghi lại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
C:\python32\python-2.7.10\python.exe D:/source/python/tracking_tools/Tracking.py
Traceback (most recent call last):
File "D:/source/python/tracking_tools/Tracking.py", line 33, in
process = frida.get_usb_device().attach('com.app.test')
File "C:\Users\Gigabyte\AppData\Roaming\Python\Python27\site-packages\frida\core.py", line 97, in attach
return Session(self._impl.attach(self._pid_of(target)))
File "C:\Users\Gigabyte\AppData\Roaming\Python\Python27\site-packages\frida\core.py", line 115, in _pid_of
return self.get_process(target).pid
File "C:\Users\Gigabyte\AppData\Roaming\Python\Python27\site-packages\frida\core.py", line 73, in get_process
raise _frida.ProcessNotFoundError("unable to find process with name '%s'" % process_name)
frida.ProcessNotFoundError: unable to find process with name 'com.app.test'
`import frida, sys
def on_message(message, data):
if message['type'] == 'send':
print("[*] {0}".format(message['payload']))
else:
print(message)
jscode = """
Java.perform(function () {
// Function to hook is defined here
var MainActivity = Java.use('com.app.test.MainActivity');
// Whenever button is clicked
MainActivity.onClick.implementation = function (v) {
// Show a message to know that the function got called
send('onClick');
// Call the original onClick handler
this.onClick(v);
// Set our values after running the original onClick handler
this.m.value = 0;
this.n.value = 1;
this.cnt.value = 999;
// Log to the console that it's done, and we should have the flag!
console.log('Done:' + JSON.stringify(this.cnt));
};
});
"""
process = frida.get_usb_device().attach('com.app.test')
script = process.create_script(jscode)
script.on('message', on_message)
print('[*] Running CTF')
script.load()
sys.stdin.read()`
I'm using android emulator 4.4.4( bluestack rooted) and frida 10.2.3
- Ngôn ngữ chính
- Python
- Star
- 873
- Fork
- 173
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của frida/frida-python
-
Custom agent with Java bridge Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
frida/frida-python#265 · 2 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
frida/frida-python#262 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
frida/frida-python#247 · 2 bình luận · 2 reaction ·
-
After a long period of hooking applications on Ubuntu, Python and JavaScript are unable to interact. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
frida/frida-python#246 ·
-
How can I connect to Ipv6? Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
frida/frida-python#243 ·
Tất cả issue của frida/frida-python
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
stephrobert/dsoxlab#238 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
sublimehq/package_control#1780 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
nwg-piotr/nwg-displays#145 ·