Posts Tagged ‘ router ’
In work I have wireless network with D-Link router “DSL-2640B”, and I need to reconnect ADSL service to change IP adress, so I write this ruby script, which use telnet standard libary. #!/usr/bin/ruby require 'net/telnet' require 'optparse' opts = ARGV.getopts('h:p:') passwd = opts['-p'] host = opts['-h'] server = Net::Telnet::new('Host'=>host, 'Port'=> 23, 'Timeout'=>25, 'Prompt'=> />/) server.waitfor(/ogin:/) [ READ MORE ]
Here is bash on alias for get IP adress of your livebox router. (tested on Ubuntu GNU/Linux) alias livebox-ip='tmp=`mktemp`;curl -u admin:<your password> --silent --url http://192.168.1.1/internetservices.html -o $tmp; grep -E "var v_Adrs_IP[^=]*=" $tmp | cut -d"\"" -f2 ; rm $tmp' You must have installed curl. Note that you must change your livebox password[ READ MORE ]
If you have livebox wireless router you could easily change you dynamic IP. It is handy if you download files from rapidshare. Here is the python code. It was tested on polish livebox. You could download code from here. #!/usr/bin/python import base64 import urllib2 import urllib def send(data, host, passwd): "send request to livebox SubmitInternetService." [ READ MORE ]
Get every new post delivered to your Inbox.
Join 69 other followers