Skip to content

Latest commit

 

History

History
47 lines (26 loc) · 1.16 KB

FAQ.md

File metadata and controls

47 lines (26 loc) · 1.16 KB

常见问题

使用非root权限运行FaPro

和nmap类似:

sudo setcap cap_net_raw,cap_net_admin=eip fapro

windows powershell下生成的配置文件无法运行

运行./fapro run提示如下:

panic: Fatal error config file: While parsing config: invalid character 'ÿ' looking for beginning of value

因为powershell的输出编码是UTF-8 with BOM,程序读取失败,可以使用Out-File命令保存配置文件:

./fapro.exe genConfig -n 172.16.0.0/16 | Out-File -Encoding ASCII fapro.json

FAQ

Run FaPro without root privileges

like nmap:

sudo setcap cap_net_raw,cap_net_admin=eip fapro

The configuration file generated under windows powershell cannot be run

./fapro run prompt:

panic: Fatal error config file: While parsing config: invalid character 'ÿ' looking for beginning of value

Because the output encoding of powershell stdout redirect is UTF-8 with BOM, Use Out-File command to save the configuration file.

./fapro.exe genConfig -n 172.16.0.0/16 | Out-File -Encoding ASCII fapro.json