Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
FireSheep能够在混杂模式下使用pcap来监听网络上的其他计算机。但是混杂模式需要 root 权限,或者至少需要在 *nix 机器上访问 /dev/bpf*。这是怎么做到的?Firefox 扩展是否以 root 权限运行?
它具有 run_privileged 方法,可以使用特定于操作系统的机制以 root 身份运行所需的操作,例如AuthorizationCreate(OS X)、pkexec(Linux)(但这显然还不支持),当然还有return true在Windows上(因为几乎每个人都以管理员身份运行反正)。
AuthorizationCreate
pkexec
return true