To improve the user experience on this site we use cookies. I agree | I disagree

Sending SMS remotely via router web page (HTTP POST method).

In category Routers .

CSRF attack protection from firmware version 5.3.0

Script from Linux
message="Hello world."
curl -k -d "username=root&password=root" --dump-header /tmp/headers --output /dev/null https://$ROUTER/login_exec.cgi
REQUEST_ID=$(curl -k -b /tmp/headers https://$ROUTER/send.cgi | sed -n '/hidden/s/.*name="request_id"\s\+value="\([^"]\+\).*/\1/p')
curl -k -b /tmp/headers --form request_id=$REQUEST_ID --form phone="$phone" --form message="$message" --output /dev/null https://$ROUTER/send_exec.cgi




To the FAQ overview