To convert a Linux text file to a DOS text file do:
todos -b file.txtThe above command creates a backup of the original file, file.txt.bak, in addition to
converting file.txt to the DOS text file format.
todos -b file.txttcpdump -D
tcpdump -i eth0
tcpdump -w capture.pcap -i eth0
tcpdump -r capture.cap
tcpdump -c 100 -i eth0
tcpdump -n -i eth0
tcpdump -n dst host 192.168.1.1
tcpdump -n src host 192.168.1.1
tcpdump -n host 192.168.1.1
tcpdump -n net 192.168.1.0/24
tcpdump -n dst port 23
tcpdump -n dst portrange 1-1023
tcpdump -n tcp dst portrange 1-1023
tcpdump -n udp dst portrange 1-1023
tcpdump -n "dst host 192.168.1.1 and dst port 23"
tcpdump -n "dst host 192.168.1.1 and (dst port 80 or dst port 443)"
tcpdump -v icmp
tcpdump -v arp
tcpdump -v "icmp or arp"
tcpdump -n "broadcast or multicast"
tcpdump -s 500
tcpdump -s 0
sudo fdisk -l
sudo apt-get install ntfs-3g
sudo mkdir /media/usbhdd
sudo chown pi:pi /media/usbhdd
sudo mount -t vfat -o uid=pi,gid=pi /dev/sda1 /media/usbhdd
sudo umount /media/usbhdd
sudo leafpad /etc/fstab &
proc /proc proc defaults 0 0 /dev/mmcblk0p1 /boot vfat defaults 0 2 /dev/mmcblk0p2 / ext4 defaults,noatime 0 1
/dev/sda1 /media/usbhdd vfat uid=pi,gid=pi 0 0
sudo reboot
curl -b "name=daniel" http://www.site.com
curl -b some-cookie-file http://www.site.com
curl http://www.site.com --head
curl -L http://www.redirect.com
curl --header "Host: www.site.com" http://127.0.0.1/
curl -A "Mozilla/4.0" http://www.site.com
curl -d "param1=value1¶m2=value2" http://hostname/resource
GET request with XML:
curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET http://hostname/resource
curl --form "fileupload=@filename.txt" http://hostname/resource
Log in to a site and dump received headers to a file called headers:
curl -d "username=admin&password=admin&submit=Login" --dump-header headers http://site.com/Login
Use proxy: