上一页 1 2 3 4 5 6 7 ··· 13 下一页
摘要: #include<stdio.h> #include <fcntl.h> #include <unistd.h> #include<stdio.h> void exploit(){ system("/bin/sh"); } void func(){ char str[0x20]; int fd=op 阅读全文
posted @ 2022-01-26 00:06 磐正 阅读(48) 评论(0) 推荐(0)
摘要: gcc -fno-stack-protctor -o test test.c //禁用栈保护 gcc -fstack-protector -o test test.c //启用栈保护 NX No Execute即程序栈不可执行 gcc编译器默认开启NX gcc -z execstack -o tes 阅读全文
posted @ 2022-01-25 12:33 磐正 阅读(41) 评论(0) 推荐(0)
摘要: @property是一个装饰器,它能够使得类把一个方法变成属性调用的。 class Test: def __init__(self): print("I'm doing the test!") score=60 def getScore(self): return self.score @prope 阅读全文
posted @ 2022-01-22 22:01 磐正 阅读(69) 评论(1) 推荐(0)
摘要: IDC使用3中数据类型:long、浮点值、字符串 auto:引入一个局部变量声明,可以初始化 extern:引入全局变量声明,可以在内部或外部,但不能初始化 static:用于引入一个用户定义的函数 Message() print() long ScreenEA()返回当前光标所在的虚拟地址 boo 阅读全文
posted @ 2022-01-21 16:08 磐正 阅读(244) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<Windows.h> BOOL IsAlreadyRun(){ HANDLE hMutex=NULL; hMutex=::CreateMutex(NULL,//改句柄不能由子进程继承 FALSE,//不属于任何线程 "lock1");//锁名称 阅读全文
posted @ 2022-01-12 18:45 磐正 阅读(41) 评论(0) 推荐(0)
摘要: //函数回调 //函数名表示函数的地址 #include<stdio.h> void print(int i) { printf("%d ",i); } void foreach(int A[],int n,void (* pFunc)(int i)) { for(int j=0;j<n;j++) 阅读全文
posted @ 2022-01-08 15:24 磐正 阅读(30) 评论(1) 推荐(0)
摘要: 1.头文件-Dll1.h #pragma once //extern "C" __declspec(dllexport) int Sub(int a, int b); #define dllExport __declspec(dllexport) extern "C" dllExport int S 阅读全文
posted @ 2022-01-07 15:05 磐正 阅读(78) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<stdlib.h> typedef struct Node { int data; struct Node* next; }Node,*List; void Print(List L) { Node* node; node = L->next; 阅读全文
posted @ 2021-09-30 14:15 磐正 阅读(20) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<stdlib.h> typedef struct Node { char data; struct Node* next; }Node, *List; //分成三段创建链表 Node* CreateList(List L, int length) 阅读全文
posted @ 2021-09-29 13:46 磐正 阅读(20) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<stdlib.h> typedef struct Node { int data; struct Node* next; }Node,*List; void ReverseList(List L) { Node* node1; Node* nod 阅读全文
posted @ 2021-09-28 22:29 磐正 阅读(135) 评论(1) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 13 下一页