4eb75141ee285b24cdfb0d5a5940da6ee5c59f75,DeepExploit/deep_plugin/classifier_signature/Classifier_signature.py,ClassifierSignature,identify_product,#ClassifierSignature#,28
Before Change
list_match = re.findall(signature, response, flags=re.IGNORECASE)
if len(list_match) != 0:
// Add product name and version.
prod_info_list.append(product + str(items[1]) + " " + list_match[0])
except Exception as err:
self.util.print_message(WARNING, "{}".format(err))
return list(set(prod_info_list))
After Change
if len(list_match) != 0:
// Check version.
version_info = ""
for target_string in list_match:
version_info = self.extract_version(target_string).lower()
if version_info != "":
break
// Add product name and version.
if str(items[1]) != "":
prod_info_list.append(product + "@" + str(items[1]))
elif version_info != "":
prod_info_list.append(product + "@" + version_info)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: 13o-bbr-bbq/machine_learning_security
Commit Name: 4eb75141ee285b24cdfb0d5a5940da6ee5c59f75
Time: 2018-07-06
Author: takaesu235@gmail.com
File Name: DeepExploit/deep_plugin/classifier_signature/Classifier_signature.py
Class Name: ClassifierSignature
Method Name: identify_product
Project Name: jazzband/django-debug-toolbar
Commit Name: 5d095f66fde8f10b45a93c0b35be0a85762b0458
Time: 2019-06-20
Author: jon.dufresne@gmail.com
File Name: debug_toolbar/panels/templates/panel.py
Class Name: TemplatesPanel
Method Name: _store_template_info
Project Name: google-research/bert
Commit Name: 0fce551b55caabcfba52c61e18f34b541aef186a
Time: 2019-05-31
Author: jacobdevlin@google.com
File Name: create_pretraining_data.py
Class Name:
Method Name: create_masked_lm_predictions