lanmaster53 / recon-ng

Open Source Intelligence gathering tool aimed at reducing the time spent harvesting information from open sources.
GNU General Public License v3.0
3.87k stars 622 forks source link

Prettify ASCII tables #23

Open naltun opened 4 years ago

naltun commented 4 years ago

I've marketplace info'd two different modules to compare: image

Having nice-looking ASCII tables for each query would be class.

lanmaster53 commented 4 years ago

This isn't broken. It's the nature of ascii tables. The individual tables extend to the width of the longest piece of data and it is wrapping. If you want, update this issue to a feature request for prettier tables. Otherwise, we can close. I'm not sure if I'll ever try to fix it, but if someone wants to take a stab at it, they are welcome to. I think I looked at several ascii table libraries but wasn't really a fan of any of them, so I stuck with my original implementation.

naltun commented 4 years ago

Fair enough. Thanks for swift feedback.

jnazarioCensys commented 4 years ago

@lanmaster53 would the textwrap module help here? basically wrap all fields to some width. does the ascii table code you use support multiline fields which would result from wrapped text?