VHostScan icon indicating copy to clipboard operation
VHostScan copied to clipboard

Coloured output

Open codingo opened this issue 8 years ago • 14 comments

Update output to colourize output and improve feedback to the user. Will also require a --no-color to avoid coloured output.

codingo avatar Oct 02 '17 07:10 codingo

I can try it :) Have you a colour scheme?

Nothing in mind yet - do you want to base it off a *.json, *.txt or *.xml configuration file and it can be tweaked easily by the end user?

codingo avatar Oct 02 '17 08:10 codingo

it can be a good idea! For now I will try to directly add colours in the code. As far as I understand, the main print is in virtual_host_scanner.py, am I correct?

I think the main concern I have with static colours is the number of people in the infosec security using non-standard terminals. Maybe look at the sqlmap project for some implementation ideas? I'd say yellow at first.

The only two areas where output is only to the screen is the main print function in the virtual_host_scanner.py file and print_banner() in main. The other print statements are in the output helper class, but some work would need to be done to separate what's being written to file / written to screen to avoid the coloured output being written out to file.

codingo avatar Oct 02 '17 08:10 codingo

I will take a look. I was thinking about using https://pypi.python.org/pypi/colored that should provide cross-platform support.

Sounds good!

codingo avatar Oct 02 '17 08:10 codingo

Hey @FrancescoSaverioZuppichini! Just touching base to see how you're going with this one and if I can help in any way?

codingo avatar Oct 04 '17 23:10 codingo

Hey, how are you?

This weekend I had some problem health problems, I will have time on the weekend :)

So you were suggesting to put the colours as NoSQLMap, so everything yellow, correct?

Sorry @FrancescoSaverioZuppichini, I missed this comment - thinking red for errors, yellow for feedback, green for likely matches I'm thinking? If you want to wire something up we can tweak around with it in the pull request prior to a merge.

codingo avatar Oct 11 '17 00:10 codingo

@FrancescoSaverioZuppichini how'd you ever get on with this?

codingo avatar Oct 21 '17 08:10 codingo

Are you still implementing this feature?

aancw avatar Apr 20 '18 10:04 aancw

Yes, would you like to take it? @timkent and I have been quite time poor for a while!

codingo avatar Apr 20 '18 10:04 codingo

I've implemented basic color scheme output and logger for my project https://github.com/aancw/Belati And not using print directly, but using log.console_log()

aancw avatar Apr 20 '18 10:04 aancw

This has been outstanding for some time so moving to my own plate. I'll open a new branch for this soon.

codingo avatar May 15 '18 01:05 codingo