sensepost / objection

📱 objection - runtime mobile exploration
GNU General Public License v3.0
7.33k stars 841 forks source link

Intercept FCM/APNs messages #236

Open aph3rson opened 5 years ago

aph3rson commented 5 years ago

Is your feature request related to a problem? Please describe. When an app receives a push notification from Firebase, the onReceive method in the receiver class is called. It would be nice to be able to see what sorts of information was sent in that push notification, including sender/payload/etc. This also applies to APNs, to some extent.

Describe the solution you'd like An option for Android/iOS to dump the contents of a push notification in a clear, easy-to-read format.

Describe alternatives you've considered Hooking the onReceive() method manually - the Context object doesn't stringify well, however.

leonjza commented 5 years ago

Do you perhaps have a sample application in mind we could target to build this?

aph3rson commented 5 years ago

There's a demo app for FCM here. Otherwise, it should be most apps using push notifications.

daMatz commented 2 years ago

@leonjza I would also be interested in this topic. Did you already start looking into this? If you have some information for me we could split the work.

leonjza commented 2 years ago

I haven't looked into this yet, no. But, with @aph3rson information, this may be a simple hook to get the data, then call methods to get "readable" information out of the object passed as an argument.