Class: Feroxbuster::Statistics
- Inherits:
-
Object
- Object
- Feroxbuster::Statistics
- Defined in:
- lib/feroxbuster/statistics.rb
Overview
Represents the statistics data, parsed from the last line of a .json
output file.
Instance Attribute Summary collapse
- #client_errors ⇒ Integer readonly
- #connection_errors ⇒ Integer readonly
- #directory_scan_times ⇒ Array<Float> readonly
- #errors ⇒ Integer readonly
- #expected_per_scan ⇒ Integer readonly
- #extensions_collected ⇒ Integer readonly
- #initial_targets ⇒ Integer readonly
- #links_extracted ⇒ Integer readonly
- #redirection_errors ⇒ Integer readonly
- #redirects ⇒ Integer readonly
- #request_errors ⇒ Integer readonly
- #requests ⇒ Integer readonly
- #resources_discovered ⇒ Integer readonly
- #responses_filtered ⇒ Integer readonly
- #server_errors ⇒ Integer readonly
- #status_200s ⇒ Integer readonly
- #status_301s ⇒ Integer readonly
- #status_302s ⇒ Integer readonly
- #status_401s ⇒ Integer readonly
- #status_403s ⇒ Integer readonly
- #status_429s ⇒ Integer readonly
- #status_500s ⇒ Integer readonly
- #status_503s ⇒ Integer readonly
- #status_504s ⇒ Integer readonly
- #status_508s ⇒ Integer readonly
- #successes ⇒ Integer readonly
- #timeouts ⇒ Integer readonly
- #total_expected ⇒ Integer readonly
- #total_runtime ⇒ Array<Float> readonly
- #total_scans ⇒ Integer readonly
- #url_format_errors ⇒ Integer readonly
- #wildcards_filtered ⇒ Integer readonly
Instance Method Summary collapse
Constructor Details
#initialize(timeouts: 0, requests: 0, expected_per_scan: 6, total_expected: 0, errors: 0, successes: 0, redirects: 0, client_errors: 0, server_errors: 0, total_scans: 0, initial_targets: 0, links_extracted: 0, extensions_collected: 0, status_200s: 0, status_301s: 0, status_302s: 0, status_401s: 0, status_403s: 0, status_429s: 0, status_500s: 0, status_503s: 0, status_504s: 0, status_508s: 0, wildcards_filtered: 0, responses_filtered: 0, resources_discovered: 0, url_format_errors: 0, redirection_errors: 0, connection_errors: 0, request_errors: 0, directory_scan_times: [], total_runtime: []) ⇒ Statistics
Initializes the statistics object.
171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 |
# File 'lib/feroxbuster/statistics.rb', line 171 def initialize(timeouts: 0, requests: 0, expected_per_scan: 6, total_expected: 0, errors: 0, successes: 0, redirects: 0, client_errors: 0, server_errors: 0, total_scans: 0, initial_targets: 0, links_extracted: 0, extensions_collected: 0, status_200s: 0, status_301s: 0, status_302s: 0, status_401s: 0, status_403s: 0, status_429s: 0, status_500s: 0, status_503s: 0, status_504s: 0, status_508s: 0, wildcards_filtered: 0, responses_filtered: 0, resources_discovered: 0, url_format_errors: 0, redirection_errors: 0, connection_errors: 0, request_errors: 0, directory_scan_times: [], total_runtime: []) @timeouts = timeouts @requests = requests @expected_per_scan = expected_per_scan @total_expected = total_expected @errors = errors @successes = successes @redirects = redirects @client_errors = client_errors @server_errors = server_errors @total_scans = total_scans @initial_targets = initial_targets @links_extracted = links_extracted @extensions_collected = extensions_collected @status_200s = status_200s @status_301s = status_301s @status_302s = status_302s @status_401s = status_401s @status_403s = status_403s @status_429s = status_429s @status_500s = status_500s @status_503s = status_503s @status_504s = status_504s @status_508s = status_508s @wildcards_filtered = wildcards_filtered @responses_filtered = responses_filtered @resources_discovered = resources_discovered @url_format_errors = url_format_errors @redirection_errors = redirection_errors @connection_errors = connection_errors @request_errors = request_errors @directory_scan_times = directory_scan_times @total_runtime = total_runtime end |
Instance Attribute Details
#client_errors ⇒ Integer (readonly)
30 31 32 |
# File 'lib/feroxbuster/statistics.rb', line 30 def client_errors @client_errors end |
#connection_errors ⇒ Integer (readonly)
93 94 95 |
# File 'lib/feroxbuster/statistics.rb', line 93 def connection_errors @connection_errors end |
#directory_scan_times ⇒ Array<Float> (readonly)
99 100 101 |
# File 'lib/feroxbuster/statistics.rb', line 99 def directory_scan_times @directory_scan_times end |
#errors ⇒ Integer (readonly)
21 22 23 |
# File 'lib/feroxbuster/statistics.rb', line 21 def errors @errors end |
#expected_per_scan ⇒ Integer (readonly)
15 16 17 |
# File 'lib/feroxbuster/statistics.rb', line 15 def expected_per_scan @expected_per_scan end |
#extensions_collected ⇒ Integer (readonly)
45 46 47 |
# File 'lib/feroxbuster/statistics.rb', line 45 def extensions_collected @extensions_collected end |
#initial_targets ⇒ Integer (readonly)
39 40 41 |
# File 'lib/feroxbuster/statistics.rb', line 39 def initial_targets @initial_targets end |
#links_extracted ⇒ Integer (readonly)
42 43 44 |
# File 'lib/feroxbuster/statistics.rb', line 42 def links_extracted @links_extracted end |
#redirection_errors ⇒ Integer (readonly)
90 91 92 |
# File 'lib/feroxbuster/statistics.rb', line 90 def redirection_errors @redirection_errors end |
#redirects ⇒ Integer (readonly)
27 28 29 |
# File 'lib/feroxbuster/statistics.rb', line 27 def redirects @redirects end |
#request_errors ⇒ Integer (readonly)
96 97 98 |
# File 'lib/feroxbuster/statistics.rb', line 96 def request_errors @request_errors end |
#requests ⇒ Integer (readonly)
12 13 14 |
# File 'lib/feroxbuster/statistics.rb', line 12 def requests @requests end |
#resources_discovered ⇒ Integer (readonly)
84 85 86 |
# File 'lib/feroxbuster/statistics.rb', line 84 def resources_discovered @resources_discovered end |
#responses_filtered ⇒ Integer (readonly)
81 82 83 |
# File 'lib/feroxbuster/statistics.rb', line 81 def responses_filtered @responses_filtered end |
#server_errors ⇒ Integer (readonly)
33 34 35 |
# File 'lib/feroxbuster/statistics.rb', line 33 def server_errors @server_errors end |
#status_200s ⇒ Integer (readonly)
48 49 50 |
# File 'lib/feroxbuster/statistics.rb', line 48 def status_200s @status_200s end |
#status_301s ⇒ Integer (readonly)
51 52 53 |
# File 'lib/feroxbuster/statistics.rb', line 51 def status_301s @status_301s end |
#status_302s ⇒ Integer (readonly)
54 55 56 |
# File 'lib/feroxbuster/statistics.rb', line 54 def status_302s @status_302s end |
#status_401s ⇒ Integer (readonly)
57 58 59 |
# File 'lib/feroxbuster/statistics.rb', line 57 def status_401s @status_401s end |
#status_403s ⇒ Integer (readonly)
60 61 62 |
# File 'lib/feroxbuster/statistics.rb', line 60 def status_403s @status_403s end |
#status_429s ⇒ Integer (readonly)
63 64 65 |
# File 'lib/feroxbuster/statistics.rb', line 63 def status_429s @status_429s end |
#status_500s ⇒ Integer (readonly)
66 67 68 |
# File 'lib/feroxbuster/statistics.rb', line 66 def status_500s @status_500s end |
#status_503s ⇒ Integer (readonly)
69 70 71 |
# File 'lib/feroxbuster/statistics.rb', line 69 def status_503s @status_503s end |
#status_504s ⇒ Integer (readonly)
72 73 74 |
# File 'lib/feroxbuster/statistics.rb', line 72 def status_504s @status_504s end |
#status_508s ⇒ Integer (readonly)
75 76 77 |
# File 'lib/feroxbuster/statistics.rb', line 75 def status_508s @status_508s end |
#successes ⇒ Integer (readonly)
24 25 26 |
# File 'lib/feroxbuster/statistics.rb', line 24 def successes @successes end |
#timeouts ⇒ Integer (readonly)
9 10 11 |
# File 'lib/feroxbuster/statistics.rb', line 9 def timeouts @timeouts end |
#total_expected ⇒ Integer (readonly)
18 19 20 |
# File 'lib/feroxbuster/statistics.rb', line 18 def total_expected @total_expected end |
#total_runtime ⇒ Array<Float> (readonly)
102 103 104 |
# File 'lib/feroxbuster/statistics.rb', line 102 def total_runtime @total_runtime end |
#total_scans ⇒ Integer (readonly)
36 37 38 |
# File 'lib/feroxbuster/statistics.rb', line 36 def total_scans @total_scans end |
#url_format_errors ⇒ Integer (readonly)
87 88 89 |
# File 'lib/feroxbuster/statistics.rb', line 87 def url_format_errors @url_format_errors end |
#wildcards_filtered ⇒ Integer (readonly)
78 79 80 |
# File 'lib/feroxbuster/statistics.rb', line 78 def wildcards_filtered @wildcards_filtered end |