forked from projectdiscovery/httpx
- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtml-summary.html
More file actions
133 lines (126 loc) · 4.97 KB
/
html-summary.html
File metadata and controls
133 lines (126 loc) · 4.97 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
<!DOCTYPE html>
<html>
<head>
<title>Screenshot Table</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
}
table {
margin-top: 20px;
border-collapse: collapse;
}
th,
td {
padding: 10px;
text-align: center;
border: 1px solid black;
}
.thumbnail {
width: 400px;
height: 300px;
object-fit: cover;
}
</style>
</head>
<body>
<table style="margin: 20px auto; border-collapse: collapse">
<thead>
<tr>
<th style="padding: 10px; text-align: center; border: 1px solid black">
<strong>Response Info</strong>
</th>
<th style="padding: 10px; text-align: center; border: 1px solid black">
<strong>Screenshot</strong>
</th>
</tr>
</thead>
<tbody>
{{ $ExtractTitle := .Options.ExtractTitle }}
{{ $OutputStatusCode := .Options.StatusCode }}
{{ $OutputContentLength := .Options.ContentLength }}
{{ $Favicon := .Options.Favicon }}
{{ $OutputResponseTime := .Options.OutputResponseTime }}
{{ $OutputLinesCount := .Options.OutputLinesCount }}
{{ $OutputWordsCount := .Options.OutputWordsCount }}
{{ $OutputServerHeader := .Options.OutputServerHeader }}
{{ $TechDetect := .Options.TechDetect }}
{{range .Output}}
{{if ne .ScreenshotPath ""}}
<tr>
<td style="padding: 10px; border: 1px solid black">
<ul style="list-style-type: none; padding-left: 0">
<li>
<strong>Host:</strong>
<a href="{{.URL}}" style="text-decoration: none; color: blue">{{.URL}}</a>
</li>
{{if $ExtractTitle}}
<li>
<strong>Title:</strong>
<a style="text-decoration: none; color: blue">{{.Title}}</a>
</li>
{{end}}
{{if $OutputStatusCode}}
<li>
<strong>Status Code:</strong>
<a style="text-decoration: none; color: blue">{{.StatusCode}}</a>
</li>
{{end}}
{{if $OutputContentLength}}
<li>
<strong>Content-Length:</strong>
<a style="text-decoration: none; color: blue">{{.ContentLength}}</a>
</li>
{{end}}
{{if $Favicon}}
<li>
<strong>Favicon:</strong>
<a style="text-decoration: none; color: blue">{{.FavIconMMH3}}</a>
</li>
{{end}}
{{if $OutputResponseTime}}
<li>
<strong>Response Time:</strong>
<a style="text-decoration: none; color: blue">{{.ResponseTime}}</a>
</li>
{{end}}
{{if $OutputLinesCount}}
<li>
<strong>Total Lines:</strong>
<a style="text-decoration: none; color: blue">{{.Lines}}</a>
</li>
{{end}}
{{if $OutputWordsCount}}
<li>
<strong>Words Count:</strong>
<a style="text-decoration: none; color: blue">{{.Words}}</a>
</li>
{{end}}
{{if $OutputServerHeader}}
<li>
<strong>Webserver:</strong>
<a style="text-decoration: none; color: blue">{{.WebServer}}</a>
</li>
{{end}}
{{if $TechDetect}}
<li>
<strong>Technologies:</strong>
<a style="text-decoration: none; color: blue">{{.Technologies}}</a>
</li>
{{end}}
</ul>
</td>
<td style="padding: 10px; border: 1px solid black">
<a href="{{.ScreenshotPathRel | safeURL}}">
<img src="{{.ScreenshotPathRel | safeURL}}" alt="Screenshot" style="width: 400px; height: 300px" />
</a>
</td>
</tr>
{{end}}
{{end}}
</tbody>
</table>
</body>
</html>