Saturday, February 9, 2013

How to change your hostname



backtrack, backtrack 5, linux, hacking, tutorial, hacking tutorial, ethical hacking, pentest, penetration testing, pc, wpa, wpa2, metasploit, nmap, browser exploit, information gathering, footprinting


After we have seen how to customize your terminal background, here is another tutorial for customizing your username or hostname. In this example i' am going to change the Backtrack default hostname to my cyber name.



To display your current hostname type this command:

root@bt:~# hostname 



backtrack, backtrack 5, linux, hacking, tutorial, hacking tutorial, ethical hacking, pentest, penetration testing, pc, wpa, wpa2, metasploit, nmap, browser exploit, information gathering, footprinting





Now, to change the default hostname, type the following:


root@bt:~# shinobi





backtrack, backtrack 5, linux, hacking, tutorial, hacking tutorial, ethical hacking, pentest, penetration testing, pc, wpa, wpa2, metasploit, nmap, browser exploit, information gathering, footprinting






Let's see if it worked, so we need to close the terminal & open a new one:




backtrack, backtrack 5, linux, hacking, tutorial, hacking tutorial, ethical hacking, pentest, penetration testing, pc, wpa, wpa2, metasploit, nmap, browser exploit, information gathering, footprinting




However, if you reboot the system, this change will be lost. To fix that and make your new hostname permanent, we need to edit the "hostname" file in "etc":


root@bt:~# pico /etc/hostname



backtrack, backtrack 5, linux, hacking, tutorial, hacking tutorial, ethical hacking, pentest, penetration testing, pc, wpa, wpa2, metasploit, nmap, browser exploit, information gathering, footprinting







backtrack, backtrack 5, linux, hacking, tutorial, hacking tutorial, ethical hacking, pentest, penetration testing, pc, wpa, wpa2, metasploit, nmap, browser exploit, information gathering, footprinting




All what is left now is to change the default hostname to the one you have just chosen, then press Ctrl+O and press "enter"to save the changes, then Ctrl+x to exit.


Hope you like it :-)




0 commentaires: