-
实验二
程序1 1 #define _CRT_SECURE_NO_WARNINGS 2 #include <stdio.h> 3 #include <stdlib.h> 4 #include <time.h> 5 #define N 5 6 #define N1 80 7 #define N2 35 8 i -
实验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 { 11 int cnt ; 12 -
高级语言程序设计第一次作业
这个作业属于哪个课程:https://edu.cnblogs.com/campus/fzu/gjyycx 这个作业要求在哪里:https://edu.cnblogs.com/campus/fzu/gjyycx/homework/13558 学号:102500421 姓名:陈浩宇 1.安装c程序的编译 -
实验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; 11 int r -
实验2
实验2的作业 实验任务1 问题一 srand(time(NULL)的作用是根据当前系统时间初始化随机数生成器,让每次程序运行时产生不同的随机数,从而避免重复。 问题二 随机抽取两个专业中的五个学号。 #include <stdio.h> #include <stdlib.h> #include <t -
实验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: 代码: 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 ra -
实验任务2
task-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, ra -
第二次实验作业
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; 11 int random_ -
Exp2
Task 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 -
高级语言程序设计第一次作业
这个作业属于的课程:课程链接 这个作业要求:作业要求 学号:102500408 姓名:阮意舒 一、安装C程序的编译环境 1.从sourceforge下载dev-c++ 2.成功安装devcpp 二、编写并运行书本第2章示例程序 1.书写代码,编译并运行。文件尽量保存在无中文路径下的文件夹中 2.在终 -
实验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_n -
实验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 ran -
实验1
实验任务1: 源代码: 1 #include <iostream> 2 #include <string> 3 #include <vector> 4 #include <algorithm> 5 6 template<typename T> 7 void output(const T &c); 8 -
20232317 2025-2026-1《网络与系统攻防技术》实验一实验报告
1.实验内容 1.1手工修改可执行文件,改变程序执行流程,直接跳转到getShell函数。 1.2利用foo函数的Bof漏洞,构造一个攻击输入字符串,覆盖返回地址,触发getShell函数。 1.3注入一个自己制作的shellcode并运行这段shellcode。 2.实验过程 2.1实践一 首先下 -
20232421 2024-2025-1 《网络与系统攻防技术》实验一实验报告
1.实验目标 本次实践的对象是一个名为pwn1的linux可执行文件。 该程序正常执行流程是:main调用foo函数,foo函数会简单回显任何用户输入的字符串。 该程序同时包含另一个代码片段,getShell,会返回一个可用Shell。正常情况下这个代码是不会被运行的。我们实践的目标就是想办法运行这 -
# 20232429 2025-2026-1 《网络与系统攻防技术》实验一实验报告
1.实验内容 手工修改可执行文件,改变程序执行流程,直接跳转到getShell函数。 利用foo函数的Bof漏洞,构造一个攻击输入字符串,覆盖返回地址,触发getShell函数。 注入一个自己制作的shellcode并运行这段shellcode。 掌握NOP, JNE, JE, JMP, CMP汇编 -
实验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; cnt -
20232422 2025-2026-1 《网络与系统攻防技术》实验一实验报告
实验目的 掌握ELF可执行文件的机器指令修改方法,理解程序执行流控制原理; 理解缓冲区溢出(BOF)漏洞的原理,掌握通过覆盖返回地址改变程序执行流的攻击方法; 学会构造并注入shellcode,理解漏洞利用的完整流程; 熟练使用gdb、wxHexEditor、WinSCP、execstack等工具。 -
oop.shiyan1
实验1 源代码: 1 #include<iostream> 2 #include<string> 3 #include<vector> 4 #include<algorithm> 5 6 //模版函数声明 7 template<typename T> 8 void output(const T& c