Unverified Commit 219d86c3 by Marcin Bury Committed by GitHub

Adding tests for Technicolor TG784 AuthBypass (#532)

parent 6f8a8f10
from routersploit.modules.exploits.routers.technicolor.tg784_authbypass import Exploit
def test_check_success(target):
""" Test scenario - successful exploitation """
exploit = Exploit()
assert exploit.target == ""
assert exploit.port == 21
assert exploit.username == "upgrade"
assert exploit.password == "Th0ms0n!"
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