seajaysec/cypheroth

Trailing characters in csv output

samuellg opened this issue · 2 comments

Hi @seajaysec,
Thanks for you script, it's pretty useful! There is an issue in the output in csv files. As the tr -d '"' <$SAVEPATH 1<>$SAVEPATH rewrites in the file without erasing its content, with less characters, you still have a few lines of duplicate results with quoted results at the end. Like :
[...]
USER@DOMAIN.COM
USER2@DOMAIN.COM
"USER2@DOMAIN.COM"

Replacing this line with sed -i 's/"//g' $SAVEPATH fixes this.

Ohh that explains that. Thanks. I might use tr to replace them with spaces. I can’t seem to figure out a sed replace command that works with the same syntax on mac and linux. Same deal with awk. Been wrasslin with that for a while, which is how I landed on tr.

Fixed in v1.4.08! Thanks again for submitting this issue.