Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3244 show boolean description #3344

Merged
merged 3 commits into from
May 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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