openwrt - nc

 

 


openwrt 內的 nc

 

ls -l /usr/bin/nc

lrwxrwxrwx    1 root     root            17 Aug 16 15:51 /usr/bin/nc -> ../../bin/busybox*

# size ~ 24k

opkg install netcat

netcat 與 busybox nc 的分別

  • -e, --exec=PROGRAM         program to exec after connect
  • -l, --listen               listen mode, for inbound connects
  • -L, --tunnel=ADDRESS:PORT  forward local port to remote address
  • -o, --output=FILE          output hexdump traffic to FILE (implies -x)
  • -x, --hexdump              hexdump incoming and outgoing traffic
  • -u, --udp                  UDP mode
  • -T, --telnet               answer using TELNET negotiation