2018年2月的全部文章
@kidultff

C语言缓冲区溢出原理与实践

我们都听说过缓冲区漏洞,那么具体原理是怎样的呢?首先我们看这个例子:#include<stdio.h> int main(){ int i=0; int a[]={1,2,3,4,5,6,7,8,9,10}; for(i=0;i<=11;i++){ printf("Hello World!\n",  ...
  • 0
  • 5
@kidultff

PAT-A 真题- 1034. Head of a Gang

原题干:One way that the police finds the head of a gang is to check people's phone calls. If there is a phone call between A and B, we say that A and B is related. The weight of a relation is defined to be the total time len ...
  • 0
  • 0
@kidultff

数据结构-使用广度优先搜索和深度优先搜索遍历图

图的遍历指的是:对图中所有顶点按照一定的顺序进行访问。访问的方法一般分为两种:DFS (深度优先) 和 BFS (广度优先) 。0x00、深度优先搜索(DFS)遍历图的基本思路深度优先,前面在走迷宫的那篇文章已经介绍过,特征是沿着一条路一直向前走。直 ...
  • 0
  • 3
@kidultff

数据结构-图的定义及存储

0x00、基本概念及相关术语什么是图?图就是类似地图的一种东西,类似这种:(博主家乡高清无♂码的交通路线图)从图中可以看出,一张图由顶点(Vertex)、边(Edge),两部分组成。每条边的两端都一定是图的顶点。图可以分为两种:有向图和无向图。像这样 ...
  • 0
  • 6
@kidultff

Linux下将RSA私钥转成PPK格式

PPK为Putty专用的秘钥格式,这里提供一个比较简便的方法可以将私钥文件转成Putty格式。在Windows下,使用图形界面的puttygen就可以转化秘钥,在Linux下需要安装puttygenUbuntu下:apt install putty-toolsCentOS下:yum install&nb ...
  • 0
  • 0