How to Fix This
Since the function isn’t exported, calculate its address using the base address + offset seen in IDA:
var base = Module.findBaseAddress("your_binary_name");
var send_packet = base.add(0x1234); // Replace 0x1234 with the offset from IDA
Interceptor.attach(send_packet, {
onEnter: function(args) {
console.log("send_packet called!");
}
});