Unverified Commit aa483726 by Marcin Bury Committed by GitHub

Adding tests for Cisco Secure ACS Bypass module (#529)

parent 4b24c6fb
from routersploit.modules.exploits.routers.cisco.secure_acs_bypass import Exploit
def test_check_success(target):
""" Test scenario - successful check """
exploit = Exploit()
assert exploit.target == ""
assert exploit.port == 443
assert exploit.ssl is True
assert exploit.path == "/PI/services/UCP/"
assert exploit.username == ""
assert exploit.password == ""
exploit.target = target.host
exploit.port = target.port
exploit.ssl = "false"
assert exploit.check() is None
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