gogo icon indicating copy to clipboard operation
gogo copied to clipboard

csv保存文件时乱码?

Open ghost opened this issue 1 year ago • 3 comments

image 我服了为什么保存的csv会是乱码? .\gogo_windows_amd64.exe -i 192.168.136.1/24 -p all --tee -t 1333 -f re123sults.csv -O csv 有点难受啊,这个保存文件倒低该是怎么个格式呢?

ghost avatar Sep 25 '24 08:09 ghost

确实存在问题, 是设计上的问题。 因为默认gogo会启动输出文件的加密和压缩。

有两种解决办法:

  1. 添加-C 关闭输出文件加密
  2. gogo -i 192.168.1.1/24 -p top1 --tee -t 1333 -f 1.dat 正常输出dat文件, 在格式化时导出为csvgogo -F .\1.dat -f 1.csv -o csv

M09Ic avatar Sep 29 '24 06:09 M09Ic

确实存在问题, 是设计上的问题。 因为默认gogo会启动输出文件的加密和压缩。

有两种解决办法:

  1. 添加-C 关闭输出文件加密
  2. gogo -i 192.168.1.1/24 -p top1 --tee -t 1333 -f 1.dat 正常输出dat文件, 在格式化时导出为csvgogo -F .\1.dat -f 1.csv -o csv

我的命令是:./gogo_darwin_arm64 -l target.txt -f urls.dat --proxy=socks5://127.0.0.1:7890 -v -e ./gogo_darwin_arm64 -F urls.dat -f re.csv -O csv

成功保存到csv格式,显示有一些问题 image 多了一些乱七八糟的东西

x1a02 avatar Jan 08 '25 16:01 x1a02

这些是ANSI的颜色渲染, 应该在输出到非命令行格式时自动关闭。 下个版本我会修复这个bug

M09Ic avatar Jan 14 '25 07:01 M09Ic