portable Ziglang based reverse shell
Required package:
'network.zig'
https://github.com/MasterQ32/zig-network
root@84f9b9ce9b42:/var/tmp/zig-linux-aarch64-0.9.0-dev.1936+77836e08a# ls src/main.zig
src/main.zig
root@84f9b9ce9b42:/var/tmp/zig-linux-aarch64-0.9.0-dev.1936+77836e08a# ./zig build
root@84f9b9ce9b42:/var/tmp/zig-linux-aarch64-0.9.0-dev.1936+77836e08a# file zig-out/bin/zig-linux-aarch64-0.9.0-dev.1936+77836e08a
zig-out/bin/zig-linux-aarch64-0.9.0-dev.1936+77836e08a: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, with debug_info, not stripped
Cross Compile
https://ziglang.org/learn/overview/#cross-compiling-is-a-first-class-use-case
Enjoy~