写在前面

目前用到的有:

  • ping
  • ifconfig
  • curl
  • netstat
  • nc
  • route
  • lsof

软件:

  • frp
  • chisel
  • rsync & scp
  • proxychains

命令介绍

route

如果有多张网卡启用:

  • en0 wifi
  • en12 有线宽带

使用这个命令添加路由:使 向 10.10.5.4 的流量 走 10.11.3.254 网关 gate_way

1
sudo route -n add 10.10.5.4 10.11.3.254

查看路由表:netstat

netstat

查看路由表:

1
netstat -rn

lsof

查看端口被哪个进程占用:

1
lsof -i :<port>

curl

几个好用的URL:

nc