dtp-spoof is a security tool to test the Dynamic Trunking Protocols (DTP) configuration of switches.

dtp-spoof is a security tool to test the Dynamic Trunking Protocols (DTP) configuration of switches.

Legal Disclaimer:
DO NOT use this script for illegal activites! Use it only on networks you own or for which you have permission to audit.

dtp-spoof is a security tool to test the Dynamic Trunking Protocol (DTP) configuration of switches. If the target switch is configured to negotiate the port mode, you can potentially set the target switch’s port to Trunk mode, thereby gaining access to additional VLANs.

dtp-spoof

Some tips:
– The switch might not send you any traffic to indicate you have successfully formed a trunk.
– If DTP has been disabled on a switchport, the script won’t change anything.
– Asking for ‘trunk’ mode is the default option but ‘desireable’, ‘auto’, and ‘access’ modes are available.
– You must specifiy an interface to send the packets from.
– You can, but do not have to, spoof your MAC address with the -m option. If you do so, the supplied mac address will be used for both the source address of the Ethernet frame and the neighbor MAC field within the DTP packet.

Dependencies:
+ Python 2.7.x and scapy modules.

Usage:

Source: https://github.com/fleetcaptain