0

I'm working on a raspberry pi project that connects to a Wi-Fi network that requires a user to click a "Log in" button by redirecting the webpage to an internal server, which presumably stores the MAC address in a table, and permits traffic to pass through.

Given that the pi will run headless, is there anyway to write a script that calls the button's java script function, preferably with something like cURL?

  • You can open network tab in developer tools and check what http request was send and then do the same with curl. – jcubic Oct 14 '16 at 14:45

1 Answers1

1

Use fiddler to sniff at the traffic. Figure out what is being submitted to the URL (form post, http/https, etc.) and create a cURL request (or Python or NodeJS ...) that submits the same information.

If they are using CSRF tokens, you will have to request the web page first via cURL, grep the output, and submit using that same token. See one example here

Sorry can't help much further without additional details.

Community
  • 1
  • 1
Graeme Wicksted
  • 1,770
  • 1
  • 18
  • 21