- 😄 喜爱有趣的代码,做自己喜欢的事情。
- 🔭 研究安全扫描器,期望将安全自动化实现,以减少安全人员的重复时间,努力改变自己,期待改变世界。
- 🤔 我自豪的
- w系列开源扫描器(包含通用扫描器,指纹识别,网络空间引擎,被动扫描器等)
- https://x.hacking8.com/
- 我的博客,用于记录点点滴滴
- 🌱 我的微信公众号:Hacking就是好玩
- 用于打消无聊的时光,分享一些有趣的开发过程,更新的项目,以及原创工具
我的知识星球
清除Go编译时自带的信息
我的知识星球
panic: no pclntab located
goroutine 1 [running]:
main.main()
/home/runner/work/go-strip-source/go-strip-source/cmd/cmd.go:56 +0x218b
老哥,不打算开源吗
go版本1.16.1
我的代码
main.go
package main
import "C"
import "fmt"
//export Hello
func Hello(){
fmt.Println(":hello")
}
func main(){}
编译命令
go build -buildmode=c-shared -x -v -o test.so -ldflags "-s -w" main.go
混淆命令
./go-strip -f test.so -a -output test.strip.so
混淆开始
_ _
| | ()
__ _ ___ ______ | | _ __ _ _ __
/ _ |/ _ ___/ | | '| | '
| (| | () | _ \ || | | | |) |
, |/ |/|| || ./
/ | | |
|/ ||
2021/11/18 01:39:00 开始混淆
2021/11/18 01:39:00 文件结构:ELF
2021/11/18 01:39:00 混淆 BuildId
Error when extracting compiler information: no goversion found
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x50c13b]
goroutine 1 [running]:
github.com/goretk/gore/gosym.(*Table).GetGo12(...)
/home/runner/work/go-strip-source/go-strip-source/gosym/symtab.go:485
github.com/goretk/gore.(*GoFile).GetGoRoot(0xc000060ea0, 0xc00000e018, 0xc000093f28)
/home/runner/work/go-strip-source/go-strip-source/file.go:195 +0x3b
main.main()
/home/runner/work/go-strip-source/go-strip-source/testM/main.go:48 +0x2c5
我需要你的帮助
GoRoot获取失败,err: no goroot found
panic: runtime error: slice bounds out of range [:14652563515960607797] with capacity 7522816
我尝试用一个20mb的程序,混淆的时候出错了
经过混淆后的fscan无法使用打包方法为提供的打包方式
你好,我在使用 github.com/ying32/govcl/vcl 包写的带gui程序,混淆会出现如下错误:
C:\Users\Guser\Desktop\Project\testgostrip\gocode>test.exe
runtime: function symbol table header: 0x42427951 0x44 0x6f 0x42 0x4f
fatal error: invalid function symbol table
runtime: panic before malloc heap initialized
runtime stack:
fatal error: findfunc: bad findfunctab entry idx
runtime: panic before malloc heap initialized
panic during panic
runtime stack:
fatal error: findfunc: bad findfunctab entry idx
runtime: panic before malloc heap initialized
stack trace unavailable
C:\Users\Guser\Desktop\Project\testgostrip\gocode>go version
go version go1.15 windows/amd64
但在go 1.18下不会出现这个错误,不过运行后只有一个主界面,没有任何控件,gui程序的标题也会被随机字符串替换。
另外,除了知识星球外,还能提供一个其他的源代码下载方式么?
`panic: runtime error: slice bounds out of range [:6917919642050060544] with capacity 788480
goroutine 1 [running]:
gostrip/gore.parseString(0xc0000461c0, 0xff, 0x4ba000, {0xc0006fc000, 0xc0800, 0xc0800})
/home/runner/work/go-strip-source/go-strip-source/gore/type.go:706 +0x1b4
gostrip/gore.typeParse(0x577e08?, 0xc0000461c0, 0x2c098, {0xc0006fc000, 0xc0800, 0xc0800}, 0x4ba000)
/home/runner/work/go-strip-source/go-strip-source/gore/type.go:384 +0x34d
gostrip/gore.getLegacyTypes(0xc0000461c0, {0x578a78, 0xc00001e380})
/home/runner/work/go-strip-source/go-strip-source/gore/type.go:117 +0x325
gostrip/gore.getTypes(0xc0000461c0, {0x578a78, 0xc00001e380})
/home/runner/work/go-strip-source/go-strip-source/gore/type.go:61 +0x36e
gostrip/gore.(*GoFile).GetTypes(0xc000140000)
/home/runner/work/go-strip-source/go-strip-source/gore/file.go:422 +0x71
main.main()
/home/runner/work/go-strip-source/go-strip-source/cmd/cmd.go:72 +0x312`
报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错报错panic: no pclntab located
goroutine 1 [running]:
main.main()
/home/runner/work/go-strip-source/go-strip-source/cmd/cmd.go:56 +0x1cb8
能编译发布一下 linux_arm64 的版本吗
go version go1.18 windows/amd64
go build -ldflags "-s -w"
混淆 go-strip -f xxx.exe -a -output new.exe
,不清楚为啥 混淆后的 fscan/gobuster 无法正常运行,gost正常可以运行。
log:
D:\GoProject\fscan-main>new_fscan.exe -h
.......全是base64后的输出.....
.........
.........
...syBCztbfHoayQjOFcWypesaWGHUyqJXdlupHEtInxTNOZOOMyVmmAUuCwWTbTJizCstPIylkRNaMGCsRAjWnlNdKmVOOKkEPAYQYFJARLZG()
DnLDEtLDxIkTYPXTlwa:1571 +0x1
D:\GoProject\fscan-main>
D:\gobuster-master>go-strip.exe -f gobuster.exe -a -output new_gobuster.exe
2022/09/26 16:47:26 GoRoot获取失败,err: no goroot found
2022/09/26 16:47:26 Compiler version: go1.18 (2022-03-15T14:06:18Z)
2022/09/26 16:47:26 混淆版本信息
2022/09/26 16:47:26 混淆结构信息,总数:5109
2022/09/26 16:47:40 混淆文件信息,总数623
2022/09/26 16:47:42 混淆函数信息
2022/09/26 16:47:42 混淆BuildID信息
2022/09/26 16:47:42 混淆GoMod信息
2022/09/26 16:47:42 混淆结束
2022/09/26 16:47:42 新的文件保存在 D:\gobuster-master\new_gobuster.exe
D:\GoProject\gobuster-master>new_gobuster.exe
template: top:3:15: executing "top" at <.Runnable>: can't evaluate field Runnable in type JaGlANKVIzuzpr
go 1.20
win adm 64
❯ go-strip.exe -f .\hack-browser-data-v0.3.6-windows-32bit.exe -a -output hbd.exe
_ _
| | (_)
__ _ ___ ______ | | _ __ _ _ __
/ _ |/ _ _/ | | '| | '
| (| | () | __ \ || | | | |) |
__, |_/ |/_|| || ._/
/ | | |
|/ |_|
2021/11/22 17:01:03 开始混淆
2021/11/22 17:01:03 文件结构:PE
2021/11/22 17:01:03 混淆 BuildId
2021/11/22 17:01:03 Compiler version: go1.16.2 (2021-03-11T17:08:05Z)
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x50 pc=0xc6d77e]
goroutine 1 [running]:
github.com/goretk/gore/gosym.(*Table).GetGo12(...)
/home/runner/work/go-strip-source/go-strip-source/gosym/symtab.go:485
github.com/goretk/gore.(*GoFile).GetGoRoot(0xc00009c000, 0x1a, 0xc000071f48)
/home/runner/work/go-strip-source/go-strip-source/file.go:195 +0x3e
main.main()
/home/runner/work/go-strip-source/go-strip-source/testM/main.go:48 +0x2d0
混淆linux版本的时候正常,windows版本报错
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.