Giter VIP home page Giter VIP logo

go-shellcode-loader's Issues

build报错

如图,er而且Google找不到解决方法,我将go卸载重装,仍然会这样
image

C:\Users\Tajang\AppData\Local\Temp\garble-shared2514198858\runtime\ezwnxcZ.s:205: expected '(', found /
asm: InitTextSym double init for sync
panic: invalid use of LSym - NewFuncInfo with Extra of type *obj.FuncInfo

goroutine 1 [running]:
cmd/internal/obj.(*LSym).NewFuncInfo(0x53aceb?)
        c:/go/src/cmd/internal/obj/link.go:516 +0xf4
cmd/internal/obj.(*Link).InitTextSym(0xc00012e400, 0xc000220e00, 0x4)
        c:/go/src/cmd/internal/obj/plist.go:170 +0xfc
cmd/asm/internal/asm.(*Parser).asmText(0xc000123e78, {0xc000123d18, 0x3, 0x0?})
        c:/go/src/cmd/asm/internal/asm/asm.go:181 +0x505
cmd/asm/internal/asm.(*Parser).pseudo(0xc000123e78?, {0xc000226148?, 0xc000226140?}, {0xc000123d18?, 0x0?, 0x0?})
        c:/go/src/cmd/asm/internal/asm/parse.go:298 +0x54
cmd/asm/internal/asm.(*Parser).Parse(0xc000123e78)
        c:/go/src/cmd/asm/internal/asm/parse.go:106 +0xd6
main.main()
        c:/go/src/cmd/asm/main.go:93 +0x805
exit status 2
exit status 2

解决编译为exe时的报错问题

我现在是2023/2/20,当我按照README默认安装最新的garble打包exe时,遇到了如下错误
image

C:\Users\Tajang\AppData\Local\Temp\garble-shared2514198858\runtime\ezwnxcZ.s:205: expected '(', found /
asm: InitTextSym double init for sync
panic: invalid use of LSym - NewFuncInfo with Extra of type *obj.FuncInfo

goroutine 1 [running]:
cmd/internal/obj.(*LSym).NewFuncInfo(0x53aceb?)
        c:/go/src/cmd/internal/obj/link.go:516 +0xf4
cmd/internal/obj.(*Link).InitTextSym(0xc00012e400, 0xc000220e00, 0x4)
        c:/go/src/cmd/internal/obj/plist.go:170 +0xfc
cmd/asm/internal/asm.(*Parser).asmText(0xc000123e78, {0xc000123d18, 0x3, 0x0?})
        c:/go/src/cmd/asm/internal/asm/asm.go:181 +0x505
cmd/asm/internal/asm.(*Parser).pseudo(0xc000123e78?, {0xc000226148?, 0xc000226140?}, {0xc000123d18?, 0x0?, 0x0?})
        c:/go/src/cmd/asm/internal/asm/parse.go:298 +0x54
cmd/asm/internal/asm.(*Parser).Parse(0xc000123e78)
        c:/go/src/cmd/asm/internal/asm/parse.go:106 +0xd6
main.main()
        c:/go/src/cmd/asm/main.go:93 +0x805
exit status 2
exit status 2

这是因为最新garble做了一些变化导致了错误,而太旧版本的garble v0.7.0以前不支持go1.19,所以安装garble那一步按照下列方式安装

go install mvdan.cc/garble@v0.7.1

生成exe文件时报错undefined syscall.NewLazyDLL

运行命令
/home/kali/go/bin/garble -tiny -literals -seed=random build -ldflags="-w -s -H windowsgui" -race go-sc.go
报错:go list error: exit status 2: # command-line-arguments
./go-sc.go:13:26: undefined: syscall.NewLazyDLL
版本信息:
go version go1.19.8 linux/amd64
garble版本0.9.3

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.