NETWORK MANGEMENT


ifconfig
Show the ip address eth0


iwconfig

show the ip address of wireless connection


ip addr show
Display all network interfaces and ip address
(a iproute2 command,powerful than ifconfig).


ip address add 192.168.0.1 dev eth0
Set ip address


ethtool eth0
Linux tool to show ethernet status


mii-tool eth0
Linux tool to show ethernet status


ping host
Send echo request to test connection


whois domain
Get who is information for domain


dig domain
Get DNS information for domain


dig -x host
Reverse lookup host


host haktuts.com
Lookup DNS ip address for the name


hostname -i
Lookup local ip address


wget file
Download file


wget -c file

Continue stopped download


wget -r url

recursively download files from url


netstat -tupl
Listing all active listening ports


hostname
Show system host name


SHARE FILE FROM WINDOWS TO LINUX.

1.Share a folder in Windows PC with permission set to everyone

2.then goto terminal and type smbclient //PC NAME/Share folder name -U username and then enter password when prompted.

e.g. smbclient //HAKTUTS/Ethicalhacking -U hak


SSH-Secure Shell

ssh user@host
Connect to host as user

e.g.: ssh admin@haktuts.com

ssh -p port user@host
Connect using port p

e.g. ssh -22 admin@haktuts.com

ssh -D port user@host
Connect and use bind port

FTP-File Transfer Protocol

ftp

Type ftp in terminal then

ftp> open ftp.hak.com

The above command will open ftp session and then type your ftp username & password.

username:ftp username

password:ftp pasword


© 2014 HaKTuts. All rights reserved.