GoLANG obfuscates strings?

agolangf · · 510 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>So i was checking out a Go program that i wrote in Hex editor, From what i can tell when compiled Go obfuscates any strings in the code? I can&#39;t seem to find anything like i can with a .NET program. Kinda interesting.</p> <hr/>**评论:**<br/><br/>adonovan76: <pre><p>They&#39;re not obfuscated, they&#39;re just concatenated.</p> <pre><code>% cat hello.go package main import &#34;fmt&#34; func main() { fmt.Println(&#34;hello, world&#34;) } % go build hello.go % strings hello | grep &#39;hello, world&#39; entersyscallgcpacertracehello, worldhost is downillegal seekinvalid slotout of rangereleasep: m=runtime: gp=short buffer MB released % objdump -s -j .rodata hello ... 4a0d60 656e6420 74726163 6567630a 656e7465 end tracegc.ente 4a0d70 72737973 63616c6c 67637061 63657274 rsyscallgcpacert 4a0d80 72616365 68656c6c 6f2c2077 6f726c64 racehello, world # here 4a0d90 686f7374 20697320 646f776e 696c6c65 host is downille 4a0da0 67616c20 7365656b 696e7661 6c696420 gal seekinvalid ... </code></pre></pre>SaturnsVoid: <pre><p>Oh, I see! When i was using the search function it couldn&#39;t detect it because of the other crap there. Thanks for clearing that up!</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

510 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传