上一页 1 2 3 4 5 6 7 8 9 ··· 41 下一页
摘要: test.l: %option noyywrap noline %{ #include <iostream> %} %x textSpan str %% "$" { BEGIN(textSpan); } \" { printf("string:"); BEGIN(str); } <textSpan> 阅读全文
posted @ 2021-05-17 16:40 Ajanuw 阅读(208) 评论(0) 推荐(0) 编辑
摘要: SetWall.ps1: $imgPath="C:\Users\ajanuw\Pictures\Saved Pictures\1.jpg" $code = @' using System.Runtime.InteropServices; namespace Win32{ public class W 阅读全文
posted @ 2021-04-15 10:02 Ajanuw 阅读(77) 评论(0) 推荐(0) 编辑
摘要: https://github.com/nodejs/node-addon-api hello world #include <napi.h> using namespace Napi; String Method(const CallbackInfo& info) { Env env = info. 阅读全文
posted @ 2021-04-15 09:39 Ajanuw 阅读(1431) 评论(0) 推荐(1) 编辑
摘要: 1. 创建静态库 "hello.lib" release x64 编译前,选择多线程MT,否则可能出现这个错误(error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”) 生成解决方案 2. 阅读全文
posted @ 2021-04-15 09:37 Ajanuw 阅读(513) 评论(0) 推荐(0) 编辑
摘要: // mov rcx,0 a.mov(rcx, 0); a.mov(rax, ptr(rcx) ); // mov rax, [rcx] a.mov(rax, ptr(rbp, 16)); // mov rax [rbp+0x10] // 字符串 a.mov(rdx, "body"); 查看字节码 阅读全文
posted @ 2021-04-15 09:36 Ajanuw 阅读(72) 评论(0) 推荐(1) 编辑
摘要: MODULEINFO GetPtrModuleBase(void* ptr, DWORD pid) { MODULEINFO mi{ 0 }; HANDLE hSnap = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE | TH32CS_SNAPMODULE3 阅读全文
posted @ 2021-03-09 12:08 Ajanuw 阅读(94) 评论(0) 推荐(0) 编辑
摘要: l(小于),g(大于) 有符号位判断 b(低于),a(高于) 无符号位判断 mov eax,1 mov edx,2 sub eax,edx ; 这个时候减出来是负数 eax==0xFFFFFFFF cmp eax,0 jl <addr> ;eax小于0跳,跳, (SF<>OF) 时短跳转 cmp e 阅读全文
posted @ 2021-02-22 22:58 Ajanuw 阅读(60) 评论(0) 推荐(0) 编辑
摘要: asmjit github asmjit home 1. 下载源码 在github下载源码放在"desctop/asmjit-master" 2. 使用cmake生成构建系统 > Desktop\asmjit-master> cmake CMakeLists.txt 3. 使用vs2019编译 使用 阅读全文
posted @ 2021-02-21 10:29 Ajanuw 阅读(823) 评论(0) 推荐(0) 编辑
摘要: 原文 在项目中创建"xor.asm" 在文件列表"xor.asm"上右键,点击属性 将项目类型设置为"自定义工具" 设置生成工具 编写"xor.asm" section .text global asm_xor asm_xor: push rbp mov rbp,rsp xor ecx,edx mo 阅读全文
posted @ 2021-02-20 17:32 Ajanuw 阅读(503) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <link rel="stylesheet" data-name="vs/editor/editor. 阅读全文
posted @ 2021-02-11 18:01 Ajanuw 阅读(978) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 41 下一页