这是indexloc提供的服务,不要输入任何密码
Skip to content

Add output to CSV file #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 3, 2019
Merged

Add output to CSV file #12

merged 1 commit into from
Apr 3, 2019

Conversation

seblw
Copy link
Contributor

@seblw seblw commented Apr 1, 2019

Hi again,
Another PR this evening :)
Example output content:

input,status_code,content_length,content_words
ccc,301,0,1
aaa,301,0,1

I'm still not sure about adding timestamp or/and source file to the output.

Copy link
Member

@joohoi joohoi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, you are on a roll :) I got an offline request to do this, but you obviously beat me to it! One thing that I could not decide upon was formatting, as a comma in the payload will break the CSV.

One option would be to save base64 encoded versions of the input, but that would make the post processing harder again. The other option would be to accept the fact that the CSV might get broken if there's a match with a comma (or whatever character would be used as delimiter). What do you think?

I don't think there's a good way to add the metadata for CSV format, unfortunately.

@seblw
Copy link
Contributor Author

seblw commented Apr 2, 2019

Yep, good point. Actually I think both approaches could be useful - maybe introducing two output formats like ecsv with base64 encoded payload and raw csv for some simpler use-cases like when you just bruteforce directories etc. That way the tool can support simple and advanced use cases (assuming that advanced user is able to decode the result hehe :) )

@joohoi
Copy link
Member

joohoi commented Apr 2, 2019

That sounds like a good plan! I'm all for it

@seblw
Copy link
Contributor Author

seblw commented Apr 2, 2019

Good to hear! Will put an update around the evening.

@seblw
Copy link
Contributor Author

seblw commented Apr 2, 2019

Updated.

@joohoi
Copy link
Member

joohoi commented Apr 3, 2019

LGTM! Thanks!

@joohoi joohoi merged commit 9934cfd into ffuf:master Apr 3, 2019
@seblw seblw deleted the csv_output branch April 3, 2019 10:27
SakiiR pushed a commit to SakiiR/ffuf that referenced this pull request Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants