Posts

Showing posts from November, 2011

Easily delete Lan Server entries in Belgacom BBOX routeur

Deleting Lan Server entires via the BBOX web interface is a pain when there are more than five entries to delete. Hopefully, you can connect to the telnet interface to achieve this task 10 times quicker : Connect to the router via telnet (check this post to figure out how to connect via telnet) Check the ID numbers of the entries you want to delete: You can hover the button to edit or delete an entry in the web interface in order to see the ID in the URI Or you can run this command rg_conf_print /fw/rule/loc_srv/ to see the list of Lan Servers Run the following command for each ID to delete where [ID] is the id to delete : rg_conf_del /fw/rule/loc_srv/ [ID] If you don't want to execute the command manualy, you can use my tool . Usage : bbox_fw_delete_id -i [bbox_ip] -l [login_name] -p [password] -s [start_id] -e [end_id] This tool is provided 'as is' and could not work as expected or even corrupt your BBox. .NET library used to write this tool

Disable UPnP on Belgacom BBox2 routeur

Connect via telnet on your belgacom routeur telnet 192.168.1.1 Login : admin Password : BGCVDSL2 (default password) Check if config is the same as expected  Following command should return  (enabled(1)) rg_conf_print upnp/enabled Change the configuration rg_conf_set upnp/enabled 0

Connect to your local router from wan through ssh

In a previous post , I've described how to open remote management for your bbox2 / local modem-router via ssh. I've found an easier and more secure way to achieve this : Prerequisites : * You have PuTTY (or an ssh client) * ssh server on your local network is reachable from wan In PuTTY settings > Connection > SSH > Tunnels , define the following : Source port : 8080 (or any free port on your computer running PuTTY) Destination : 192.168.1.1:80 (assuming your router ip is 192.168.1.1 and the default web interface running on port 80 ) Click on [Add] Apply changes You can now connect on your router web interface from your computer running PuTTY via the following address : http://localhost:8080/

Hex Edit Windows 7 SAM file to enable Administrator Account

It could happen that your were connected to a Windows Domain and that you've decided to leave this domain. What about if all local users are disabled? You cannot join anew a Windows Domain as you don't own any local user able to connect in order to join the domain. You can still start your computer and see the login screen but you will definitely stay a click away from your desktop... Hopefully, there is a bunch of tools allowing you to enable anew the Administrator account and even reset the password : link1 link2 link3 ... (Simply search "offline windows password change" on Google) But in my case, editing the SAM file on another computer simply didn't work and I didn't want to burn a CD or corrupt my multiboot usbkey. So I've booted on Lubuntu already installed on my usbkey and decided to hex edit the file. Later on, I've found a linux tool called chntpw that could be installed on my live lubuntu distro and could do the trick, but I

Connect to SSH with a Public Key on a Synology Station

Prerequisites : You own a public key and a private key, or you can generate one with puttygen or openssl ipkg and nano installed if you want to use this editor First connect to your nas as root via ssh using your admin password. If you want to connect later on as root, go in the home folder of root If you want to connect as another user, go in the home folder of the other user, and follow the same instructions cd /root/ Go to or create the directory .ssh mkdir .ssh cd .ssh/ Open the file authorized_keys (assuming nano is installed with ipkg, otherwise use cat or vi) : nano authorized_keys Copy your public key inside the file and save it. Open sshd config file : nano /etc/ssh/sshd_config Ensure the two following parameters are enabled and uncommented : RSAAuthentication yes PubkeyAuthentication yes Configure your ssh client to use your private key and enjoy ;)