自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(54)
  • 资源 (2)
  • 收藏
  • 关注

原创 泥瓦匠系列之密评现场测评工具(Excel插件)——(持续更新)

泥瓦匠系列之密密评现场测评工具,对密评过程中日常需重复且无聊操作进行程序化处理。使测评更关注测评本身!仅依赖于Excel操作,无学习成本,无需配置数据库。

2024-05-18 22:30:08 336 1

原创 泥瓦匠系列之密评工具箱——助力商用密码技术能力提升(持续更新)

泥瓦匠系列之密评工具箱,基于Tongsuo 8.4.0(OpenSSL 3.0.3 3)提供的libcrypto.dll实现相关密码算法工具,为密码运算操作和证书验证操作提供可视化的界面,方便快捷地完成流密码算法、分组密码算法、杂凑密码算法、非对称算法、证书管理等操作。

2024-05-18 21:45:30 863 1

原创 【BUUCTF】Crypto_RSA(铜锁/openssl使用系列)

使用铜锁/OpenSSL,密码编码实践。

2024-05-07 23:33:18 516

原创 Ubuntu下安装NS3

ns3让我不得不爱,初次接触ns3,望与同学能够一同学习探讨!此栏目为后期更好的复盘!!!

2022-01-28 10:34:54 2956

原创 【CCF-CSP认证】 202012-1-期末预测之安全指数(c++)

202012-1-期末预测之安全指数代码长度 325B编程语言 C++ 评测结果 正确 得分 100 时间使用 62ms空间使用 2.960MB#include<iostream>#include<stdio.h>using namespace std;void test(){ int num = 0; cin >> num; int sum = 0; for (int i = 0; i < num; i++) {

2021-03-26 17:03:04 187

原创 【PAT-B1031】 查验身份证 (15 分)(c++)

#include<iostream>using namespace std;int W[17] = { 7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2 };char M[17] = { '1', '0' ,'X', '9', '8', '7', '6', '5', '4', '3', '2' };void otos(string id){ cout << id << endl;}void test(){ int num;

2021-03-18 23:39:31 191

原创 【PAT-B1021】 个位数统计 (15 分)(c++)

#include<iostream>#include<string>using namespace std;void test01(){ //由于int类型,装不下那么多位数,在此采用string类型 string num; cin >> num; int arr[10] = { 0 }; for (int i = 0; i < num.length(); i++) { int nu = 0; nu = (int)num[i] - 4

2021-03-18 22:58:18 96

原创 【PAT-B1006】 换个格式输出整数 (15 分)(c++)

#include<iostream>using namespace std;void test(){ int a,b,c; int num; cin >> num; //分别找出百十个位上的数 a = num /100; b = (num%100) /10; c = num % 10; //cout << a << endl << b << endl <<

2021-03-15 23:49:47 47

原创 【PAT-A1058】 A+B in Hogwarts (20 分)(c++)

#include<iostream>#include<stdio.h>using namespace std;void test(){ //输入 int a_g, a_s, a_k, b_g, b_s, b_k; int c_g = 0, c_s = 0, c_k = 0; int sum_g, sum_s, sum_k; scanf("%d.%d.%d %d.%d.%d", &a_g, &a_s, &a_k, &b_g, &amp

2021-03-15 23:33:18 54

原创 【PAT-A1027】 Colors in Mars (20 分)(c++)

【题目分析】 numbers (each between 0 and 168) 最高168 < 13^2 那么: num = a * 13^1 + b * 13^0 -> a、b就是咱们要的! use radix 13 (0-9 and A-C) 将计算好的a、b用 (0-9 and A-C) 代替后输出即可!/*分析: numbers (each between 0 and 168) 最高168 < 13^2 那么: num = a * 13^1 + b

2021-03-14 09:34:19 105 1

原创 【PAT-A1019】 General Palindromic Number (20 分)(c++)

【PAT-A1019】 General Palindromic Number (20 分)【关键点】1、写出进制转换函数,利用除 N 取余法。2、将余数收集到数组中,方便下一步的比较使用。3、进行回文比较,若不等输出且终止程序(只因不等的好找),若等则顺序向下执行。#include<iostream>#include<vector>using namespace std;vector<int> arr;//输出程序void result(vecto

2021-03-10 23:13:25 64

原创 【PAT-B1037】 在霍格沃茨找零钱 (20 分)(c++)

#include<iostream>#include<stdio.h>using namespace std;int c_G, c_S, c_K;//一个做差函数,此函数总是大的减去小的int calcu(int a_G, int a_S, int a_K, int b_G, int b_S, int b_K){ if (b_K >= a_K) { c_K = b_K - a_K; } else { c_K = 29 - a_K + b_K;

2021-03-09 23:53:44 74

原创 【PAT-B1022】 D进制的A+B (20 分)(c++)

【PAT-B1022】 D进制的A+B (20 分)(c++)【出现问题】第三个测试点出现问题: //进制转化核心代码 while (c > 0) { int temp = 0; temp = c % num; cout << c % num << endl; arr.push_back(temp); c = c / num; }在此代码下出现的问题:【分析】在本地编译器上进行实验,选择最特殊的值:a=0,b=0,无结果,由此:结合代

2021-03-09 22:37:37 51

原创 【PAT-A1031】 Hello World for U (20 分)(c++)

【题意】1、两侧面数量要相等。2、下面的数量不小于两侧面的数量3、侧面的数,尽可能的大。4、两侧面的数量与下面的数量的和满足题目给的等式关系。【C++中字符处理】关键点:遍历循环字符串中的所有字符#include<iostream>#include<string>using namespace std;char arr[80] = {};void test(){ string str; int num = 0; int sum = 0; in

2021-03-08 23:33:52 61

原创 【PAT-B1027】 打印沙漏 (20 分)(c++)

#include<iostream>#include<string>using namespace std;void test(){ int num; string flag; int putout = 0; cin >> num; cin >> flag; int res = 0; int i = 1; //找出上三角的行数 for ( i ; res < num; i++) { res = 2 * i *

2021-03-08 00:06:36 99

原创 【DVWA】SQL Injection-medium

SQL注入——中安全级别【SQL注入分类】按照所传递的数据类型可以分为:数字型注入字符型注入【源码分析】<?phpif (isset($_GET['Submit'])) { // Retrieve data $id = $_GET['id']; $id = mysql_real_escape_string($id); $getid = "SELECT first_name, last_name FROM users WHERE user_id

2021-01-30 11:51:29 146 1

原创 【DVWA】SQL Injection-low(sqlmap)

SQL 注入(利用sqlmap)——低安全性【前言】上次使用的手工注入,有一定的代码审计。那么对于这种存在sql注入漏洞的,哪必定可以使用sqlmap来进行sql注入。由于我们的DVWA是要登录上去才可以进行里面相应的一些服务。那么我们就要获取到浏览器中的cookie。【准备工作】登录DVWA,选择SQL Injection,按F12进入调试页面中的网络模块。点击Submit,寻找注入点与所需要的cookie。所需要的信息:cookie与注入点 【使用sqlmap】【爆破所

2021-01-29 19:43:40 171 3

原创 【DVWA】SQL Injection-low

【DVWA】SQL 注入——低安全性【HTNL代码分析】鼠标右击查看网页源代码核心代码<form action="#" method="GET"> <input type="text" name="id"> <input type="submit" name="Submit" value="Submit"></form>action="#" ,将数据提交到当前页面method=“GET” ,使用get方法进行提交na

2021-01-28 17:46:30 85

原创 DVWA-寻找默认登录密码

【问题描述】登录dvwa时,无法使用所谓的默认密码:admin、password。【解决思路】在登录界面中,鼠标右键查看网页源代码:发现前端将输入的数据提交给了login.php去处理了,那么我们就登录后端看看这个php文件。登录后端服务器——owaspbwa,找到dvwa进一步找到login.php:root@owaspbwa:/owaspbwa/dvwa-git#查看文件:root@owaspbwa:/owaspbwa/dvwa-git#cat login.php从

2021-01-28 11:47:21 6035

原创 Kali本地网络配置

Kali 本地网络配置1.1 永久配置IP地址将虚拟机设置中的网络适配器设置为NET模式修改网卡配置文件sudo vim etc/network/interfacesauto loiface lo inet loopbackauto eth0iface eth0 inet static #配置eth0使用静态地址address 192.168.188.53 #配置eth0的固定IP地址netmask 255.255.255.0 #配置子网掩码getway 192.1

2021-01-22 17:41:18 226

原创 Kali 配置apt国内源

Kali 配置apt为阿里源阿里云官方社区https://developer.aliyun.com/mirror/kali配置方法修改 /etc/apt/sources.list,将相关url改成阿里云的源。#deb https://mirrors.aliyun.com/kali kali-rolling main non-free contrib#deb-src https://mirrors.aliyun.com/kali kali-rolling main non-free contri

2021-01-22 11:08:37 1324 1

原创 【PAT-B1036】 跟奥巴马一起编程 (15分)(c++)

ceil() 向上取整floor() 向下取整round()四舍五入取整#include<iostream>#include<math.h>using namespace std;void test(){ double n; cin >> n; char x; cin >> x; double y; y = n / 2; y = round(y); //cout << round(y) &.

2021-01-11 15:20:45 96

原创 【PAT-A1036】 Boys vs Girls (25分)(c++)

#include<iostream>using namespace std;struct Person{ string name; string sex; string id; int score;}Temp,Max,Min;void init(){ Min.score = 200; Max.score = 0;}//男生成绩最低bool mGrade(Person temp,Person min){ //当前的分数比最低的还要小 if (temp.s

2021-01-11 14:57:51 228

原创 【PAT-A1006】 Sign In and Sign Out (25分)(c++)

这个题的就是让找最早到的人与最晚离开的人。我使用的核心实现方法就是前两天做的一道题目——PAT-B1028】人口普查 (20分)(c++)#include <iostream>#include <stdio.h>using namespace std;struct INandOUT{ string name; int in_hh, in_mm, in_ss; int out_hh, out_mm, out_ss;}temp, first, last;//初

2021-01-10 21:38:43 57

原创 【PAT-A1011】 World Cup Betting (20分)(c++)

1011 World Cup Betting (20分)不涉及算法,顺着往下写就可以。#include<iostream>#include<stdio.h>using namespace std;#include<vector>//找到三个数最大的那个数double max_num(double a, double b, double c){ double max = 0; if (a >= max) { max = a; } if (

2021-01-04 22:37:08 50

原创 【PAT-B1032】 挖掘机技术哪家强 (20分)(c++)

1032 挖掘机技术哪家强 (20分)利用数组下表去作为每个学校的编号#include<iostream>using namespace std;void test(){ //创建一个数组 int arr[1000000] = { 0 }; int n; //找一个编号最大的 int max_num = 0; int max_ = 0; cin >> n; for (int i = 0; i < n; i++) { int temp_x,

2021-01-03 23:34:08 99

原创 【PAT-B1028】人口普查 (20分)(c++)

【PAT-1028】人口普查 (20分)(c++)有一说一,这道题的思路是借鉴胡凡大神的,这两个比较函数(lessE()、MoreE())写的太巧妙了。#include<iostream>#include<stdio.h>using namespace std;struct Person { string name; int yy, mm, dd;}oldest,youngest,lefter,righter,temp;//如果a的日期小于等于b则返回tru

2021-01-03 23:14:26 95

原创 【CCF】201912-1-报数(c++)

【CCF】201912-1-报数(c++)代码长度 1.991KB编程语言 C++评测结果 正确得分 100时间使用 31ms空间使用 2.839MB 代码写的有点啰嗦,,,但是挺好理解,不过题目也挺好理解的。#include<iostream>using namespace std;#include<string>#include<sstream>void test(){ int n; cin >> n;

2020-12-04 18:22:43 100

原创 【CCF】202006-2-稀疏向量(c++)

【CCF】202006-2-稀疏向量(c++)既要考虑时间复杂度又要考虑空间复杂度,虽然能轻松拿到30、60分,但想要拿100还的确要下点功夫。注意的点:1、测试点7,8,9,10数据规模太大,不可使用下标去表示向量位置。就算把数组开到堆区还是不够去表示的。这也有失稀疏矩阵的原意。 ——空间不够。2、不可使用两层for循环去遍历。——时间不够。代码长度 624B编程语言 C++ 评测结果 正确得分 100时间使用 1.468s空间使用 18.73MB 下面的

2020-12-02 20:43:11 175

原创 【CCF】202006-1-线性分类器(c++)

【CCF】202006-1-线性分类器(c++)代码长度 1.968KB编程语言 C++评测结果 正确得分 100时间使用 15ms空间使用 2.906MB #include<iostream>using namespace std;#include<vector>#include<string>struct Lsort { int m_x; int m_y;}A[100000], B[100000];void

2020-11-30 22:32:21 104

原创 【PAT-B1002】 写出这个数 (20分)(c++)

【PAT-B1002】 写出这个数 (20分)(c++)#include<iostream>#include<string>using namespace std;void test01(){ string s; int sum = 0; cin >> s; int len = s.length(); for (int i = 0; i < len; i++) { string temp; temp = s[i]; int te

2020-11-30 10:23:13 82

原创 输入一行包含空格的字符串(c++)

使用 getline(cin,str)#include<iostream>#include<string>using namespace std;int main(){ string n; getline(cin, n); cout << n << endl; cout << n[0] << endl; return 0;}

2020-11-29 23:22:06 683

原创 【PAT-B1004】 成绩排名 (20分)(c++)

【PAT-B1004】 成绩排名 (20分)(c++)#include<iostream>using namespace std;struct Person { string m_Name; string m_id; int m_soc;}stu[1000],res[1000];void test(){ int m = 0; cin >> m; for (int i = 0; i < m; i++) { string name; string

2020-11-28 16:48:18 65

原创 【PAT-B1041】 考试座位号 (15分)(c++)

【PAT-B1041】 考试座位号 (15分)(c++)#include<iostream>using namespace std;struct Poly { long long num1; int num2; int num3;}poly[1000];void test(){ vector<int> res; int n = 0; cin >> n; for (int i = 0; i < n; i++) { // cout

2020-11-28 16:18:26 94

原创 【PAT-A1002】 A+B for Polynomials (25分)(c++)

【PAT-A1002】 A+B for Polynomials (25分)(c++)注:输出格式要保留一位小数!!!#include<iostream>using namespace std;#include<algorithm>#include <iomanip>void test(){ int exp = 0; double fac = 0; double A[2001] = { 0 }; double B[2001] = { 0 }; do

2020-11-26 10:49:36 52

原创 【PAT-B1010】 一元多项式求导 (25分)(c++)

PAT-1010 一元多项式求导 (25分)注:如果求导之后没有任何非零相,需要输出0 0!#include<iostream>#include<vector>using namespace std;void printarr(const vector<int> a){ for (vector<int>::const_iterator it = a.begin(); it != a.end(); it++) { cout <<

2020-11-23 21:02:55 114

原创 【CCF】202009-2-风险人群筛查(c++)

【CCF】202009-2-风险人群筛查(c++)代码长度 1.173KB编程语言 C++评测结果 正确得分 100时间使用 46ms空间使用 2.496MB 其实int类型就可以。#include<iostream>using namespace std;void test(){ //cout << "test..." << endl; //人数 int n = 0; cin >> n; //5

2020-11-23 17:44:54 240

原创 【CCF】202009-1-称检测点查询(c++)

【CCF】202009-1-称检测点查询(c++)代码长度 872B编程语言 C++ 评测结果 正确得分 100时间使用 0ms空间使用 2.589MB#include<iostream>using namespace std;#include<algorithm>//找前三小-测试代码void third(){ int arr[1000]; int res[1000]; int n = 0; cin >> n; for

2020-11-22 22:57:44 469

原创 【PAT-A1065】 A+B and C (64bit)(c++)

1065 A+B and C (64bit)注:long long:所占内存大小:8byte=64bit;所能表示范围:-9223372036854775808~9223372036854775807;(即-2^63~2^63-1)unsigned long: 所占内存大小:8byte=64bit;所能表示范围:0~1844674407370955161;(即0~2^64-1)所以选择:long double#include<iostream>using nam

2020-11-22 11:42:35 66

原创 【PAT-A1046】 Shortest Distance (20分)(c++)

PAT-A1046 Shortest Distance (20分)注:没有经过预处理dis数组和sum会很容易超时。在极端情况下需要遍历这个数组。#include<iostream>#include<algorithm> using namespace std;int main(){ int n = 0; int sum = 0; int num_arr[100005] ,dis[100005]; cin >> n; //初始数据 for (in

2020-11-22 11:13:37 44

《算法设计与分析》实验报告:实验二(线性选择问题)

在快速排序算法基础上,进一步完成线性时间选择算法,并且用不同数据量进行实验对比分析,要求分析算法的时间复杂性并且形成分析报告

2020-11-17

《算法设计与分析》实验报告:实验一(分治策略)

必做:n 用分治思想设计实现二分搜索、合并排序,并且用不同数据量进行实验对比分析。 选做:阶乘(递归与分治)。

2020-11-17

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除