logger.debug("Returning None - EXIT!")
return None
+ logger.debug("Setting original software='%s' ...", software)
+ instances.set_original_software(domain, software)
+
logger.debug("software='%s'- BEFORE!", software)
software = software_helper.alias(software)
logger.debug("software['%s']='%s' - AFTER!", type(software), software)
"last_error_details" : {},
# Wether obfuscation has been used
"has_obfuscation" : {},
- # Determined software
+ # Original software
+ "original_software" : {},
+ # Aliased software
"software" : {},
}
_set_data("has_obfuscation", domain, status)
logger.debug("EXIT!")
+def set_original_software(domain: str, software: str):
+ logger.debug("domain='%s',software='%s' - CALLED!", domain, software)
+ domain_helper.raise_on(domain)
+
+ if not isinstance(software, str) and software is not None:
+ raise ValueError(f"Parameter software[]='{type(software)}' is not of type 'str'")
+ elif software == "":
+ raise ValueError("Parameter 'software' is empty")
+
+ # Set original software
+ _set_data("original_software", domain, software)
+ logger.debug("EXIT!")
+
+
def set_software(domain: str, software: str):
logger.debug("domain='%s',software='%s' - CALLED!", domain, software)
domain_helper.raise_on(domain)
elif software == "":
raise ValueError("Parameter 'software' is empty")
- # Set timestamp
+ # Set software (maybe aliased to generic name)
_set_data("software", domain, software)
logger.debug("EXIT!")
</tr>
<tr>
- <td>Software:</td>
+ <td>Original software:</td>
+ <td>
+ {% if instance['original_software'] != None %}
+ <a href="list?mode=original_software&value={{instance['original_software']}}&amount=50">{{instance['original_software']}}</a>
+ {% else %}
+ -
+ {% endif %}
+ </td>
+ </tr>
+
+ <tr>
+ <td>Aliased software:</td>
<td>
{% if instance['software'] != None %}
<a href="list?mode=software&value={{instance['software']}}&amount=50">{{instance['software']}}</a>