7,275
edits
(→雑多なメモ) |
(→雑多なメモ) |
||
(4 intermediate revisions by the same user not shown) | |||
docker import https://downloads.openwrt.org/snapshots/targets/x86/64/openwrt-x86-64-generic-rootfs.tar.gz openwrt-x86-64-generic-rootfs
docker images
docker run --rm -i openwrt-x86-64-generic-rootfs cat /etc/banner
docker run --rm -i -t openwrt-x86-64-generic-rootfs /bin/ash
</syntaxhighlight>
<syntaxhighlight lang="bash" enclose="div">
docker exec -it openwrt uci set network.lan.ipaddr='`docker
docker exec -it openwrt uci commit
docker exec -it openwrt /etc/init.d/odhcpd disable
cat <<EOF > /bin/wget
#/bin/ash
/bin/wget.orig -4 \$*
EOF
chmod +x /bin/wget
<syntaxhighlight lang="bash" enclose="div">
sudo sysctl -w kernel.dmesg_restrict=1
sudo sysctl -w kernel.kptr_restrict=1
sudo sysctl -w kernel.yama.ptrace_scope=0
</syntaxhighlight>
|