Higher Logic notes on screwing with tech…

Network Commands

Here are some of the network commands I could never bring myself to remember :D


# Analyze and dump some traffic
tshark -n -l -i eth1 host 122.248.133.20

# Who's alive on this subnet?
nmap -v -sP 192.168.16.0/24

# Posting some data with curl
curl -u mark_liu:xx -X POST -d '4142430A02000' http://aa.com

# Lets kill some bad traffic
tcpkill host host12.nixcraft.com
tcpkill ip host 192.168.1.2 and not 192.168.1.111
tcpkill -i eth0 port 21

# Broadcasting some ARP packets
arping -bUA -s 222.211.79.46 idlepig.com

# Ethernet bonding, lets all be friends
bonding mode=0 miimon=100 maxbonds=1
slaves_bond0="eth1 eth2" config_bond0=("10.0.0.1 broadcast 10.0.0.255 netmask 255.255.255.0")

# Saturate my link fast!
lftp -c "mirror -c --use-pget=20 http://xxx.com/stuff/"

# Mount that share!
sudo smbmount "\\\\192.168.1.70\\Network/ -o user=xx pass=bbb

# One banana, two banana, three...
netstat -nepal | grep "10.1.3.3:9000" | grep "ESTABLISHED" | wc

# You will take my key and you will like it
ssh-copy-id -i ~/.ssh/id_rsa.pub root@server1.domain.com

# Time travel... well port forwarding
ssh -L 10000:forbidden_site:80 hop_server

Comments (0) Trackbacks (0)

No comments yet.


Leave a comment

No trackbacks yet.

css.php