b10c11e8f77cafaef0e4cb12406c5c7d9adf2c2d,w3af/core/controllers/profiling/scan_log_analysis/data/crawling_stats.py,,show_crawling_stats,#,6
Before Change
if not new_url_found_by_plugin:
return
print("")
print("URLs found grouped by plugin:")
def by_value(a, b):
return cmp(b[1], a[1])
After Change
IGNORING = "Ignoring form"
FUZZABLE = "New fuzzable request identified"
output = ListOutput("crawl_stats")
scan.seek(0)
found_forms = 0
ignored_forms = 0
fuzzable = 0
new_url_found_by_plugin = {}
for line in scan:
if FUZZABLE in line:
fuzzable += 1
continue
if FOUND in line:
found_forms += 1
continue
if IGNORING in line:
ignored_forms += 1
continue
match = NEW_URL_FOUND.search(line)
if match:
plugin_name = match.group(1)
if plugin_name in new_url_found_by_plugin:
new_url_found_by_plugin[plugin_name] += 1
else:
new_url_found_by_plugin[plugin_name] = 1
output.append(ListOutputItem("fuzzable requests", {"found": fuzzable}))
output.append(ListOutputItem("forms", {"found": found_forms,
"ignored": ignored_forms}))
if not new_url_found_by_plugin:
return
output.append(ListOutputItem("found URLs (group by plugin)", new_url_found_by_plugin))
return output
In pattern: SUPERPATTERN
Frequency: 8
Non-data size: 3
Instances
Project Name: andresriancho/w3af
Commit Name: b10c11e8f77cafaef0e4cb12406c5c7d9adf2c2d
Time: 2018-10-09
Author: andres.riancho@gmail.com
File Name: w3af/core/controllers/profiling/scan_log_analysis/data/crawling_stats.py
Class Name:
Method Name: show_crawling_stats
Project Name: andresriancho/w3af
Commit Name: b10c11e8f77cafaef0e4cb12406c5c7d9adf2c2d
Time: 2018-10-09
Author: andres.riancho@gmail.com
File Name: w3af/core/controllers/profiling/scan_log_analysis/data/errors.py
Class Name:
Method Name: show_errors
Project Name: andresriancho/w3af
Commit Name: b10c11e8f77cafaef0e4cb12406c5c7d9adf2c2d
Time: 2018-10-09
Author: andres.riancho@gmail.com
File Name: w3af/core/controllers/profiling/scan_log_analysis/data/file_sizes.py
Class Name:
Method Name: show_file_sizes
Project Name: jonas-koehler/s2cnn
Commit Name: d750d66fb998a44316000908f213ae73c53de97f
Time: 2018-03-03
Author: geiger.mario@gmail.com
File Name: examples/shrec17/dataset.py
Class Name: CacheNPY
Method Name: __call__
Project Name: hunkim/PyTorchZeroToAll
Commit Name: c4610ff26a01a0622bc11dcac0f0812f05c56e0c
Time: 2017-11-02
Author: hunkim@gmail.com
File Name: 12_4_name_classify.py
Class Name:
Method Name: train
Project Name: githubharald/SimpleHTR
Commit Name: b9fc4e3a1b9dc019640164b57d49ecba56364bfa
Time: 2018-08-16
Author: harald_scheidl@hotmail.com
File Name: src/main.py
Class Name:
Method Name: validate
Project Name: kundajelab/deeplift
Commit Name: 0fa62a22496a005b24664568595ab64597680898
Time: 2020-11-09
Author: avanti.shrikumar@gmail.com
File Name: deeplift/layers/activations.py
Class Name: Sigmoid
Method Name: _get_gradient_at_activation
Project Name: akkana/scripts
Commit Name: cb38a31627f152c22fb9e474c31b34da588e1134
Time: 2020-07-26
Author: akkana@shallowsky.com
File Name: starstack.py
Class Name:
Method Name: register