Skip to content

Commit

Permalink
Merge branch '3244-show-boolean-description' into develop
Browse files Browse the repository at this point in the history
Issue #3244
PR #3344
  • Loading branch information
mssalvatore committed May 16, 2023
2 parents 968bcd5 + 4026ee2 commit 699e97a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,6 @@ class PolymorphismConfiguration(MutableInfectionMonkeyBaseModel):
randomized_agent_hash: bool = Field(
title="Randomize Agent hash",
description="Emulate the property of polymorphic (or metamorphic) malware that all "
"copies have unique hashes by modifying the Agent binary before propagation.",
"copies have unique hashes.",
default=False,
)
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ export default function UiSchema(props) {
}
}
}
},
polymorphism: {
randomized_agent_hash: {
'ui:widget': CheckboxWithMessage
}
}
};
return UiSchema[props.selectedSection]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ const POLYMORPHISM_SCHEMA = {
'randomized_agent_hash': {
'title': 'Randomize Agent hash',
'type': 'boolean',
'default': false,
'description': 'Emulate the property of polymorphic (or metamorphic) malware that all ' +
'copies have unique hashes by modifying the Agent binary before propagation.'
'default': false
}
}
}
Expand Down

0 comments on commit 699e97a

Please sign in to comment.