UT: Remove ElasticGroovyExploiter references

This commit is contained in:
Shreya Malviya 2022-02-24 15:10:31 +05:30
parent 3ff7daa2d5
commit 35d39b46c7
7 changed files with 5 additions and 9 deletions

View File

@ -54,7 +54,6 @@
],
"vulnerability": [
{"name": "DrupalExploiter"},
{"name": "ElasticGroovyExploiter"},
{"name": "HadoopExploiter"},
{"name": "ShellShockExploiter"},
{"name": "Struts2Exploiter"},

View File

@ -52,7 +52,6 @@
"SmbExploiter",
"WmiExploiter",
"SSHExploiter",
"ElasticGroovyExploiter",
"Struts2Exploiter",
"ZerologonExploiter",
"WebLogicExploiter",

View File

@ -5,7 +5,6 @@
"SmbExploiter",
"WmiExploiter",
"SSHExploiter",
"ElasticGroovyExploiter",
"Struts2Exploiter",
"WebLogicExploiter",
"HadoopExploiter",

View File

@ -27,9 +27,9 @@ SCAN_DATA_MOCK = [
EXPLOIT_DATA_MOCK = [
{
"result": True,
"exploiter": "ElasticGroovyExploiter",
"exploiter": "ZerologonExploiter",
"info": {
"display_name": "Elastic search",
"display_name": "Zerologon",
"started": "2020-05-11T08:59:38.105Z",
"finished": "2020-05-11T08:59:38.106Z",
"vulnerable_urls": [],

View File

@ -11,7 +11,7 @@ from monkey_island.cc.services.reporting.exploitations.monkey_exploitation impor
def test_get_exploits_used_on_node__2_exploits():
exploits = get_exploits_used_on_node(NODE_DICT)
assert sorted(exploits) == sorted(["Elastic Groovy Exploiter", "Drupal Server Exploiter"])
assert sorted(exploits) == sorted(["Zerologon Exploiter", "Drupal Server Exploiter"])
def test_get_exploits_used_on_node__duplicate_exploits():

View File

@ -110,9 +110,9 @@ NODE_DICT = {
},
{
"exploitation_result": True,
"exploiter": "ElasticGroovyExploiter",
"exploiter": "ZerologonExploiter",
"info": {
"display_name": "Elastic search",
"display_name": "Zerologon",
"started": datetime.datetime(2021, 2, 19, 9, 0, 15, 16000),
"finished": datetime.datetime(2021, 2, 19, 9, 0, 15, 17000),
"vulnerable_urls": [],

View File

@ -185,7 +185,6 @@ def test_format_config_for_agent__exploiters(flat_monkey_config):
],
"vulnerability": [
{"name": "DrupalExploiter", "options": {}},
{"name": "ElasticGroovyExploiter", "options": {}},
{"name": "HadoopExploiter", "options": {}},
{"name": "Struts2Exploiter", "options": {}},
{"name": "WebLogicExploiter", "options": {}},