使用 Go 反编译已编译的程序 [英] Decompiling a compiled program with Go

查看:41
本文介绍了使用 Go 反编译已编译的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用 Go 构建了一个简单的可执行程序.

I have built a simple executable program with Go.

我已将代码编译成静态二进制程序.

I've compiled the code into a static binary program.

我想反编译输出的二进制文件,得到Go源码.

I want to decompile the output binary file and get the Go source code.

这可能吗?

推荐答案

没有工具可以做到这一点,并且由于 Go 程序被编译成机器代码,它们不包含足够的信息来将它们转换回 Go 代码.不过,标准的拆卸技术仍然可行.

There is no tool to do that and as Go programs are compiled into machine code, they do not contain enough information to translate them back into Go code. Standard disassembly techniques are still possible though.

这篇关于使用 Go 反编译已编译的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆