-
Notifications
You must be signed in to change notification settings - Fork 60
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
Added color by status code #29 #50
Conversation
ChandanChainani
commented
Oct 24, 2021
•
edited
Loading
edited
can you attach an example of the output result? thanks! |
@phra I have attached the screenshot Only added color in dir status code, didn't added the response size. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add console
to to Cargo.toml
?
80f1893
to
f2ec3e0
Compare
@phra Sorry i forgot to include the dependency added as mentioned. |
src/dirbuster/mod.rs
Outdated
return style(code).green().to_string(); | ||
} | ||
else if code.starts_with("3") { | ||
return style(code).magenta().to_string(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think yellow makes more sense for 3xx
src/dirbuster/mod.rs
Outdated
return style(code).magenta().to_string(); | ||
} | ||
else if code.starts_with("4") { | ||
return style(code).yellow().to_string(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe orange better fits 4xx
2eb4f37
to
d16c19b
Compare
used console cargo v0.15.0 for coloring the output in terminal
d16c19b
to
5cfc2bf
Compare
@phra updated 3xx and 4xx status color as mentioned |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM