TCP的三次握手与四次挥手理解及面试题
摘要:TCP报文头部解析 序列号seq:占4个字节,用来标记数据段的顺序,TCP把连接中发送的所有数据字节都编上一个序号,第一个字节的编号由本地随机产生;给字节编上序号后,就给每一个报文段指派一个序号;序列号seq就是这个报文段中的第一个字节的数据编号。 确认号ack:占4个字节,期待收到对方下一个报文段
阅读全文
posted @
2021-03-14 22:58
ღ惟吾德馨ღ
阅读(67)
推荐(0)
Linux下的ARP攻击-断网
摘要:1、软件工具安装 1. nmap --网络嗅探工具 2. dsniff ( arpspoof ) --ARP嗅探工具 3. net-tools ( ifconfig ) --网络工具 sudo apt-get install dsniff sudo apt-get install net-tools
阅读全文
posted @
2020-11-11 18:13
ღ惟吾德馨ღ
阅读(293)
推荐(0)
ssh-的搭建和使用
摘要:ssh的作用 : 可实现远程客户端登录服务器并对服务器的文件进行操作 ssh服务器的安装 farsight@ubuntu:~$ sudo apt-get install openssh-server [sudo] password for farsight: 正在读取软件包列表... 完成 正在分析
阅读全文
posted @
2020-11-09 16:51
ღ惟吾德馨ღ
阅读(118)
推荐(0)
debian系统搭建telnet服务器以及telnet远程登陆--加油
摘要:1.安装软件 sudo apt-get install telnet* 2.创建telnet文件 vim /etc/xinetd.d/telnet telnet内容 1 service telnet 2 { 3 disable = no 4 flags = REUSE 5 socket_type =
阅读全文
posted @
2020-11-05 19:08
ღ惟吾德馨ღ
阅读(938)
推荐(0)
网络编程-UDP的服务器和客户端----keep on going never give up
摘要:1 //**************************************服务器********************************************** 2 #include <stdio.h> 3 #include <stdlib.h> 4 #include <str
阅读全文
posted @
2020-09-23 15:50
ღ惟吾德馨ღ
阅读(162)
推荐(0)
linux-TCP多线程的并发服务器- 以言责人甚易,以义持己实难!!!
摘要:1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #include <time.h> 5 #include <sys/types.h> /* See NOTES */ 6 #include <sys/socket.h
阅读全文
posted @
2020-09-22 10:58
ღ惟吾德馨ღ
阅读(202)
推荐(0)
网络编程-谢谢自己,无所畏惧,从不放弃!!!
摘要:Internet历史: ①ARPAnet(阿帕网):采用网络控制协议(Network Control Protocol, NCP); 缺点 ? ②TCP协议:kahn和vinton cerf提出, 缺点 ? 从此产生TCP/IP协议, 网络体系架构: ①OSI模型 7层: 特点:模型本身通用,理想化
阅读全文
posted @
2020-09-21 14:27
ღ惟吾德馨ღ
阅读(136)
推荐(0)