arget13 / DDexec

A technique to run binaries filelessly and stealthily on Linux by "overwriting" the shell's process with another.
GNU General Public License v3.0
791 stars 83 forks source link

Error with go binaries #5

Closed arget13 closed 2 years ago

arget13 commented 2 years ago

Error trying to run go binaries.

fatal error: failed to get system page size
runtime: panic before malloc heap initialized

runtime stack:
runtime.throw({0x499fc4, 0x0})
    /usr/lib/go/src/runtime/panic.go:1198 +0x71 fp=0x7fffffffee98 sp=0x7fffffffee68 pc=0x42f991
runtime.mallocinit()
    /usr/lib/go/src/runtime/malloc.go:445 +0x2fd fp=0x7fffffffeec0 sp=0x7fffffffee98 pc=0x40a7bd
runtime.schedinit()
    /usr/lib/go/src/runtime/proc.go:689 +0x55 fp=0x7fffffffef20 sp=0x7fffffffeec0 pc=0x4331d5
runtime.rt0_go()
    /usr/lib/go/src/runtime/asm_amd64.s:212 +0x125 fp=0x7fffffffef28 sp=0x7fffffffef20 pc=0x4589a5

Probably the internal golang functions use the auxv entry AT_PAGESZ to obtain the page size.