Packet sending script, iOS 9.1 I have an app which sends specific packets to a server every time I press a particular button on the app, the problem is that I need to press it every 30 seconds during a few hours and it's annoying. Is there any way to script it so that the packets are automatically sent every 30 seconds to the server?

I thought about a macro tool but it's not possible since I can't jailbreak.
Any ideas on how to approach to a solution?
Solved! This might be really helpful for those with the same issue, follow these steps:


Download and install Burp Suite Free Edition in your PC/Mac
Go to Proxy->Options and edit the *.8080 interface to "All interfaces" in "Bind to address"
Go to your iPhone/Tablet/Whatever and connect it to the same Wi-Fi network your PC is connected to, set up a manual proxy to your PC's IP on port 8080.
In Burp Suite go to Proxy->HTTP History and press the button in your cellphone that sends the request you want to automate.
Compile a script in C# that sends a HTTP request with the same method, parameters and headers.
Make it loop :)


Now your PC will send the packets to the host and you can even simulate it was sent from iOS using the parameters you just coppied, it also wont drain your phone's battery at all.