Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

how to pass a dict parameter from python to frida rpc javascript function?

Đang mở
#156 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ệ

Hướng nghiên cứu

Start with the Python script.exports call and the JavaScript rpc.exports function shown in the issue, then reproduce the call using _dict, secret, and signMethod. Done means determining a working parameter-passing approach and documenting the relevant behavior for this RPC call.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

I want to call a rpc function in frida js code,below is my rpc:

    rpc.exports = {
        signrequesturlwithparameters: function (param_dict,secret,signMethod) {	
 var result=ObjC.classes.GSNetworkUtils.signRequestUrlWithParameters_secret_signMethod_(param_dict,secret,signMethod);
		return String(ObjC.classes.NSString.stringWithString_(result));
        }
    };

and I want to use below python code to call the rpc function:

script.load()
signrequesturlwithparameters= getattr(script.exports, 'signrequesturlwithparameters')
_dict={"imsi":"46001","device_model":"iPhone7,2"}
secret="93AA27467E8"; 
signMethod="md5";
a=signrequesturlwithparameters(_dict,secret,signMethod)
print(a)

but it turns out run error,can I pass a dict from python to javasript rpc function in upon way? How should I modify the python or javascript code to make it work?
Can someone help me?

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của frida/frida-python

Tất cả issue của frida/frida-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.