随笔分类 - network
摘要:During the process of learning websockets, wanted to try out the handshake mechanism using a simple server cooked using netcat/bash script. The script just reads the request message, parses the key, forms the SHA1/base64 response key and sends the response.Tested it with chromium. Attached are the c
阅读全文
摘要:功能说明:功能强大的网络工具语 法:nc[-hlnruz][-g<网关...>][-G<指向器数目>][-i<延迟秒数>][-o<输出文件>][-p<通信端口>][-s<来源位址>][-v...][-w<超时秒数>][主机名称][通信端口...]参 数:-g<网关>设置路由器跃程通信网关,最丢哦可设置8个。-G<指向器数目>设置来源路由指向器,其数值为4的倍数。-h在线帮助。-i<延迟秒数>设置时间间隔,以便传送信息及扫描通信端口。-l使用监听模式,管控传入的资料。-n直接使
阅读全文
摘要:过滤表达式学习man pcap-filtertcpdump抓包,wireshark分析tcpdump -i wlan0 -s 0 'icmp' -w tshark.pcap-s 0 : 抓取数据包时默认抓取长度为68字节。加上-S 0 后可以抓到完整的数据包tcpdump -i eth0 -nn -X ‘port 53′ -c 1-nn选项:意思是说当tcpdump遇到协议号或端口号时,不要将这些号码转换成对应的协议名称或端口名称。比如,众所周知21端口是FTP端口,我们希望显示21,而非tcpdump自作聪明的将它显示成FTP。-X选项:告诉tcpdump命令,需要把协议头和
阅读全文