常用网络命令

@

route -n

列出路由表

traceroute

实现原理:发udp包,TTL从1开始,每次发包TTL加1,直到N或目标主机,发包后根据收到的icmp超时报文计算时间差,当收到cimp端口不可达报文时,即到达目标主机。
https://zhuanlan.zhihu.com/p/36811672
RFC792 https://tools.ietf.org/html/rfc792
https://learningnetwork.cisco.com/thread/87662

nslookup

域名查询 nslookup url / ip

netstat

Print network connections, routing tables, interface statistics, masquerade connections, and multicast memberships
扫描工具

nmap

端口扫描工具,参考https://blog.csdn.net/qq_33386311/article/details/89453546

netcat或nc

交互通信 net -l port2,A打开某端口提供server,netcat ip_A port2 B作为client与A通信
端口扫描 netcat -v ip port
传文件 netcat -l port ==>== file A作为server,接收文件 netcat -n server_ip port ==<== file B作为client 发送 文件
参考:https://blog.csdn.net/analogous_love/article/details/53037477

tcpdump

截获和分析数据包的工具,支持针对网络层、协议、主机、网络或端口的过滤,并提供and、or、not等逻辑语句来帮助你去掉无用的信息。
如 tcpdump host ip/URL
用例参考

telnet

远程登录,基于TCP协议

转载于:https://www.cnblogs.com/ChengzhiYang/p/11360010.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值