Class: Feroxbuster::Statistics

Inherits:
Object
  • Object
show all
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

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.

Parameters:

  • timeouts (Integer) (defaults to: 0)
  • requests (Integer) (defaults to: 0)
  • expected_per_scan (Integer) (defaults to: 6)
  • total_expected (Integer) (defaults to: 0)
  • errors (Integer) (defaults to: 0)
  • successes (Integer) (defaults to: 0)
  • redirects (Integer) (defaults to: 0)
  • client_errors (Integer) (defaults to: 0)
  • server_errors (Integer) (defaults to: 0)
  • total_scans (Integer) (defaults to: 0)
  • initial_targets (Integer) (defaults to: 0)
  • links_extracted (Integer) (defaults to: 0)
  • extensions_collected (Integer) (defaults to: 0)
  • status_200s (Integer) (defaults to: 0)
  • status_301s (Integer) (defaults to: 0)
  • status_302s (Integer) (defaults to: 0)
  • status_401s (Integer) (defaults to: 0)
  • status_403s (Integer) (defaults to: 0)
  • status_429s (Integer) (defaults to: 0)
  • status_500s (Integer) (defaults to: 0)
  • status_503s (Integer) (defaults to: 0)
  • status_504s (Integer) (defaults to: 0)
  • status_508s (Integer) (defaults to: 0)
  • wildcards_filtered (Integer) (defaults to: 0)
  • responses_filtered (Integer) (defaults to: 0)
  • resources_discovered (Integer) (defaults to: 0)
  • url_format_errors (Integer) (defaults to: 0)
  • redirection_errors (Integer) (defaults to: 0)
  • connection_errors (Integer) (defaults to: 0)
  • request_errors (Integer) (defaults to: 0)
  • directory_scan_times (Array<Float>) (defaults to: [])
  • total_runtime (Array<Float>) (defaults to: [])


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_errorsInteger (readonly)

Returns:

  • (Integer)


30
31
32
# File 'lib/feroxbuster/statistics.rb', line 30

def client_errors
  @client_errors
end

#connection_errorsInteger (readonly)

Returns:

  • (Integer)


93
94
95
# File 'lib/feroxbuster/statistics.rb', line 93

def connection_errors
  @connection_errors
end

#directory_scan_timesArray<Float> (readonly)

Returns:

  • (Array<Float>)


99
100
101
# File 'lib/feroxbuster/statistics.rb', line 99

def directory_scan_times
  @directory_scan_times
end

#errorsInteger (readonly)

Returns:

  • (Integer)


21
22
23
# File 'lib/feroxbuster/statistics.rb', line 21

def errors
  @errors
end

#expected_per_scanInteger (readonly)

Returns:

  • (Integer)


15
16
17
# File 'lib/feroxbuster/statistics.rb', line 15

def expected_per_scan
  @expected_per_scan
end

#extensions_collectedInteger (readonly)

Returns:

  • (Integer)


45
46
47
# File 'lib/feroxbuster/statistics.rb', line 45

def extensions_collected
  @extensions_collected
end

#initial_targetsInteger (readonly)

Returns:

  • (Integer)


39
40
41
# File 'lib/feroxbuster/statistics.rb', line 39

def initial_targets
  @initial_targets
end

Returns:

  • (Integer)


42
43
44
# File 'lib/feroxbuster/statistics.rb', line 42

def links_extracted
  @links_extracted
end

#redirection_errorsInteger (readonly)

Returns:

  • (Integer)


90
91
92
# File 'lib/feroxbuster/statistics.rb', line 90

def redirection_errors
  @redirection_errors
end

#redirectsInteger (readonly)

Returns:

  • (Integer)


27
28
29
# File 'lib/feroxbuster/statistics.rb', line 27

def redirects
  @redirects
end

#request_errorsInteger (readonly)

Returns:

  • (Integer)


96
97
98
# File 'lib/feroxbuster/statistics.rb', line 96

def request_errors
  @request_errors
end

#requestsInteger (readonly)

Returns:

  • (Integer)


12
13
14
# File 'lib/feroxbuster/statistics.rb', line 12

def requests
  @requests
end

#resources_discoveredInteger (readonly)

Returns:

  • (Integer)


84
85
86
# File 'lib/feroxbuster/statistics.rb', line 84

def resources_discovered
  @resources_discovered
end

#responses_filteredInteger (readonly)

Returns:

  • (Integer)


81
82
83
# File 'lib/feroxbuster/statistics.rb', line 81

def responses_filtered
  @responses_filtered
end

#server_errorsInteger (readonly)

Returns:

  • (Integer)


33
34
35
# File 'lib/feroxbuster/statistics.rb', line 33

def server_errors
  @server_errors
end

#status_200sInteger (readonly)

Returns:

  • (Integer)


48
49
50
# File 'lib/feroxbuster/statistics.rb', line 48

def status_200s
  @status_200s
end

#status_301sInteger (readonly)

Returns:

  • (Integer)


51
52
53
# File 'lib/feroxbuster/statistics.rb', line 51

def status_301s
  @status_301s
end

#status_302sInteger (readonly)

Returns:

  • (Integer)


54
55
56
# File 'lib/feroxbuster/statistics.rb', line 54

def status_302s
  @status_302s
end

#status_401sInteger (readonly)

Returns:

  • (Integer)


57
58
59
# File 'lib/feroxbuster/statistics.rb', line 57

def status_401s
  @status_401s
end

#status_403sInteger (readonly)

Returns:

  • (Integer)


60
61
62
# File 'lib/feroxbuster/statistics.rb', line 60

def status_403s
  @status_403s
end

#status_429sInteger (readonly)

Returns:

  • (Integer)


63
64
65
# File 'lib/feroxbuster/statistics.rb', line 63

def status_429s
  @status_429s
end

#status_500sInteger (readonly)

Returns:

  • (Integer)


66
67
68
# File 'lib/feroxbuster/statistics.rb', line 66

def status_500s
  @status_500s
end

#status_503sInteger (readonly)

Returns:

  • (Integer)


69
70
71
# File 'lib/feroxbuster/statistics.rb', line 69

def status_503s
  @status_503s
end

#status_504sInteger (readonly)

Returns:

  • (Integer)


72
73
74
# File 'lib/feroxbuster/statistics.rb', line 72

def status_504s
  @status_504s
end

#status_508sInteger (readonly)

Returns:

  • (Integer)


75
76
77
# File 'lib/feroxbuster/statistics.rb', line 75

def status_508s
  @status_508s
end

#successesInteger (readonly)

Returns:

  • (Integer)


24
25
26
# File 'lib/feroxbuster/statistics.rb', line 24

def successes
  @successes
end

#timeoutsInteger (readonly)

Returns:

  • (Integer)


9
10
11
# File 'lib/feroxbuster/statistics.rb', line 9

def timeouts
  @timeouts
end

#total_expectedInteger (readonly)

Returns:

  • (Integer)


18
19
20
# File 'lib/feroxbuster/statistics.rb', line 18

def total_expected
  @total_expected
end

#total_runtimeArray<Float> (readonly)

Returns:

  • (Array<Float>)


102
103
104
# File 'lib/feroxbuster/statistics.rb', line 102

def total_runtime
  @total_runtime
end

#total_scansInteger (readonly)

Returns:

  • (Integer)


36
37
38
# File 'lib/feroxbuster/statistics.rb', line 36

def total_scans
  @total_scans
end

#url_format_errorsInteger (readonly)

Returns:

  • (Integer)


87
88
89
# File 'lib/feroxbuster/statistics.rb', line 87

def url_format_errors
  @url_format_errors
end

#wildcards_filteredInteger (readonly)

Returns:

  • (Integer)


78
79
80
# File 'lib/feroxbuster/statistics.rb', line 78

def wildcards_filtered
  @wildcards_filtered
end