Unverified Commit 4b24c6fb by Marcin Bury Committed by GitHub

Adding tests for Firepower Management 6.0 RCE (#528)

parent d1430bc0
from routersploit.modules.exploits.routers.cisco.firepower_management60_rce import Exploit
def test_check_success(target):
""" Test scenario - successful check """
route_mock = target.get_route_mock("/img/favicon.png?v=6.0.1-1213", methods=["GET"])
route_mock.return_value = (
"TEST"
)
exploit = Exploit()
assert exploit.target == ""
assert exploit.port == 443
assert exploit.ssl is True
assert exploit.ssh_port == 22
assert exploit.username == "admin"
assert exploit.password == "Admin123"
assert exploit.newusername == ""
assert exploit.newpassword == ""
exploit.target = target.host
exploit.port = target.port
assert exploit.check() is False
assert exploit.run() is None
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment