OpenWrt¶
https://github.com/openwrt/openwrt:
C语言 2022-04-15 Star 11.2k Fork 7.2k
OpenWrt Project is a Linux operating system targeting embedded devices. Instead of trying to create a single, static firmware, OpenWrt provides a fully writable filesystem with package management. This frees you from the application selection and configuration provided by the vendor and allows you to customize the device through the use of packages to suit any application. For developers, OpenWrt is the framework to build an application without having to build a complete firmware around it; for users this means the ability for full customization, to use the device in ways never envisioned.
常用命令:
opkg update
opkg install tcpdump
实例¶
PC 端使用 wireshark 实时监听:
plink.exe -batch -ssh -pw 123456 root@192.168.2.1 "tcpdump -ni br-lan -s 0 -w - not port 22" | "C:\Program Files\Wireshark\Wireshark.exe" -k -i -
说明:
root 表示路由用户名
123456 表示路由登录密码
192.168.2.1 表示路由 IP