# dll_hacker **Repository Path**: octan3/dll_hacker ## Basic Information - **Project Name**: dll_hacker - **Description**: 使用python脚本来生成用于dll劫持的dll - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-01-16 - **Last Updated**: 2024-01-16 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # dll_hacker #### 介绍 使用python脚本来生成用于dll劫持的dll #### 软件架构 软件架构说明 #### 安装教程 python:pefile、shutil nasm #### 使用说明 1.python main.c [dll path] [output dir](例如:python main.c C:/windows/system32/WINMM.dll ./) 2.新建空vs项目,将生成的asm、def、c文件加入到项目当中, 将项目改为生成dll, 在链接器->输入文件->模块定义文件设置为def文件, 为asm文件设置自定义生成工具, 命令行为: ``` nasm -f win$(PlatformArchitecture) %(Identity) -o $(IntDirFullPath)%(Filename).obj ``` 输出为: ``` $(IntDirFullPath)%(Filename).obj ``` 3.编译生成dll