Skip to content
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

Feat screenshot html #1226

Merged
merged 14 commits into from
Jul 10, 2023
Merged

Conversation

bugrakocabay
Copy link
Contributor

@bugrakocabay bugrakocabay commented Jun 12, 2023

As requested here, I have implemented a feature for -screenshot flag, which saves the result screenshots in an indexed html file as this;

image

The basic functionality is ready, but there is still room for improvement. Open for any suggestions.

  • Populate Response Info field with given flags, such as status code, IP, Title etc.

@ehsandeep ehsandeep changed the base branch from main to dev June 12, 2023 21:28
@ehsandeep ehsandeep linked an issue Jun 12, 2023 that may be closed by this pull request
@ehsandeep ehsandeep added the Type: Enhancement Most issues will probably ask for additions or changes. label Jun 12, 2023
@bugrakocabay
Copy link
Contributor Author

Populated response info column with the flags provided by user
image

review please

@ehsandeep ehsandeep requested a review from Mzack9999 June 14, 2023 17:16
Copy link
Member

@Mzack9999 Mzack9999 left a comment

Choose a reason for hiding this comment

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

@bugrakocabay This is a very cool feature! What do you think about moving the html code into an external html template that can be populated with template syntax (either go native or something like twig like syntax)? In this way the output report would be completely customizable

@bugrakocabay
Copy link
Contributor Author

Spinned up a new goroutine with a channel, as when I used it inside the one above it, some race conditions occurred.

Copy link
Member

@Mzack9999 Mzack9999 left a comment

Choose a reason for hiding this comment

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

lgtm!
image

@Mzack9999 Mzack9999 requested a review from ehsandeep July 3, 2023 11:41
Copy link
Member

@ehsandeep ehsandeep left a comment

Choose a reason for hiding this comment

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

thank you @bugrakocabay for adding this support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Basic HTML Index file to visualize created screenshot
3 participants