Sending instagram DMs programatically

macdonjo3

Elite Member
Jr. VIP
Joined
Nov 8, 2009
Messages
8,887
Reaction score
9,192
Brilliant ppl of the programming section,

I'm using Charles to sniff HTTPS traffic. I have a few different endpoints so far. However, I'm noticing traffic for sending messages on Instagram isn't being picked up by Charles.

So I googled and found the endpoint for broadcasting messages.

However, it only sends sometimes. Every time I get 'status': 'ok' but when I check the messages, only the first attempt sent. Additional attempts succeeded according to server response, but didn't actually send.

anyone have any ideas?
 
How is this even possible ?
Are you sure of what you're saying ?

If the server confirms that the messages have been sent, I don't see how they couldn't be unless Instagram's API got serious request handling problem.
 
How is this even possible ?
Are you sure of what you're saying ?

If the server confirms that the messages have been sent, I don't see how they couldn't be unless Instagram's API got serious request handling problem.

I don't know about this specific scenario, but if they use websockets it wouldn't get picked up by an HTTP sniffer.
 
True that. It would be possible through a software that does "something I can't post about here apparently" like Wireshark.

EDIT : This is strange, I can't quote Brian Alexander without being accused of trying to spam the thread...
Anyway. That thing I was talking about is packet sniffing.
 
Are you sniffing through a mobile application?

It can be because modern application use certificate pinning. Basically it will blacklist Charles certificate your are using for the MITM proxy. You won't be able to decrypt HTTPS requests because of this. That is why you are seeing a successful HTTPS request but not it's content.

There are some ways of doing this but it can be very difficult (Google : bypassing certificate pinning). But it would be easier to copy the DM portion from open source instagram libraries that already did the hard part.
 
Back
Top