Monday, July 8, 2013

how to find active ip address (host) list on local network

1. arp-scan --interface=eth0 192.168.0.0/24
2. arp -a
3. nmap -sP 192.168.1.0/24
4. ping the broadcast : $ ping 192.168.182.255 , You will get a response with the IP address of any device on the network capable of responding to pings.

how to add color to terminal in mac

create a .bash_profile file :

$ nano .bash_profile
add these lines  (dark bg) :

export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
or (bright bg) :

export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad

Sunday, July 7, 2013

how to create a zip file with password

zip -e   [zip_file/target]   [source_file]

example :

zip -e test.zip myimage.tga
zip -e movie.zip myfilm.mov