Giter VIP home page Giter VIP logo

bimg-shellcode-loader's Introduction

bimg-shellcode-loader

bimg-shellcode-loader是一个使用bilibili图片隐写功能加载shellcode的工具。 当然你可以使用任何地方的图片。

在调研C2通讯方式时,发现有一个有师傅使用了bilbili图片隐写功能加载shellcode,觉得这个方法很有意思,就自己写了一个工具。添加了反沙箱功能。
如果这个项目对你有帮助,欢迎star。

使用步骤

1. 生成包含隐写信息的图片

使用generate.go生成包含shellcode的图片,生成的图片为out_file.png。 在generate.go同级目录下存放shellcode文件,shellcode文件名为shellcode.bin。 图片为img.png, 随后用运行generate.go生成out_file.png。

go run generate.go
2. 上传图片到bilibili

登陆访问创作中心 https://member.bilibili.com/platform/upload/text/edit 点击上传图片,把生成的图片上传上去。 img.png

通过浏览器开发者工具,查看上传图片的请求,找到图片的返回地址,复制下来。

img.png

把图片地址填入到shellcodeLoader.go中的imgUrl变量中。

img.png

3. 编译加载器
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 GOPRIVATE=* GOGARBLE=* garble -tiny -literals -seed=random build -ldflags  "-w -s -buildid= -H=windowsgui" -buildmode="pie"

免杀

只测试了360和微步 img.png

微步反沙箱,判断当前系统壁纸,如果是沙箱内的壁纸就退出。大家有遇到的沙箱或者分析机,提取壁纸的md5放入列表中。

md5List := []string{"fbfeb6772173fef2213992db05377231", "49150f7bfd879fe03a2f7d148a2514de", "fc322167eb838d9cd4ed6e8939e78d89", "178aefd8bbb4dd3ed377e790bc92a4eb", "0f8f1032e4afe1105a2e5184c61a3ce4", "da288dceaafd7c97f1b09c594eac7868"}

微步沙箱检测通过0/24,并且没有检测到网络通信。 img_1.png img.png

火绒 img8.jpeg

virscan扫描结果 img7.png

Stargazers over time

Stargazers over time

Visitors (Since 2023/08/01)

bimg-shellcode-loader's People

Contributors

intbjw 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.