-
20232328 2025-2026-1 《网络与系统攻防技术》实验二实验报告
1. 实验内容 问题回答 (1)例举你能想到的一个后门进入到你系统中的可能方式? 答:攻击者会先对目标系统进行漏洞扫描,查找存在的安全漏洞,如操作系统漏洞、应用程序漏洞等。如果系统存在漏洞,攻击者就可以利用该漏洞,通过网络向目标系统发送恶意代码,在目标系统上执行任意指令。攻击者可以借此在系统中植入后 -
task2
实验一: 问题一:以时间为随机数,确保每次输出的数据都是随机的。 问题二:随机生成两个班里五个人的学号,且并不重复。 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 80 #define -
第二章博客
1.要找到第k小的数,只需要将所有的元素从小到大进行排序,找到排序后第k位置上的数即可。在排序算法中,假设采取归并排序的方式,就可以通过分治思想来达到排序的目的。首先先定义left和right两个指针,分别指向要排序的数的数组的第一个元素的位置和最后一个元素加1的位置。然后定义指针mid,来将整个数 -
高级程序语言设计第一次作业
高级语言程序设计第一次作业 作业课程:2025高级语言程序设计(福州大学) 作业要求: 高级语言程序设计第一次作业 学号:052406103 姓名:叶银珍 作业内容 安装C程序的编译环境——Dev-C++ 安装环境的过程 安装成功 编写并运行书本第2章示例程序——2.1~2.3 2.1代码 #inc -
第一次算法作业
本学期需要遵守的编码规范: 在学习了面向对象编程和数据结构等课程后,我深知养成良好的编码习惯至关重要。为此,我参考了Google、Oracle等公司的风格指南,为自己制定了以下规范,核心目标是提升代码的可读性、可维护性和团队协作效率。 命名规范 - 让名字成为注释类与接口:Java & C++: 均 -
实验2
实验任务1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 80 #define N2 35 int main() { int cnt; int random_major, random_ -
实验2
实验任务1 #include <stdio.h> #include <stdlib.h> #include <time.h>#define N 5 #define N1 80 #define N2 35 int main() { int cnt; int random_major,random_no -
实验2
实验任务1 #include <stdio.h> #include <stdlib.h> #include <time.h> #define N 5 #define N1 80 #define N2 35 int main() { int cnt; int random_major, random_ -
实验2
任务1 1 #include <stdio.h> 2 #include<stdlib.h> 3 #include<time.h> 4 5 #define N 5 6 #define N1 80 7 #define N2 35 8 int main( ){ 9 int cnt; 10 int rand -
20232306 2025-2026-1 《网络与系统攻防技术》实验二实验报告
1.1本周学习内容总结 后门技术,杀毒软件原理,免杀技术。 1.2 问题回答 例举你能想到的一个后门进入到你系统中的可能方式? 在非官方平台下载应用 例举你知道的后门如何启动起来(win及linux)的方式? 答:Windows系统:启动项注入。 Linux系统:初始化脚本修改。 Meterpret -
实验2
任务1: 1 int main() { 2 3 int cnt; 4 int random_major, random_no; 5 srand(time(NULL)); 6 cnt = 0; 7 while(cnt < N) { 8 random_major = rand() % 2; 9 if(r -
实验2
任务1:1.除去后第一次生成随机学号,当再次运行程序则生成与第一次一样的学号。2.作用为在当前程序重新随机生成学号。 任务2:没有影响 语义为重新运行循环中的程序。 任务3: #include <stdio.h> int main() { char color; while(1) { printf( -
实验一
任务1 源代码: 点击查看代码 #include <iostream> #include <string> #include <vector> #include <algorithm> template<typename T> void output(const T &c); void test1( -
实验1 现代C++编程初体验
实验任务1 task1.cpp // 现代C++标准库、算法库体验 // 本例用到以下内容: // 1. 字符串string, 动态数组容器类vector、迭代器 // 2. 算法库:反转元素次序、旋转元素 // 3. 函数模板、const引用作为形参 #include <iostream> #in -
实验2
实验任务1 源代码 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 #define N1 80 7 #define N2 35 8 9 int main(){ 10 int cnt; 1 -
实验2 C语言分支与循环基础应用编程
实验任务1 task1.c 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 5 #define N 5 6 #define N1 80 7 #define N2 35 8 9 int main() { 10 int c -
实验2
任务1 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <time.h> 4 #define N 5 5 #define N1 80 6 #define N2 35 7 int main() { 8 int cnt; 9 int rando -
SY2
TASK1` #include <stdio.h> include <stdlib.h> include <time.h> define N 5 define N1 80 define N2 35 int main() { int cnt; int random_major, random_no; -
实验二
任务一 1.读取时间生成随机学号,删除后生成学号固定。 2.以20256343和20256136为基础生成随机学号。 任务二 1.去除后第一次运行正常,但后续运行时前几次运行的价格保留导致应付款为前几次运行付款之和 2.去除无法运行的情况 任务三 #include <stdio.h> int mai -
第一次算法作业
一、编码规范 1.命名规范 命名需要见名知意,需要全程使用英文单词,杜绝拼音和用简单字母表示的无意义命名。具体要求为:变量采用小写加下划线或小驼峰命名(如 student_age 或 studentAge),函数和类名用大驼峰命名(如 calculateArea 或 UserInfo),函数名尽量体