摘要: #include<stdio.h> #include<stdlib.h> #include<iostream> using namespace std; #define STACK_SIZE 100 #define STACKINCREMENT 10 template<class T> class 阅读全文
posted @ 2020-10-24 22:24 歌月。 阅读(314) 评论(0) 推荐(0) 编辑
摘要: *形式的swap函数: 1 #include<stdio.h> 2 void swap(int *d1, int *d2) { 3 int t; 4 t = *d1; 5 *d1 = *d2; 6 *d2 = t; 7 printf("After swap\na=%d\nb=%d\n", *d1, 阅读全文
posted @ 2020-04-27 19:29 歌月。 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 配置编译环境,用命令行编译和链接代码: Step1:配置环境变量,或者直接打开VS2019 x86 Native Tools Command Prompt 新建一个cpp文件夹,里面放入事先写好的测试代码a.cpp b.cpp main.cpp Step2:在命令行进入文件夹cd cpp Setp3 阅读全文
posted @ 2020-04-27 19:23 歌月。 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 1.HTML:超文本标记语言 基本结构: 常用编辑器:sublime notepad++ code 常用标签: <html></html> 创建一个HTML文档 <head></head> 设置文档标题和其它在网页中不显示的信息 <title></title> 设置文档的标题 <h1></h1> 最 阅读全文
posted @ 2019-09-24 09:37 歌月。 阅读(204) 评论(0) 推荐(0) 编辑
摘要: HTTP协议:超文本传输协议(HyperText Transfer Protocol) (1) 特点: 简单快速,无连接(一次请求就断开),无状态(没有记忆功能,不会记录任何信息) (2) 请求方式:get post head等8种请求方式 (3) 模式:B/S、C/S(websocket进行通信) 阅读全文
posted @ 2019-09-24 09:11 歌月。 阅读(1922) 评论(0) 推荐(0) 编辑
摘要: 服务器的搭建:(80端口) Step 1:在服务器管理器中,添加角色里勾选“WEB服务器(IIS)”,下一步,在角色服务中,主要选择“应用程序开发”(ASP相关),下一步安装; Step 2:在“管理工具”中找到“Internet 信息服务(IIS)管理器”,找到“网站”。 可以在本地查看本地是否启 阅读全文
posted @ 2019-09-18 09:01 歌月。 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1. 提权,安装需要在管理员权限运行。 2. 用APT的方式安装apache 3. 检查apache状态(默认开启) systemctl status apache2 4. 输入ubuntu的IP的地址到计算机的浏览器获得ubuntu的info信息 5. 安装mysql:apt install my 阅读全文
posted @ 2019-09-18 08:49 歌月。 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 1.kali 安装软件 Apt search open-vm-tools-desktop Apt-get install open-vm-tools-desktop 2.Linux 下载安装的软件 方法:Yum源/rpm/源码安装 3.YUM(解决RPM的依赖关系):yum通过RPM的包头数据,根据 阅读全文
posted @ 2019-09-18 08:37 歌月。 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 1.更改权限的命令 Chmod [who][+|-|=] 文件名 Who: u—>所有者 g—>所属组 o—>其他人 a—>所有人 + 添加权限 - 取消权限 =赋值某些权限 r--r--r-- test.php Chmod +320 test.php Rwxrwxrwx evil.php Chmo 阅读全文
posted @ 2019-09-16 10:37 歌月。 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1. Linux下的用户管理 用户信息保存/etc/passwd ,一般用户都有读的权限 真正的用户:修改密码,可以登录 伪用户:应用程序在运行时会以某种权限来运行,并使用程序名来表示该程序,并存在/etc/passwd文件中,伪用户不可以直接登录 pentest(用户名):x(密码):1000(U 阅读全文
posted @ 2019-09-16 10:36 歌月。 阅读(174) 评论(0) 推荐(0) 编辑