1 | mount -t binfmt_misc none /proc/sys/fs/binfmt_misc |
1 2 | mkdir -p /opt/exagear chmod -R 700 /opt/exagear |
1 2 3 | cd ~/dependency/ tar -xzvf Exagear-ARM32-ARM64.tar.gz chown -R root:root output |
1 | cp ~/dependency/output/ubt_a32a64 /opt/exagear/ |
1 2 | chmod +x /opt/exagear/ubt_a32a64 echo ":ubt_a32a64:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/opt/exagear/ubt_a32a64:POCF" > /proc/sys/fs/binfmt_misc/register |
1 | cat /proc/sys/fs/binfmt_misc/ubt_a32a64
|
回显如下,表示已经成功注册。
1 2 3 4 5 6 | enabled interpreter /opt/exagear/ubt_a32a64 flags: POCF offset 0 magic 7f454c4601010100000000000000000002002800 mask mask ffffffffffffff00fffffffffffffffffeffffff |