Skip to content

Commit

Permalink
Adding tests for Technicolor TG784 AuthBypass (threat9#532)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucyoa authored Oct 7, 2018
1 parent 6f8a8f1 commit 219d86c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/exploits/routers/technicolor/test_tg784_authbypass.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
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

0 comments on commit 219d86c

Please sign in to comment.