Created
April 10, 2012 13:19
-
-
Save pabluk/2351312 to your computer and use it in GitHub Desktop.
Bouygues Box Reboot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#============================================================================ | |
# | |
# FILE: bbox-reboot.sh | |
# USAGE: ./bbox-reboot.sh | |
# | |
# TITLE: Bouygues Box Reboot (Bouygues is a French ISP) | |
# AUTHOR: Pablo SEMINARIO <[email protected]> | |
# VERSION: 0.1 | |
# LICENSE: GPL v3 | |
# DESCRIPTION: Sends a HTTP request to restart the BBox router. | |
# MODEL TESTED: SAGEMCOM F@ST 3504b firmware: Fast3504_5B00IG version: 1.0.0 | |
# URL: https://gist.github.com/2351312 | |
# | |
#============================================================================ | |
BBOX_IPADDR=192.168.0.1 | |
FORMDATA="page=infosys_main&action=reboot&sessionid=" | |
ADMIN_URL=http://$BBOX_IPADDR/index.cgi?page=infosys_main | |
curl --silent --show-error --data $FORMDATA $ADMIN_URL > /dev/null |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment