bruce0
2020-08-08 10:16:34 +08:00
go 反编译后得到的是 plan9 汇编,
```
"".main STEXT nosplit size=2 args=0x0 locals=0x0
0x0000 00000 (C:\Users\bruce\Desktop\go\main.go:3) TEXT "".main(SB), NOSPLIT|ABIInternal, $0-0
0x0000 00000 (C:\Users\bruce\Desktop\go\main.go:3) FUNCDATA $0, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
0x0000 00000 (C:\Users\bruce\Desktop\go\main.go:3) FUNCDATA $1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
0x0000 00000 (C:\Users\bruce\Desktop\go\main.go:3) FUNCDATA $3, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
0x0000 00000 (C:\Users\bruce\Desktop\go\main.go:4) PCDATA $2, $0
0x0000 00000 (C:\Users\bruce\Desktop\go\main.go:4) PCDATA $0, $0
0x0000 00000 (C:\Users\bruce\Desktop\go\main.go:4) XCHGL AX, AX
0x0001 00001 (<unknown line number>) RET
0x0000 90 c3 ..
"".one STEXT nosplit size=20 args=0x18 locals=0x0
0x0000 00000 (C:\Users\bruce\Desktop\go\main.go:7) TEXT "".one(SB), NOSPLIT|ABIInternal, $0-24
0x0000 00000 (C:\Users\bruce\Desktop\go\main.go:7) FUNCDATA $0, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
0x0000 00000 (C:\Users\bruce\Desktop\go\main.go:7) FUNCDATA $1, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
0x0000 00000 (C:\Users\bruce\Desktop\go\main.go:7) FUNCDATA $3, gclocals·33cdeccccebe80329f1fdbee7f5874cb(SB)
0x0000 00000 (C:\Users\bruce\Desktop\go\main.go:8) PCDATA $2, $0
0x0000 00000 (C:\Users\bruce\Desktop\go\main.go:8) PCDATA $0, $0
0x0000 00000 (C:\Users\bruce\Desktop\go\main.go:8) MOVQ "".a+8(SP), AX
0x0005 00005 (C:\Users\bruce\Desktop\go\main.go:8) MOVQ AX, "".~r1+16(SP)
0x000a 00010 (C:\Users\bruce\Desktop\go\main.go:8) ADDQ $5, AX
0x000e 00014 (C:\Users\bruce\Desktop\go\main.go:8) MOVQ AX, "".~r2+24(SP)
0x0013 00019 (C:\Users\bruce\Desktop\go\main.go:8) RET
0x0000 48 8b 44 24 08 48 89 44 24 10 48 83 c0 05 48 89 H.D$.H.D$.H...H.
0x0010 44 24 18 c3 D$..
```
差不多这样吧,比 Java 的要复杂多了。但是遇到熟悉汇编和破解的,基本没啥用