<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[ywd171的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/ywd171</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; ywd171]]></copyright><item><title><![CDATA[__builtin_expect分支预测优化]]></title><link>https://blog.csdn.net/ywd171/article/details/141826867</link><guid>https://blog.csdn.net/ywd171/article/details/141826867</guid><author>ywd171</author><pubDate>Mon, 02 Sep 2024 18:41:53 +0800</pubDate><description><![CDATA[为一个整型表达式, 例如: (ptr!必须是一个编译期常量, 不能使用变量。：返回值等于 第一个参数。可以看到汇编编排有区别。]]></description><category></category></item><item><title><![CDATA[TCP三次握手中的全连接队列与半连接队列]]></title><link>https://blog.csdn.net/ywd171/article/details/137563880</link><guid>https://blog.csdn.net/ywd171/article/details/137563880</guid><author>ywd171</author><pubDate>Tue, 09 Apr 2024 23:32:45 +0800</pubDate><description><![CDATA[半连接队列也称为SYN队列，在三次握手中存储了接收了SYN报文的连接数据结构是哈希表半连接队列里的连接都是不完整的，不同连接中的客户端发来ACK报文的时间是不一样的；因此，如果收到了一个客户端发来的ACK报文，如果半连接队列是队列，就需要O(n)的时间复杂度遍历；但是如果是哈希表，就仅需要O(1)的时间复杂度来遍历全连接队列也称为accept队列，在三次握手中存储了接收ACK报文，但是代码没有使用accept函数提取的连接数据结构是链表。]]></description><category></category></item><item><title><![CDATA[std::forward介绍]]></title><link>https://blog.csdn.net/ywd171/article/details/130549227</link><guid>https://blog.csdn.net/ywd171/article/details/130549227</guid><author>ywd171</author><pubDate>Sun, 07 May 2023 22:31:11 +0800</pubDate><description><![CDATA[是 C++11 中引入的一个函数模板，它用于在中将参数以的方式转发给其他函数。在 C++ 中，当我们将一个参数传递给函数时，其实是将这个参数的值拷贝一份传递给函数。如果该参数是一个左值引用类型，则会将其转换为右值引用，但仍然只是拷贝了一份数据。当我们在实现一个泛型函数或类时，需要将接受到的参数再次传递给其他函数。如果我们直接将参数传递给该函数，那么参数的值会被拷贝两次，这样会导致性能上的损失。]]></description><category></category></item><item><title><![CDATA[客户端与服务器分别TCP连接的最大数]]></title><link>https://blog.csdn.net/ywd171/article/details/130376668</link><guid>https://blog.csdn.net/ywd171/article/details/130376668</guid><author>ywd171</author><pubDate>Wed, 26 Apr 2023 00:15:59 +0800</pubDate><description><![CDATA[此时，四元组中的目标IP和目标端口在当前进程下被固定了，会变化的就剩下源IP和源端口，即客户端IP和客户端端口。客户端的IP可以是符合IPV4标准的IP，因此可以连接的数量是符合条件的IP * 总端口数(65536)，即。客户端需要连接服务器时，在客户端只有一个IP的情况下，四元组的源IP、目标IP和目标端口被固定，能变化的就剩下源端口。实际上，这些数字是理想的情况下，实际上是不能达到的，除非硬件水平得到巨大突破。一个唯一确定的连接要通过四元组，即源IP、源端口、目标IP和目标端口。]]></description><category></category></item><item><title><![CDATA[装配模式介绍]]></title><link>https://blog.csdn.net/ywd171/article/details/130096619</link><guid>https://blog.csdn.net/ywd171/article/details/130096619</guid><author>ywd171</author><pubDate>Wed, 12 Apr 2023 00:05:57 +0800</pubDate><description><![CDATA[3、工具类有一个函数，该函数使用static_cast将this指针指向的内存按照使用类的形式表达，要注意，不使用dynamic_cast是因为。4、使用类需要按照自己的需求，来判断要不要实现工具类要求实现的函数，如果实现了指定的函数，那么就能调用，没有实现就调用工具类提供的函数。1、工具类就是一个配件，如果使用的类需要装配该工具类，就通过继承的方式继承填入了本类的工具类，实现虚函数的功能。2、工具类作为模板类，如果不传入使用类，无法实例化，因此必须传入使用类。2、使用装配模式能节省很多虚函数表的空间。]]></description><category></category></item><item><title><![CDATA[常见排序算法代码]]></title><link>https://blog.csdn.net/ywd171/article/details/129311703</link><guid>https://blog.csdn.net/ywd171/article/details/129311703</guid><author>ywd171</author><pubDate>Thu, 09 Mar 2023 11:02:23 +0800</pubDate><description><![CDATA[选择排序、冒泡排序、插入排序、堆排序、希尔排序、归并排序、快速排序、桶排序、计数排序、基数排序的代码实现]]></description><category></category></item><item><title><![CDATA[渗透学习笔记]]></title><link>https://blog.csdn.net/ywd171/article/details/127572425</link><guid>https://blog.csdn.net/ywd171/article/details/127572425</guid><author>ywd171</author><pubDate>Fri, 28 Oct 2022 15:20:49 +0800</pubDate><description><![CDATA[信息收集、渗透攻击、权限提升、内网渗透]]></description><category></category></item><item><title><![CDATA[城市网络建设方案设计]]></title><link>https://blog.csdn.net/ywd171/article/details/124681390</link><guid>https://blog.csdn.net/ywd171/article/details/124681390</guid><author>ywd171</author><pubDate>Tue, 10 May 2022 09:53:53 +0800</pubDate><description><![CDATA[需求分析
城市网络建设方案生成程序介绍
在当今时代，随着网络技术的发展，网络已经融入到人们生活的方方面面，给人们的生活带来了极大的便利，城市间的网络架设也成为了基础设施建设中的重要一环。在城市网络架设过程中，考虑到不同城市间的地理、距离等因素，存为多种成本不同的建设方案，为了方便网络建设人员在多种网络建设方案中快速找出最经济的架设方案，本网络建设方案生成程序应运而生。本程序要求系统界面友好、使用简单、能够处理网络的相关信息，生成最优架设方案、同时使得用户能方便的进行相关数据的增加、删除以及保存到文件的操作。]]></description><category></category></item><item><title><![CDATA[RSA加密与解密]]></title><link>https://blog.csdn.net/ywd171/article/details/124677897</link><guid>https://blog.csdn.net/ywd171/article/details/124677897</guid><author>ywd171</author><pubDate>Mon, 09 May 2022 23:13:24 +0800</pubDate><description><![CDATA[实验目的
熟悉RSA加解密算法的运行过程，加深对素数筛选和使用的理解。

二、 实验步骤

随机生成大素数p和q



计算公开的模数r=pq



计算欧拉函数（r）=（p-1）（q-1）



随机选取整数e，满足gcd（e,（r））=1，若不满足则再次生成





计算d，满足d*e=1mod（r）



将明文x（0&lt;x&lt;r-1）按模为r自乘e次幂产生密文y（a² mod n=a mod n * a mod n）



将密文y按模为r自乘d次幂得到明文x



三、 算法实现

im]]></description><category></category></item><item><title><![CDATA[ELGAmal加密与解密]]></title><link>https://blog.csdn.net/ywd171/article/details/124677868</link><guid>https://blog.csdn.net/ywd171/article/details/124677868</guid><author>ywd171</author><pubDate>Mon, 09 May 2022 23:12:16 +0800</pubDate><description><![CDATA[实验目的
熟悉EIGamal加解密算法的构造和运行过程，加深离散对数问题的理解。

二、 实验原理

读取消息M

使用serializeMsg函数转化消息M

serializeMsg函数的运行结果是将明文每个数字加上256后拼接在一起



素数p和随机数g,x为随机选择数



y使用公式y=g ^ x mod p来计算



k为随机大整数，使用getPrime函数生成





a为密文二元组的c1，使用公式y=g ^ k mod p来计算



b为密文二元组的c1，使用公式b=mb * y ^]]></description><category></category></item><item><title><![CDATA[TPM程序设计基础]]></title><link>https://blog.csdn.net/ywd171/article/details/124676384</link><guid>https://blog.csdn.net/ywd171/article/details/124676384</guid><author>ywd171</author><pubDate>Mon, 09 May 2022 21:53:33 +0800</pubDate><description><![CDATA[samples中hash函数代码：

			 public List&lt;byte[]&gt; hash(String plaintext)

			 {

			 TPM_ALG_ID hashAlgs[] = new TPM_ALG_ID[] { TPM_ALG_ID.SHA1, TPM_ALG_ID.SHA256, TPM_ALG_ID.SHA384 };

			

			 // first demonstrate non-sequence hash...]]></description><category></category></item><item><title><![CDATA[文件钩子实现]]></title><link>https://blog.csdn.net/ywd171/article/details/124676361</link><guid>https://blog.csdn.net/ywd171/article/details/124676361</guid><author>ywd171</author><pubDate>Mon, 09 May 2022 21:52:43 +0800</pubDate><description><![CDATA[WatchData.h：

			/*******************************************************************************

			* JNotify - Allow java applications to register to File system events.

			*

			* Copyright (C) 2005 - Content Objects

			*

			* This library ...]]></description><category></category></item><item><title><![CDATA[键盘钩子实现]]></title><link>https://blog.csdn.net/ywd171/article/details/124676327</link><guid>https://blog.csdn.net/ywd171/article/details/124676327</guid><author>ywd171</author><pubDate>Mon, 09 May 2022 21:51:04 +0800</pubDate><description><![CDATA[该程序先通过nhook生成dll与lib文件后，使用Hacker.cpp来安装并使用钩子。

			nhook.h：

			#include&lt;Windows.h&gt;

			HHOOK g_hook;

			//安装钩子

			extern "C" __declspec(dllexport) BOOL InstallHook();

			//卸载钩子

			extern "C" __declspec(dllexport) BOOL UninstallHook();

			LRE...]]></description><category></category></item><item><title><![CDATA[WEB服务器配置]]></title><link>https://blog.csdn.net/ywd171/article/details/124676302</link><guid>https://blog.csdn.net/ywd171/article/details/124676302</guid><author>ywd171</author><pubDate>Mon, 09 May 2022 21:49:52 +0800</pubDate><description><![CDATA[安装IIS：

			

			打开IIS：

			

			配置网站：

			

			源目录下的网站：

			

			打开网站：

			
			
		]]></description><category></category></item><item><title><![CDATA[渗透Desktop与Server(使用sqlmap自动注入)]]></title><link>https://blog.csdn.net/ywd171/article/details/124676272</link><guid>https://blog.csdn.net/ywd171/article/details/124676272</guid><author>ywd171</author><pubDate>Mon, 09 May 2022 21:48:27 +0800</pubDate><description><![CDATA[准备工作：

			根据README.txt文件提示修改子网地址：

			
			
		
			使用nmap扫描192.168.8.0/24网段

			

			

			得到一下几个地址：

			192.168.8.1，192.168.8.2，192.168.8.3，192.168.8.4，192.168.8.60

			攻击Desktop:

			猜测192.168.8.60为WIN7地址

			192.168.8.60开放了445端口，可以使用永恒之蓝渗透

			开启metasp...]]></description><category></category></item><item><title><![CDATA[渗透Desktop与Server(sql手动注入)]]></title><link>https://blog.csdn.net/ywd171/article/details/124676251</link><guid>https://blog.csdn.net/ywd171/article/details/124676251</guid><author>ywd171</author><pubDate>Mon, 09 May 2022 21:47:34 +0800</pubDate><description><![CDATA[准备工作：

			根据README.txt文件提示修改子网地址：

			
			
		
			使用nmap扫描192.168.8.0/24网段

			

			

			得到一下几个地址：

			192.168.8.1，192.168.8.2，192.168.8.3，192.168.8.4，192.168.8.60

			攻击Desktop:

			猜测192.168.8.60为WIN7地址

			192.168.8.60开放了445端口，可以使用永恒之蓝渗透

			开启metasp...]]></description><category></category></item><item><title><![CDATA[SQL Server数据库及对象的设计]]></title><link>https://blog.csdn.net/ywd171/article/details/124676105</link><guid>https://blog.csdn.net/ywd171/article/details/124676105</guid><author>ywd171</author><pubDate>Mon, 09 May 2022 21:45:03 +0800</pubDate><description><![CDATA[实验问题描述：



某学院有若干专业，每个专业有若干学生；学院每年每学期都开设有若干门课程；每门课程有多个学生选修，每个学生每学期可以同时选修多门课程，每个学生对于同一门课程可以多次选修，但每学期只能选修1次，课程选修成绩以综合成绩记录。请设计某学院简单的教学管理系统的E-R模型，要求给出每个实体、联系的属性。根据以上语义，我们可得了上图1如示的教学管理系统E-R图（属性未画出）。

根据学院提供的学生选课及其他的部分数据，将上图1所示的E-R图中的部分实体和联系转换为关系，得到如下4个关系模式和相应的数]]></description><category></category></item><item><title><![CDATA[多线程设计]]></title><link>https://blog.csdn.net/ywd171/article/details/121526812</link><guid>https://blog.csdn.net/ywd171/article/details/121526812</guid><author>ywd171</author><pubDate>Wed, 24 Nov 2021 22:33:46 +0800</pubDate><description><![CDATA[编写10个线程，第一个线程从1加到10，第二个线程从11加到20…..第十个线程从91加到100，main函数最后再把10个线程的结果相加显示。

public class AddThread extends Thread{
	private int begin;
	private static int sum;
	private int temp = 0;
	public AddThread(int begin) {
		this.begin = begin;
	}
	public AddThread()]]></description><category></category></item><item><title><![CDATA[类的封装性、继承性和多态性设计]]></title><link>https://blog.csdn.net/ywd171/article/details/121526707</link><guid>https://blog.csdn.net/ywd171/article/details/121526707</guid><author>ywd171</author><pubDate>Wed, 24 Nov 2021 22:30:10 +0800</pubDate><description><![CDATA[（1）请按照以下要求设计一个Student类,并进行测试。（程序1）

要求如下：

1）Student类中包含姓名、成绩两个属性。

2）分别给这两个属性定义两个方法，一个方法用于设置值，另一个方法用于获取值。

3）Student类中定义一个无参的构造方法和一个接受两个参数的构造方法，两个参数分别为姓名和成绩属性赋值。

4）在测试类中创建一个Student对象，一个使用无参构造方法，然后调用方法给姓名和成绩赋值，另一个使用有参的构造方法，在构造方法中给姓名和成绩赋值。

（提示：注意成员变量和成员方.]]></description><category></category></item><item><title><![CDATA[Java语言基础训练]]></title><link>https://blog.csdn.net/ywd171/article/details/121526668</link><guid>https://blog.csdn.net/ywd171/article/details/121526668</guid><author>ywd171</author><pubDate>Wed, 24 Nov 2021 22:24:56 +0800</pubDate><description><![CDATA[写一个程序，在main方法里面定义一个数组，输出排序前的数组，将数组中的元素从小到大进行排序，输出排序后的数组。


package ZUOYE;
import java.util.Scanner;
public class A1 {
	 public static void QuickSort(int num[],int n){
		 int i,j,temp;
		 for(i = 0;i &lt; n;i ++){
			 for(j = i + 1;j &lt; n;j ++)
				 if(nu]]></description><category></category></item></channel></rss>