上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页
摘要: #include<stdio.h> #include<iostream> using namespace std; int main(int argc, char* argv[]) { int i; for (i = 0; i < argc; i++) cout << argv[i] << endl 阅读全文
posted @ 2021-09-01 17:14 磐正 阅读(49) 评论(5) 推荐(0)
摘要: #include<stdio.h> #include<Windows.h> __declspec(naked) DWORD getKernel32() { __asm { mov eax,fs:[30h] mov eax,[eax+0ch] mov eax,[eax+14h] mov eax,[ea 阅读全文
posted @ 2021-08-27 00:08 磐正 阅读(150) 评论(0) 推荐(0)
摘要: #include<stdio.h> #include<Windows.h> __declspec(naked) DWORD getKernel32() { __asm { mov eax,fs:[30h] mov eax,[eax+0ch] mov eax,[eax+14h] mov eax,[ea 阅读全文
posted @ 2021-08-26 20:21 磐正 阅读(28) 评论(3) 推荐(0)
摘要: 1 typedef struct _PEB_LDR_DATA 2 { 3 ULONG Length; // +0x00 4 BOOLEAN Initialized; // +0x04 5 PVOID SsHandle; // +0x08 6 LIST_ENTRY InLoadOrderModuleL 阅读全文
posted @ 2021-08-26 16:39 磐正 阅读(851) 评论(1) 推荐(0)
摘要: typedef struct _PEB { UCHAR InheritedAddressSpace; // 00h UCHAR ReadImageFileExecOptions; // 01h UCHAR BeingDebugged; // 02h 这里QAQ UCHAR Spare; // 03h 阅读全文
posted @ 2021-08-26 16:38 磐正 阅读(112) 评论(0) 推荐(0)
摘要: FS寄存器指向当前活动线程的TEB结构(线程结构) 线程TEB结构体中,每个TEB+0x30(fs:[0x30])中都指向同一个地址(TEB.ProcessEnvironmentBlock)So。我们可以用fs:[0x30]来访问PEB的结构体地址 kd> dt _tebnt!_TEB +0x000 阅读全文
posted @ 2021-08-26 16:33 磐正 阅读(680) 评论(0) 推荐(0)
摘要: 在使用c#时候,很多人会有一个小疑问:为啥一个类型会有两种写法,比如string和String, object和Object...而且两种写法等价?主要原因是小写的是基元类型(编译器直接支持的数据类型,比如C#编译器),而大写的是FCL(Framework Class Library)中定义的类型( 阅读全文
posted @ 2021-08-25 13:49 磐正 阅读(113) 评论(0) 推荐(0)
摘要: 1.Console.WriteLine("姓名:{0},年龄:{1}",name,age); 2.Console.WriteLine($"姓名:{name},年龄:{age}"); //+拼接 3.Console.WriteLine("姓名"+name+"年龄"+age); 4.占位符 Consol 阅读全文
posted @ 2021-08-25 12:26 磐正 阅读(546) 评论(0) 推荐(0)
摘要: // Dll1.cpp : 定义 DLL 的导出函数。 // #include "pch.h" #include "framework.h" #include "Dll1.h" #pragma comment(linker,"/EXPORT:Add=Dll2.Add") // Dll2.cpp : 阅读全文
posted @ 2021-08-20 22:04 磐正 阅读(78) 评论(0) 推荐(0)
摘要: 原因: Dll1.lib写成了Dll1.h 说明:隐式加载dll会在导入表中出现dll 此时如果删除DLL 就会报错 阅读全文
posted @ 2021-08-14 12:38 磐正 阅读(544) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 13 下一页